:doc:`GameLift <../../gamelift>` / Client / delete_vpc_peering_connection

*****************************
delete_vpc_peering_connection
*****************************



.. py:method:: GameLift.Client.delete_vpc_peering_connection(**kwargs)

  

  **This API works with the following fleet types:** EC2

   

  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 Servers 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 <https://docs.aws.amazon.com/gamelift/latest/developerguide/reference-awssdk.html#reference-awssdk-resources-fleets>`__

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DeleteVpcPeeringConnection>`_  


  **Request Syntax**
  ::

    response = client.delete_vpc_peering_connection(
        FleetId='string',
        VpcPeeringConnectionId='string'
    )
    
  :type FleetId: string
  :param FleetId: **[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.

    

  
  :type VpcPeeringConnectionId: string
  :param VpcPeeringConnectionId: **[REQUIRED]** 

    A unique identifier for a VPC peering connection.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`GameLift.Client.exceptions.UnauthorizedException`

  
  *   :py:class:`GameLift.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`GameLift.Client.exceptions.NotFoundException`

  
  *   :py:class:`GameLift.Client.exceptions.InternalServiceException`

  