DeleteNatGateway#

Description#

Deletes the specified NAT gateway. After deletion, all routes through this NAT gateway in the VPC route tables become blackhole routes. Elastic IP addresses allocated by the cloud in automatic mode are released.

Request Parameters#

  • NatGatewayId — The ID of the NAT gateway to be deleted.

    • Type: String

    • Required: Yes

Response Elements#

  • natGatewayId — The ID of the deleted NAT gateway.

    • Type: String

  • requestId — The request ID.

    • Type: String

Examples#

c2-ec2 DeleteNatGateway NatGatewayId <natgw_id>