delete_nat_gateway
¶
delete_nat_gateway(
*,
config_overrides: Optional[EC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
nat_gateway_id: Optional[NatGatewayId] = None,
) -> DeleteNatGatewayResult
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.
Parameters:
-
dry_run(Optional[Boolean], default:None) –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 isUnauthorizedOperation. -
nat_gateway_id(Optional[NatGatewayId], default:None) –The ID of the NAT gateway.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To delete a NAT gateway This example deletes the specified NAT gateway.
Source code in docs_src/capo_ec2/_services/ec2.py
17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497 17498 17499 17500 17501 17502 17503 17504 17505 17506 17507 17508 17509 17510 17511 17512 17513 17514 17515 17516 17517 17518 17519 17520 17521 17522 17523 17524 17525 17526 17527 | |