deleteMultiRegionCluster method

Future<DeleteMultiRegionClusterResponse> deleteMultiRegionCluster({
  1. required String multiRegionClusterName,
})

Deletes an existing multi-Region cluster.

May throw InvalidMultiRegionClusterStateFault. May throw InvalidParameterValueException. May throw MultiRegionClusterNotFoundFault.

Parameter multiRegionClusterName : The name of the multi-Region cluster to be deleted.

Implementation

Future<DeleteMultiRegionClusterResponse> deleteMultiRegionCluster({
  required String multiRegionClusterName,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AmazonMemoryDB.DeleteMultiRegionCluster'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'MultiRegionClusterName': multiRegionClusterName,
    },
  );

  return DeleteMultiRegionClusterResponse.fromJson(jsonResponse.body);
}