updateWorkflowStepGroup method
Update the step group in a migration workflow.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter id :
The ID of the step group.
Parameter workflowId :
The ID of the migration workflow.
Parameter description :
The description of the step group.
Parameter name :
The name of the step group.
Parameter next :
The next step group.
Parameter previous :
The previous step group.
Implementation
Future<UpdateWorkflowStepGroupResponse> updateWorkflowStepGroup({
required String id,
required String workflowId,
String? description,
String? name,
List<String>? next,
List<String>? previous,
}) async {
final $query = <String, List<String>>{
'workflowId': [workflowId],
};
final $payload = <String, dynamic>{
if (description != null) 'description': description,
if (name != null) 'name': name,
if (next != null) 'next': next,
if (previous != null) 'previous': previous,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/workflowstepgroup/${Uri.encodeComponent(id)}',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return UpdateWorkflowStepGroupResponse.fromJson(response);
}