startWorkflow method

Future<StartMigrationWorkflowResponse> startWorkflow({
  1. required String id,
})

Start a 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<StartMigrationWorkflowResponse> startWorkflow({
  required String id,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'POST',
    requestUri: '/migrationworkflow/${Uri.encodeComponent(id)}/start',
    exceptionFnMap: _exceptionFns,
  );
  return StartMigrationWorkflowResponse.fromJson(response);
}