Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DeleteNatGatewayCommand

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.

example

Use a bare-bones client and the command you need to make an API call.

import { EC2Client, DeleteNatGatewayCommand } from "@aws-sdk/client-ec2"; // ES Modules import
// const { EC2Client, DeleteNatGatewayCommand } = require("@aws-sdk/client-ec2"); // CommonJS import
const client = new EC2Client(config);
const command = new DeleteNatGatewayCommand(input);
const response = await client.send(command);
see

DeleteNatGatewayCommandInput for command's input shape.

see

DeleteNatGatewayCommandOutput for command's response shape.

see

config for EC2Client's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: DeleteNatGatewayCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions