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

********************************
delete_vpc_peering_authorization
********************************



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

  

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

   

  Cancels a pending VPC peering authorization for the specified VPC. If you need to delete an existing VPC peering connection, use `DeleteVpcPeeringConnection <https://docs.aws.amazon.com/gamelift/latest/apireference/API_DeleteVpcPeeringConnection.html>`__.

   

  **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/DeleteVpcPeeringAuthorization>`_  


  **Request Syntax**
  ::

    response = client.delete_vpc_peering_authorization(
        GameLiftAwsAccountId='string',
        PeerVpcId='string'
    )
    
  :type GameLiftAwsAccountId: string
  :param GameLiftAwsAccountId: **[REQUIRED]** 

    A unique identifier for the Amazon Web Services account that you use to manage your Amazon GameLift Servers fleet. You can find your Account ID in the Amazon Web Services Management Console under account settings.

    

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

    A unique identifier for a VPC with resources to be accessed by your Amazon GameLift Servers fleet. The VPC must be in the same Region as your fleet. To look up a VPC ID, use the `VPC Dashboard <https://console.aws.amazon.com/vpc/>`__ in the Amazon Web Services Management Console. Learn more about VPC peering in `VPC Peering with Amazon GameLift Servers Fleets <https://docs.aws.amazon.com/gamelift/latest/developerguide/vpc-peering.html>`__.

    

  
  
  :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`

  