delete_nat_gateway
async
¶
delete_nat_gateway(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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/async_ec2.py
17703 17704 17705 17706 17707 17708 17709 17710 17711 17712 17713 17714 17715 17716 17717 17718 17719 17720 17721 17722 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734 17735 17736 17737 17738 17739 17740 17741 17742 17743 17744 17745 17746 17747 17748 17749 17750 17751 17752 17753 17754 17755 17756 | |