deleteConnection method
Deletes the connection between a replication instance and an endpoint.
May throw AccessDeniedFault. May throw ResourceNotFoundFault. May throw InvalidResourceStateFault.
Parameter endpointArn
:
The Amazon Resource Name (ARN) string that uniquely identifies the
endpoint.
Parameter replicationInstanceArn
:
The Amazon Resource Name (ARN) of the replication instance.
Implementation
Future<DeleteConnectionResponse> deleteConnection({
required String endpointArn,
required String replicationInstanceArn,
}) async {
ArgumentError.checkNotNull(endpointArn, 'endpointArn');
ArgumentError.checkNotNull(
replicationInstanceArn, 'replicationInstanceArn');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonDMSv20160101.DeleteConnection'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'EndpointArn': endpointArn,
'ReplicationInstanceArn': replicationInstanceArn,
},
);
return DeleteConnectionResponse.fromJson(jsonResponse.body);
}