delete_customer_gateway
async
¶
delete_customer_gateway(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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/async_ec2.py
16070 16071 16072 16073 16074 16075 16076 16077 16078 16079 16080 16081 16082 16083 16084 16085 16086 16087 16088 16089 16090 16091 16092 16093 16094 16095 16096 16097 16098 16099 16100 16101 16102 16103 16104 16105 16106 16107 16108 16109 16110 16111 16112 16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123 | |