class Awscli::EC2::Subnet
Public Class Methods
new(connection)
click to toggle source
# File lib/awscli/ec2.rb, line 766 def initialize(connection) @conn = connection end
Public Instance Methods
create(options)
click to toggle source
# File lib/awscli/ec2.rb, line 774 def create(options) subnet = @conn.subnets.create(options) puts "Created Subnet: #{subnet.id}" end
delete(subnet_id)
click to toggle source
# File lib/awscli/ec2.rb, line 779 def delete(subnet_id) subnet = @conn.subnets.get(subnet_id) abort "Cannot find subnet: #{subnet_id}" unless subnet subnet.destroy puts "Deleted subnet: #{subnet_id}" end
list()
click to toggle source
# File lib/awscli/ec2.rb, line 770 def list @conn.subnets.table end