getGatewayTarget method

Future<GetGatewayTargetResponse> getGatewayTarget({
  1. required String gatewayIdentifier,
  2. required String targetId,
})

Retrieves information about a specific gateway target.

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

Parameter gatewayIdentifier : The identifier of the gateway that contains the target.

Parameter targetId : The unique identifier of the target to retrieve.

Implementation

Future<GetGatewayTargetResponse> getGatewayTarget({
  required String gatewayIdentifier,
  required String targetId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/gateways/${Uri.encodeComponent(gatewayIdentifier)}/targets/${Uri.encodeComponent(targetId)}/',
    exceptionFnMap: _exceptionFns,
  );
  return GetGatewayTargetResponse.fromJson(response);
}