EC2.Client.
attach_vpn_gateway
(**kwargs)¶Attaches a virtual private gateway to a VPC. You can attach one virtual private gateway to one VPC at a time.
For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide .
See also: AWS API Documentation
Request Syntax
response = client.attach_vpn_gateway(
VpcId='string',
VpnGatewayId='string',
DryRun=True|False
)
[REQUIRED]
The ID of the VPC.
[REQUIRED]
The ID of the virtual private gateway.
DryRunOperation
. Otherwise, it is UnauthorizedOperation
.dict
Response Syntax
{
'VpcAttachment': {
'State': 'attaching'|'attached'|'detaching'|'detached',
'VpcId': 'string'
}
}
Response Structure
(dict) --
Contains the output of AttachVpnGateway.
VpcAttachment (dict) --
Information about the attachment.
State (string) --
The current state of the attachment.
VpcId (string) --
The ID of the VPC.