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.



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

def initialize(connection)
  @conn = connection
end

Instance Method Details

#create(options) ⇒ Object



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

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

#delete(options) ⇒ Object



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

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

#listObject



597
598
599
# File 'lib/awscli/ec2.rb', line 597

def list
  @conn.tags.table
end