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,
)
DryRunOperation . Otherwise, it is UnauthorizedOperation .{
'Return': True|False
}
Response Structure
Returns true if the request succeeds; otherwise, it returns an error.