Attaches a VPN gateway to a VPC. This is the last step required to get your VPC fully connected to your data center before launching instances in it. For more information, go to Process for Using Amazon VPC in the Amazon Virtual Private Cloud Developer Guide.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The ID of the VPN gateway to attach to the VPC. |
|
|
Required |
The ID of the VPC to attach to the VPN gateway. |
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Attach a VPN gateway to an existing VPC.
$ec2 = new AmazonEC2(); $response = $ec2->attach_vpn_gateway('vgw-9aa347f3', 'vpc-fd7cd194'); var_dump($response->isOK());
Related Methods
Source
Method defined in services/ec2.class.php | Toggle source view (8 lines) | View on GitHub