getDestination method

Future<GetDestinationResponse> getDestination({
  1. required String name,
})

Gets a destination by name.

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

Parameter name : The name of the customer-managed destination.

Implementation

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