deleteMultiRegionEndpoint method

Future<DeleteMultiRegionEndpointResponse> deleteMultiRegionEndpoint({
  1. required String endpointName,
})

Deletes a multi-region endpoint (global-endpoint).

Only multi-region endpoints (global-endpoints) whose primary region is the AWS-Region where operation is executed can be deleted.

May throw BadRequestException. May throw ConcurrentModificationException. May throw NotFoundException. May throw TooManyRequestsException.

Parameter endpointName : The name of the multi-region endpoint (global-endpoint) to be deleted.

Implementation

Future<DeleteMultiRegionEndpointResponse> deleteMultiRegionEndpoint({
  required String endpointName,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/v2/email/multi-region-endpoints/${Uri.encodeComponent(endpointName)}',
    exceptionFnMap: _exceptionFns,
  );
  return DeleteMultiRegionEndpointResponse.fromJson(response);
}