Skip to content

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

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