class AWS::EC2::CustomerGateway
Protocol (BGP) Autonomous System Number (ASN).
@attr_reader [Integer] bgp_asn The customer gateway’s Border Gateway
the customer gateway’s outside interface.
@attr_reader [String] ip_address The Internet-routable IP address of
gateway supports (e.g. ‘ipsec.1’).
@attr_reader [String] type The type of VPN connection the customer
:pending, :available, :deleting, :deleted)
@attr_reader [Symbol] state Returns the gateway state (e.g.
def delete
-
(nil)
-
def delete client_opts = {} client_opts[:customer_gateway_id] = customer_gateway_id client.delete_customer_gateway(client_opts) nil end
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
def initialize customer_gateway_id, options = {}
- Private: -
def initialize customer_gateway_id, options = {} @customer_gateway_id = customer_gateway_id super end
def vpn_connections
-
(VPNConnectionCollection)
- Returns a collection
def vpn_connections connections = VPNConnectionCollection.new(:config => config) connections.filter('customer-gateway-id', id) end