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.
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.
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);
DeleteNatGatewayCommandInput for command's
input
shape.DeleteNatGatewayCommandOutput for command's
response
shape.config for EC2Client's
config
shape.