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

Class: Aws::ECS::Types::Attribute

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing Attribute as input to an Aws::Client method, you can use a vanilla Hash:

{
  name: "String", # required
  value: "String",
  target_type: "container-instance", # accepts container-instance
  target_id: "String",
}

An attribute is a name-value pair associated with an Amazon ECS object. Attributes enable you to extend the Amazon ECS data model by adding custom metadata to your resources. For more information, see Attributes in the Amazon Elastic Container Service Developer Guide.

Instance Attribute Summary collapse

Instance Attribute Details

#nameString

The name of the attribute. Up to 128 letters (uppercase and lowercase), numbers, hyphens, underscores, and periods are allowed.

Returns:

  • (String)

    The name of the attribute.

#target_idString

The ID of the target. You can specify the short form ID for a resource or the full Amazon Resource Name (ARN).

Returns:

  • (String)

    The ID of the target.

#target_typeString

The type of the target with which to attach the attribute. This parameter is required if you use the short form ID for a resource instead of the full ARN.

Possible values:

  • container-instance

Returns:

  • (String)

    The type of the target with which to attach the attribute.

#valueString

The value of the attribute. Up to 128 letters (uppercase and lowercase), numbers, hyphens, underscores, periods, at signs (@), forward slashes, colons, and spaces are allowed.

Returns:

  • (String)

    The value of the attribute.