Class: Aws::AutoScaling::Types::Tag

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-autoscaling/types.rb

Overview

Note:

When making an API call, you may pass Tag data as a hash:

{
  resource_id: "XmlString",
  resource_type: "XmlString",
  key: "TagKey", # required
  value: "TagValue",
  propagate_at_launch: false,
}

Describes a tag for an Auto Scaling group.

Instance Attribute Summary collapse

Instance Attribute Details

#keyString

The tag key.

Returns:

  • (String)


4429
4430
4431
4432
4433
4434
4435
4436
# File 'lib/aws-sdk-autoscaling/types.rb', line 4429

class Tag < Struct.new(
  :resource_id,
  :resource_type,
  :key,
  :value,
  :propagate_at_launch)
  include Aws::Structure
end

#propagate_at_launchBoolean

Determines whether the tag is added to new instances as they are launched in the group.

Returns:

  • (Boolean)


4429
4430
4431
4432
4433
4434
4435
4436
# File 'lib/aws-sdk-autoscaling/types.rb', line 4429

class Tag < Struct.new(
  :resource_id,
  :resource_type,
  :key,
  :value,
  :propagate_at_launch)
  include Aws::Structure
end

#resource_idString

The name of the group.

Returns:

  • (String)


4429
4430
4431
4432
4433
4434
4435
4436
# File 'lib/aws-sdk-autoscaling/types.rb', line 4429

class Tag < Struct.new(
  :resource_id,
  :resource_type,
  :key,
  :value,
  :propagate_at_launch)
  include Aws::Structure
end

#resource_typeString

The type of resource. The only supported value is ‘auto-scaling-group`.

Returns:

  • (String)


4429
4430
4431
4432
4433
4434
4435
4436
# File 'lib/aws-sdk-autoscaling/types.rb', line 4429

class Tag < Struct.new(
  :resource_id,
  :resource_type,
  :key,
  :value,
  :propagate_at_launch)
  include Aws::Structure
end

#valueString

The tag value.

Returns:

  • (String)


4429
4430
4431
4432
4433
4434
4435
4436
# File 'lib/aws-sdk-autoscaling/types.rb', line 4429

class Tag < Struct.new(
  :resource_id,
  :resource_type,
  :key,
  :value,
  :propagate_at_launch)
  include Aws::Structure
end