createWorkflowStepGroup method
Create a step group in a migration workflow.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ThrottlingException.
May throw ValidationException.
Parameter name :
The name of the step group.
Parameter workflowId :
The ID of the migration workflow that will contain the step group.
Parameter description :
The description of the step group.
Parameter next :
The next step group.
Parameter previous :
The previous step group.
Implementation
Future<CreateWorkflowStepGroupResponse> createWorkflowStepGroup({
required String name,
required String workflowId,
String? description,
List<String>? next,
List<String>? previous,
}) async {
final $payload = <String, dynamic>{
'name': name,
'workflowId': workflowId,
if (description != null) 'description': description,
if (next != null) 'next': next,
if (previous != null) 'previous': previous,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/workflowstepgroups',
exceptionFnMap: _exceptionFns,
);
return CreateWorkflowStepGroupResponse.fromJson(response);
}