stopReplicationTask method
Stops the replication task.
May throw ResourceNotFoundFault. May throw InvalidResourceStateFault.
Parameter replicationTaskArn
:
The Amazon Resource Name(ARN) of the replication task to be stopped.
Implementation
Future<StopReplicationTaskResponse> stopReplicationTask({
required String replicationTaskArn,
}) async {
ArgumentError.checkNotNull(replicationTaskArn, 'replicationTaskArn');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonDMSv20160101.StopReplicationTask'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ReplicationTaskArn': replicationTaskArn,
},
);
return StopReplicationTaskResponse.fromJson(jsonResponse.body);
}