Learn R Programming

paws.compute (version 0.1.12)

ec2_delete_nat_gateway: Deletes the specified NAT gateway

Description

Deletes the specified NAT gateway. Deleting a 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)

Value

A list with the following syntax:

list(
  NatGatewayId = "string"
)

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.

Request syntax

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

Examples

Run this code
if (FALSE) {
# This example deletes the specified NAT gateway.
svc$delete_nat_gateway(
  NatGatewayId = "nat-04ae55e711cec5680"
)
}

Run the code above in your browser using DataLab