Skip to content

Delete Nat Gateway

ec2_delete_nat_gateway R Documentation

Deletes the specified NAT gateway

Description

Deletes the specified NAT gateway. Deleting a public NAT gateway disassociates its Elastic IP address, but does not release the address from your account. Deleting a NAT gateway does not delete any NAT gateway routes in your route tables.

Usage

ec2_delete_nat_gateway(DryRun, NatGatewayId)

Arguments

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.

NatGatewayId

[required] The ID of the NAT gateway.

Value

A list with the following syntax:

list(
  NatGatewayId = "string"
)

Request syntax

svc$delete_nat_gateway(
  DryRun = TRUE|FALSE,
  NatGatewayId = "string"
)

Examples

## Not run: 
# This example deletes the specified NAT gateway.
svc$delete_nat_gateway(
  NatGatewayId = "nat-04ae55e711cec5680"
)

## End(Not run)