Attach Vpn Gateway
ec2_attach_vpn_gateway | R Documentation |
Attaches a virtual private gateway to a VPC¶
Description¶
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.
Usage¶
Arguments¶
VpcId
[required] The ID of the VPC.
VpnGatewayId
[required] The ID of the virtual private gateway.
DryRun
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 isUnauthorizedOperation
.
Value¶
A list with the following syntax:
list(
VpcAttachment = list(
State = "attaching"|"attached"|"detaching"|"detached",
VpcId = "string"
)
)