class AWS::EC2::VPNGateway::Attachment

Attributes

state[R]

@return [Symbol]

vpc[R]

@return [VPC]

vpn_gateway[R]

@return [VPNGateway]

Public Class Methods

new(vpn_gateway, details) click to toggle source

@private

# File lib/aws/ec2/vpn_gateway/attachment.rb, line 20
def initialize vpn_gateway, details
  @vpn_gateway = vpn_gateway
  @vpc = VPC.new(details.vpc_id, :config => vpn_gateway.config)
  @state = details.state.to_sym
end

Public Instance Methods

delete() click to toggle source

Deletes this attachment. @return (see VPNGateway#detach)

# File lib/aws/ec2/vpn_gateway/attachment.rb, line 37
def delete
  vpn_gateway.detach(vpc)
end
Also aliased as: detach
detach()
Alias for: delete