ec2_attach_vpn_gateway: Attaches a virtual private gateway to a VPC

Description Usage Arguments Value Request syntax

View source: R/ec2_operations.R

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 AWS Site-to-Site VPN in the AWS Site-to-Site VPN User Guide.

Usage

1
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 DryRunOperation. Otherwise, it is UnauthorizedOperation.

Value

A list with the following syntax:

1
2
3
4
5
6
list(
  VpcAttachment = list(
    State = "attaching"|"attached"|"detaching"|"detached",
    VpcId = "string"
  )
)

Request syntax

1
2
3
4
5
svc$attach_vpn_gateway(
  VpcId = "string",
  VpnGatewayId = "string",
  DryRun = TRUE|FALSE
)

paws.compute documentation built on March 7, 2021, 5:10 p.m.