module AWS::ELB::TaggedItem
Public Instance Methods
add_tag(key, options = {})
click to toggle source
Adds a single tag with an optional tag value.
# adds a tag with the key production resource.tag('production') # adds a tag with the optional value set to production resource.tag('role', :value => 'webserver')
@param [String] key The name of the tag to add. @param [Hash] options @option options [String] :value An optional tag value. Unlike EC2 version, this returns nil
# File lib/aws/elb/tagged_item.rb, line 17 def add_tag key, options = {} tags[key] = options[:value].to_s end
Also aliased as: tag