class AWS::EC2::VPNGateway
def exists?
-
(Boolean)- Returns true if the gateway exists.
def exists? begin client.describe_vpn_gateways(:vpn_gateway_ids => [id]) true rescue Errors::InvalidVPNGatewayID::NotFound false end end
(Boolean)
- Returns true if the gateway exists.
def exists? begin client.describe_vpn_gateways(:vpn_gateway_ids => [id]) true rescue Errors::InvalidVPNGatewayID::NotFound false end end