EC2 / Client / reject_vpc_peering_connection
reject_vpc_peering_connection#
- EC2.Client.reject_vpc_peering_connection(**kwargs)#
- Rejects a VPC peering connection request. The VPC peering connection must be in the - pending-acceptancestate. 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 = client.reject_vpc_peering_connection( DryRun=True|False, VpcPeeringConnectionId='string' ) - 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.
- VpcPeeringConnectionId (string) – - [REQUIRED] - The ID of the VPC peering connection. 
 
- Return type:
- dict 
- Returns:
- Response Syntax - { 'Return': True|False } - Response Structure - (dict) – - Return (boolean) – - Returns - trueif the request succeeds; otherwise, it returns an error.