Class: Awscli::EC2::Tags

Inherits:
Object
  • Object
show all
Defined in:
lib/awscli/ec2.rb

Overview

> Monitor

Instance Method Summary collapse

Constructor Details

#initialize(connection) ⇒ Tags

Returns a new instance of Tags.



603
604
605
# File 'lib/awscli/ec2.rb', line 603

def initialize(connection)
  @conn = connection
end

Instance Method Details

#create(options) ⇒ Object



611
612
613
614
# File 'lib/awscli/ec2.rb', line 611

def create(options)
  @conn.tags.create(options)
  puts 'Created Tag'
end

#delete(options) ⇒ Object



616
617
618
619
# File 'lib/awscli/ec2.rb', line 616

def delete(options)
  @conn.tags.destroy(options)
  puts 'Deleted Tag'
end

#listObject



607
608
609
# File 'lib/awscli/ec2.rb', line 607

def list
  @conn.tags.table
end