deleteNatGateway
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.
Samples
fun main() {
//sampleStart
// This example deletes the specified NAT gateway.
val resp = ec2Client.deleteNatGateway {
natGatewayId = "nat-04ae55e711cec5680"
}
//sampleEnd
}