class AwsCli::CLI::EC2::VPC::InternetGateways
Public Instance Methods
attach()
click to toggle source
# File lib/awscli/cli/ec2/vpc/internet_gateways.rb, line 30 def attach create_ec2_object @ec2.attach options[:internet_gateway_id], options[:vpc_id] end
create()
click to toggle source
# File lib/awscli/cli/ec2/vpc/internet_gateways.rb, line 15 def create create_ec2_object @ec2.create end
deattach()
click to toggle source
# File lib/awscli/cli/ec2/vpc/internet_gateways.rb, line 38 def deattach create_ec2_object @ec2.deattach options[:internet_gateway_id], options[:vpc_id] end
delete()
click to toggle source
# File lib/awscli/cli/ec2/vpc/internet_gateways.rb, line 22 def delete create_ec2_object @ec2.delete options[:internet_gateway_id] end
list()
click to toggle source
# File lib/awscli/cli/ec2/vpc/internet_gateways.rb, line 9 def list create_ec2_object @ec2.list end
Private Instance Methods
create_ec2_object()
click to toggle source
# File lib/awscli/cli/ec2/vpc/internet_gateways.rb, line 45 def create_ec2_object puts "ec2 Establishing Connetion..." $ec2_conn = if parent_options[:region] Awscli::Connection.new.request_ec2(parent_options[:region]) else Awscli::Connection.new.request_ec2 end puts "ec2 Establishing Connetion... OK" @ec2 = Awscli::EC2::InternetGateways.new($ec2_conn) end