You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-autoscaling/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)


3894
3895
3896
3897
3898
3899
3900
3901
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 3894

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)


3894
3895
3896
3897
3898
3899
3900
3901
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 3894

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)


3894
3895
3896
3897
3898
3899
3900
3901
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 3894

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)


3894
3895
3896
3897
3898
3899
3900
3901
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 3894

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

#valueString

The tag value.

Returns:

  • (String)


3894
3895
3896
3897
3898
3899
3900
3901
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 3894

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