class AWS::EC2::VPNConnection

@attr_reader [Symbol] state

@attr_reader [String] vpn_type

@attr_reader [String] vpn_gateway_id

@attr_reader [String] customer_gateway_id

@attr_reader [String] customer_gateway_configuration

Configuration XML for the VPN connection's customer gateway This 
attribute is always present after creating a vpn connection while 
the connection state is :pending or :available.

Attributes

id[R]

@return [String]

vpn_connection_id[R]

@return [String]

Public Class Methods

new(vpn_connection_id, options = {}) click to toggle source

@private

Calls superclass method AWS::Core::Resource::new
# File lib/aws/ec2/vpn_connection.rb, line 37
def initialize vpn_connection_id, options = {}
  @vpn_connection_id = vpn_connection_id
  super
end

Public Instance Methods

customer_gateway() click to toggle source

@return [CustomerGateway]

# File lib/aws/ec2/vpn_connection.rb, line 77
def customer_gateway
  CustomerGateway.new(customer_gateway_id, :config => config)
end
delete() click to toggle source

Deletes this vpn connection. @return [nil]

# File lib/aws/ec2/vpn_connection.rb, line 90
def delete
  client_opts = {}
  client_opts[:vpn_connection_id] = vpn_connection_id
  client.delete_vpn_connection(client_opts)
  nil
end
vgw_telemetry() click to toggle source

@return [Array<Telemetry>]

# File lib/aws/ec2/vpn_connection.rb, line 82
def vgw_telemetry
  vgw_telemetry_details.collect do |details|
    Telemetry.new(self, details)
  end
end
vpn_gateway() click to toggle source

@return [VPNGateway]

# File lib/aws/ec2/vpn_connection.rb, line 72
def vpn_gateway
  VPNGateway.new(vpn_gateway_id, :config => config)
end