stopWorkflow method

Future<StopMigrationWorkflowResponse> stopWorkflow({
  1. required String id,
})

Stop an ongoing migration workflow.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter id : The ID of the migration workflow.

Implementation

Future<StopMigrationWorkflowResponse> stopWorkflow({
  required String id,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'POST',
    requestUri: '/migrationworkflow/${Uri.encodeComponent(id)}/stop',
    exceptionFnMap: _exceptionFns,
  );
  return StopMigrationWorkflowResponse.fromJson(response);
}