Skip to content

Delete Customer Gateway

ec2_delete_customer_gateway R Documentation

Deletes the specified customer gateway

Description

Deletes the specified customer gateway. You must delete the VPN connection before you can delete the customer gateway.

Usage

ec2_delete_customer_gateway(CustomerGatewayId, DryRun)

Arguments

CustomerGatewayId

[required] The ID of the customer 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

An empty list.

Request syntax

svc$delete_customer_gateway(
  CustomerGatewayId = "string",
  DryRun = TRUE|FALSE
)

Examples

## Not run: 
# This example deletes the specified customer gateway.
svc$delete_customer_gateway(
  CustomerGatewayId = "cgw-0e11f167"
)

## End(Not run)