class AWS::EC2::CustomerGateway
def exists?
-
(Boolean)
- Returns true if the gateway exists.
def exists? begin client.describe_customer_gateways(:customer_gateway_ids => [id]) true rescue Errors::InvalidCustomerGatewayID::NotFound false end end