Attach Vpn Gateway
ec2_attach_vpn_gateway | R Documentation |
Attaches an available virtual private gateway to a VPC¶
Description¶
Attaches an available 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¶
ec2_attach_vpn_gateway(VpcId, VpnGatewayId, DryRun)
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
|
Value¶
A list with the following syntax:
list(
VpcAttachment = list(
VpcId = "string",
State = "attaching"|"attached"|"detaching"|"detached"
)
)
Request syntax¶
svc$attach_vpn_gateway(
VpcId = "string",
VpnGatewayId = "string",
DryRun = TRUE|FALSE
)