AWS SDK for .NET Documentation
AcceptVpcPeeringConnection Method (request)
Amazon ► Amazon.EC2 ► AmazonEC2 ► AcceptVpcPeeringConnection(AcceptVpcPeeringConnectionRequest)
Did this page help you? Yes No Tell us about it...

Accept a VPC peering connection request. To accept a request, the VPC peering connection must be in the pending-acceptance state, and you must be the owner of the peer VPC. Use the DescribeVpcPeeringConnections request to view your outstanding VPC peering connection requests.

Declaration Syntax

C#

    AcceptVpcPeeringConnectionResponse AcceptVpcPeeringConnection(
    	AcceptVpcPeeringConnectionRequest request
    )

Parameters

request (AcceptVpcPeeringConnectionRequest)
  AcceptVpcPeeringConnection request

Return Value
AcceptVpcPeeringConnection Response from the service
Exceptions

Exception | Condition
--- | ---
WebException |
AmazonEC2Exception |

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)