deleteReplicationSubnetGroup method

Future<void> deleteReplicationSubnetGroup({
  1. required String replicationSubnetGroupIdentifier,
})

Deletes a subnet group.

May throw InvalidResourceStateFault. May throw ResourceNotFoundFault.

Parameter replicationSubnetGroupIdentifier : The subnet group name of the replication instance.

Implementation

Future<void> deleteReplicationSubnetGroup({
  required String replicationSubnetGroupIdentifier,
}) async {
  ArgumentError.checkNotNull(
      replicationSubnetGroupIdentifier, 'replicationSubnetGroupIdentifier');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AmazonDMSv20160101.DeleteReplicationSubnetGroup'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ReplicationSubnetGroupIdentifier': replicationSubnetGroupIdentifier,
    },
  );
}