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.



581
582
583
# File 'lib/awscli/ec2.rb', line 581

def initialize(connection)
  @conn = connection
end

Instance Method Details

#create(options) ⇒ Object



589
590
591
592
# File 'lib/awscli/ec2.rb', line 589

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

#delete(options) ⇒ Object



594
595
596
597
# File 'lib/awscli/ec2.rb', line 594

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

#listObject



585
586
587
# File 'lib/awscli/ec2.rb', line 585

def list
  @conn.tags.table
end