Class: AWS::AutoScaling::Tag

Inherits:
Hash
  • Object
show all
Defined in:
lib/aws/auto_scaling/tag.rb

Overview

Auto Scaling tags are hashes with two helper methods:

Instance Method Summary collapse

Instance Method Details

#deletenil

Deletes the tag from the resource.

Returns:

  • (nil)


52
53
54
55
# File 'lib/aws/auto_scaling/tag.rb', line 52

def delete
  resource.delete_tags([self])
  nil
end

#resourceGroup

Returns the tagged resource. Currently this is always an Auto Scaling group.

Returns:

  • (Group)

    Returns the tagged resource. Currently this is always an Auto Scaling group.



46
47
48
# File 'lib/aws/auto_scaling/tag.rb', line 46

def resource
  @resource
end