class AWS::EC2::VPNGateway

def attach vpc

Returns:
  • (Attachment) -

Parameters:
  • vpc (VPC, String) -- A {VPC} object or a vpc id string.
def attach vpc
  client_opts = {}
  client_opts[:vpn_gateway_id] = vpn_gateway_id
  client_opts[:vpc_id] = vpc_id(vpc)
  resp = client.attach_vpn_gateway(client_opts)
  Attachment.new(self, resp.attachment)
end