describeVpcPeeringAuthorizations method

Future<DescribeVpcPeeringAuthorizationsOutput> describeVpcPeeringAuthorizations()

This API works with the following fleet types: EC2

Retrieves valid VPC peering authorizations that are pending for the Amazon Web Services account. This operation returns all VPC peering authorizations and requests for peering. This includes those initiated and received by this account.

Related actions

All APIs by task

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

Implementation

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

  return DescribeVpcPeeringAuthorizationsOutput.fromJson(jsonResponse.body);
}