reject

EC2.VpcPeeringConnection.reject(**kwargs)

Rejects a VPC peering connection request. The VPC peering connection must be in the pending-acceptance state. Use the DescribeVpcPeeringConnections request to view your outstanding VPC peering connection requests. To delete an active VPC peering connection, or to delete a VPC peering connection request that you initiated, use DeleteVpcPeeringConnection.

See also: AWS API Documentation

Request Syntax

response = vpc_peering_connection.reject(
    DryRun=True|False,

)
Parameters
DryRun (boolean) -- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation . Otherwise, it is UnauthorizedOperation .
Return type
dict
Returns
Response Syntax
{
    'Return': True|False
}

Response Structure

  • (dict) --
    • Return (boolean) --

      Returns true if the request succeeds; otherwise, it returns an error.