stopReplication method
For a given DMS Serverless replication configuration, DMS stops any and all ongoing DMS Serverless replications. This command doesn't deprovision the stopped replications.
May throw AccessDeniedFault.
May throw InvalidResourceStateFault.
May throw ResourceNotFoundFault.
Parameter replicationConfigArn :
The Amazon Resource Name of the replication to stop.
Implementation
Future<StopReplicationResponse> stopReplication({
required String replicationConfigArn,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonDMSv20160101.StopReplication'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ReplicationConfigArn': replicationConfigArn,
},
);
return StopReplicationResponse.fromJson(jsonResponse.body);
}