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

Class: Aws::AutoScaling::Tag

Inherits:
Resources::Resource show all
Defined in:
(unknown)

Instance Attribute Summary collapse

Attributes inherited from Resources::Resource

#client, #identifiers

Instance Method Summary collapse

Methods inherited from Resources::Resource

add_data_attribute, add_identifier, #data, data_attributes, #data_loaded?, identifiers, #load, #wait_until

Methods included from Resources::OperationMethods

#add_batch_operation, #add_operation, #batch_operation, #batch_operation_names, #batch_operations, #operation, #operation_names, #operations

Constructor Details

#initialize(key, resource_id, resource_type, options = {}) ⇒ Object #initialize(options = {}) ⇒ Object

Overloads:

  • #initialize(key, resource_id, resource_type, options = {}) ⇒ Object

    Parameters:

    • key (String)
    • resource_id (String)
    • resource_type (String)

    Options Hash (options):

    • :client (Client)

      When `:client is not given, the options hash is used to construct a new Client object.

  • #initialize(options = {}) ⇒ Object

    Options Hash (options):

    • :key (required, String)
    • :resource_id (required, String)
    • :resource_type (required, String)
    • :client (Client)

      When `:client is not given, the options hash is used to construct a new Client object.

Instance Attribute Details

#keyString (readonly)

Returns:

  • (String)

#propagate_at_launchBoolean (readonly)

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

Returns:

  • (Boolean)

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

#resource_idString (readonly)

Returns:

  • (String)

#resource_typeString (readonly)

Returns:

  • (String)

#valueString (readonly)

The tag value.

Returns:

  • (String)

    The tag value.

Instance Method Details

#createStruct

Creates or updates tags for the specified Auto Scaling group.

When you specify a tag with a key that already exists, the operation overwrites the previous tag definition, and you do not get an error message.

For more information, see Tagging Auto Scaling groups and instances in the Amazon EC2 Auto Scaling User Guide.

Examples:

Request syntax example with placeholder values


tag.create()

Returns:

  • (Struct)

    Returns an empty response.

See Also:

#deleteStruct

Deletes the specified tags.

Examples:

Request syntax example with placeholder values


tag.delete()

Returns:

  • (Struct)

    Returns an empty response.

See Also: