Class | AWS::EC2::ResourceTagCollection |
In: |
lib/aws/ec2/resource_tag_collection.rb
|
Parent: | Object |
@return [String] The value of the tag with the given key, or
nil if no such tag exists.
@param [String or Symbol] key The key of the tag to return.
@yield [key, value] The key/value pairs of each tag
associated with the resource. If the block has an arity of 1, the key and value will be yielded in an aray.
@return [Boolean] True if the resource has a tag for the given key.
@param [String or Symbol] The key of the tag to check.
@return [Boolean] True if the resource has a tag with the given value.
@param [String or Symbol] The value to check.
Allows setting and getting individual tags through instance methods. For example:
tags.color = "red" tags.color # => "red"
Sets multiple tags in a single request.
@param [Hash] tags The tags to set. The keys of the hash
may be strings or symbols, and the values must be strings. Note that there is no way to both set and delete tags simultaneously.
@return [Hash] The current tags as a hash, where the keys
are the tag keys as strings and the values are the tag values as strings.