describeHostedConnections method

Future<Connections> describeHostedConnections({
  1. required String connectionId,
})

Lists the hosted connections that have been provisioned on the specified interconnect or link aggregation group (LAG).

May throw DirectConnectServerException. May throw DirectConnectClientException.

Parameter connectionId : The ID of the interconnect or LAG.

Implementation

Future<Connections> describeHostedConnections({
  required String connectionId,
}) async {
  ArgumentError.checkNotNull(connectionId, 'connectionId');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'OvertureService.DescribeHostedConnections'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'connectionId': connectionId,
    },
  );

  return Connections.fromJson(jsonResponse.body);
}