delete_customer_gateway
¶
delete_customer_gateway(
*,
config_overrides: Optional[EC2ClientConfig] = None,
customer_gateway_id: Optional[CustomerGatewayId] = None,
dry_run: Optional[Boolean] = None,
) -> None
Deletes the specified customer gateway. You must delete the VPN connection before you can delete the customer gateway.
Parameters:
-
customer_gateway_id(Optional[CustomerGatewayId], default:None) –The ID of the customer gateway.
-
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.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To delete a customer gateway This example deletes the specified customer gateway.
Source code in docs_src/capo_ec2/_services/ec2.py
15874 15875 15876 15877 15878 15879 15880 15881 15882 15883 15884 15885 15886 15887 15888 15889 15890 15891 15892 15893 15894 15895 15896 15897 15898 15899 15900 15901 15902 15903 15904 15905 15906 15907 15908 15909 15910 15911 15912 15913 15914 15915 15916 15917 15918 15919 15920 15921 15922 15923 15924 15925 15926 | |