deleteDestination method

Future<void> deleteDestination({
  1. required String name,
})

Deletes a destination.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter name : The name of the resource to delete.

Implementation

Future<void> deleteDestination({
  required String name,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/destinations/${Uri.encodeComponent(name)}',
    exceptionFnMap: _exceptionFns,
  );
}