Amazon Elastic Compute Cloud
API Reference (API Version 2013-02-01)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Did this page help you?  Yes | No |  Tell us about it...

DeleteCustomerGateway

Description

Deletes a VPN customer gateway. You must delete the VPN connection before deleting the customer gateway.

For more information about VPN customer gateways, see Adding an IPsec Hardware Virtual Private Gateway to Your VPC in the Amazon Virtual Private Cloud User Guide.

Request Parameters

CustomerGatewayId

The ID of the customer gateway.

Type: String

Default: None

Required: Yes

Response Elements

The following elements are returned in an DeleteCustomerGatewayResponse element.

requestId

The ID of the request.

Type: xsd:string

return

Returns true if the request succeeds. Otherwise, returns an error.

Type: xsd:boolean

Examples

Example Request

This example deletes the customer gateway with ID cgw-b4dc3961.

https://ec2.amazonaws.com/?Action=DeleteCustomerGateway
&CustomerGatewayId=cgw-b4dc3961
&AUTHPARAMS

Example Response

<DeleteCustomerGatewayResponse xmlns="http://ec2.amazonaws.com/doc/2013-02-01/">
   <requestId>7a62c49f-347e-4fc4-9331-6e8eEXAMPLE</requestId>
   <return>true</return>
</DeleteCustomerGatewayResponse>