getTransitGatewayPeering method

Future<GetTransitGatewayPeeringResponse> getTransitGatewayPeering({
  1. required String peeringId,
})

Returns information about a transit gateway peer.

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

Parameter peeringId : The ID of the peering request.

Implementation

Future<GetTransitGatewayPeeringResponse> getTransitGatewayPeering({
  required String peeringId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/transit-gateway-peerings/${Uri.encodeComponent(peeringId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetTransitGatewayPeeringResponse.fromJson(response);
}