getOdbPeeringConnection method

Future<GetOdbPeeringConnectionOutput> getOdbPeeringConnection({
  1. required String odbPeeringConnectionId,
})

Retrieves information about an ODB peering connection.

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

Parameter odbPeeringConnectionId : The unique identifier of the ODB peering connection to retrieve information about.

Implementation

Future<GetOdbPeeringConnectionOutput> getOdbPeeringConnection({
  required String odbPeeringConnectionId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'Odb.GetOdbPeeringConnection'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'odbPeeringConnectionId': odbPeeringConnectionId,
    },
  );

  return GetOdbPeeringConnectionOutput.fromJson(jsonResponse.body);
}