Detaches a virtual private gateway from a VPC. You do this if you're planning to turn off the VPC and not use it anymore. You can confirm a virtual private gateway has been completely detached from a VPC by describing the virtual private gateway (any attachments to the virtual private gateway are also described).
See https://www.paws-r-sdk.com/docs/ec2_detach_vpn_gateway/ for full documentation.
ec2_detach_vpn_gateway(VpcId, VpnGatewayId, DryRun = NULL)
[required] The ID of the VPC.
[required] The ID of the virtual private gateway.
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
.