deleteReplicationInstance method
Future<DeleteReplicationInstanceResponse>
deleteReplicationInstance({
- required String replicationInstanceArn,
Deletes the specified replication instance.
May throw InvalidResourceStateFault. May throw ResourceNotFoundFault.
Parameter replicationInstanceArn
:
The Amazon Resource Name (ARN) of the replication instance to be deleted.
Implementation
Future<DeleteReplicationInstanceResponse> deleteReplicationInstance({
required String replicationInstanceArn,
}) async {
ArgumentError.checkNotNull(
replicationInstanceArn, 'replicationInstanceArn');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonDMSv20160101.DeleteReplicationInstance'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ReplicationInstanceArn': replicationInstanceArn,
},
);
return DeleteReplicationInstanceResponse.fromJson(jsonResponse.body);
}