describeVpcPeeringConnections method

Future<DescribeVpcPeeringConnectionsOutput> describeVpcPeeringConnections({
  1. String? fleetId,
})

Retrieves information on VPC peering connections. Use this operation to get peering information for all fleets or for one specific fleet ID.

To retrieve connection information, call this operation from the AWS account that is used to manage the Amazon GameLift fleets. Specify a fleet ID or leave the parameter empty to retrieve all connection records. If successful, the retrieved information includes both active and pending connections. Active connections identify the IpV4 CIDR block that the VPC uses to connect.

May throw UnauthorizedException. May throw InvalidRequestException. May throw NotFoundException. May throw InternalServiceException.

Parameter fleetId : A unique identifier for a fleet. You can use either the fleet ID or ARN value.

Implementation

Future<DescribeVpcPeeringConnectionsOutput> describeVpcPeeringConnections({
  String? fleetId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'GameLift.DescribeVpcPeeringConnections'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (fleetId != null) 'FleetId': fleetId,
    },
  );

  return DescribeVpcPeeringConnectionsOutput.fromJson(jsonResponse.body);
}