delete_vpc_peering_connection

GameLift.Client.delete_vpc_peering_connection(**kwargs)

Removes a VPC peering connection. To delete the connection, you must have a valid authorization for the VPC peering connection that you want to delete..

Once a valid authorization exists, call this operation from the Amazon Web Services account that is used to manage the Amazon GameLift fleets. Identify the connection to delete by the connection ID and fleet ID. If successful, the connection is removed.

Related actions

All APIs by task

See also: AWS API Documentation

Request Syntax

response = client.delete_vpc_peering_connection(
    FleetId='string',
    VpcPeeringConnectionId='string'
)
Parameters
  • FleetId (string) --

    [REQUIRED]

    A unique identifier for the fleet. This fleet specified must match the fleet referenced in the VPC peering connection record. You can use either the fleet ID or ARN value.

  • VpcPeeringConnectionId (string) --

    [REQUIRED]

    A unique identifier for a VPC peering connection.

Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

Exceptions

  • GameLift.Client.exceptions.UnauthorizedException
  • GameLift.Client.exceptions.InvalidRequestException
  • GameLift.Client.exceptions.NotFoundException
  • GameLift.Client.exceptions.InternalServiceException