Attaches a VPN gateway to a VPC. For more information, go to Adding an IPsec Hardware VPN Gateway to Your VPC in the Amazon Virtual Private Cloud User Guide.
| Name | Description | Required |
|---|---|---|
|
|
The ID of the VPN gateway to attach to the VPC. Type: String Default: None |
Yes |
|
|
The ID of the VPC. Type: String Default: None |
Yes |
The elements in the following table are wrapped in an
AttachVpnGatewayResponse structure.
| Name | Description |
|---|---|
|
|
The ID of the request. Type: xsd:string |
|
|
Information about the attachment. Type: AttachmentType |
This example attaches the VPN gateway with ID vgw-8db04f81 to the VPC with ID vpc-1a2b3c4d.
https://ec2.amazonaws.com/?Action=AttachVpnGateway &VpnGatewayId=vgw-8db04f81 &VpcId=vpc-1a2b3c4d &AUTHPARAMS
<AttachVpnGatewayResponse xmlns="http://ec2.amazonaws.com/doc/2011-01-01/">
<requestId>7a62c49f-347e-4fc4-9331-6e8eEXAMPLE</requestId>
<attachment>
<vpcId>vpc-1a2b3c4d</vpcId>
<state>attaching</state>
</attachment>
</AttachVpnGatewayResponse>