stopDataMigration method

Future<StopDataMigrationResponse> stopDataMigration({
  1. required String dataMigrationIdentifier,
})

Stops the specified data migration.

May throw FailedDependencyFault. May throw InvalidResourceStateFault. May throw ResourceNotFoundFault.

Parameter dataMigrationIdentifier : The identifier (name or ARN) of the data migration to stop.

Implementation

Future<StopDataMigrationResponse> stopDataMigration({
  required String dataMigrationIdentifier,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AmazonDMSv20160101.StopDataMigration'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'DataMigrationIdentifier': dataMigrationIdentifier,
    },
  );

  return StopDataMigrationResponse.fromJson(jsonResponse.body);
}