EC2.Client.
delete_customer_gateway
(**kwargs)¶Deletes the specified customer gateway. You must delete the VPN connection before you can delete the customer gateway.
See also: AWS API Documentation
Request Syntax
response = client.delete_customer_gateway(
CustomerGatewayId='string',
DryRun=True|False
)
[REQUIRED]
The ID of the customer gateway.
DryRunOperation
. Otherwise, it is UnauthorizedOperation
.None
Examples
This example deletes the specified customer gateway.
response = client.delete_customer_gateway(
CustomerGatewayId='cgw-0e11f167',
)
print(response)
Expected Output:
{
'ResponseMetadata': {
'...': '...',
},
}