describeVirtualGateways method

Future<VirtualGateways> describeVirtualGateways()

Lists the virtual private gateways owned by the AWS account.

You can create one or more AWS Direct Connect private virtual interfaces linked to a virtual private gateway.

May throw DirectConnectServerException. May throw DirectConnectClientException.

Implementation

Future<VirtualGateways> describeVirtualGateways() async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'OvertureService.DescribeVirtualGateways'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
  );

  return VirtualGateways.fromJson(jsonResponse.body);
}