Class: Aws::ECS::Types::TagResourceRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::ECS::Types::TagResourceRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-ecs/types.rb
Overview
Note:
When making an API call, you may pass TagResourceRequest data as a hash:
{
resource_arn: "String", # required
tags: [ # required
{
key: "TagKey",
value: "TagValue",
},
],
}
Instance Attribute Summary collapse
-
#resource_arn ⇒ String
The Amazon Resource Name (ARN) of the resource to which to add tags.
-
#tags ⇒ Array<Types::Tag>
The tags to add to the resource.
Instance Attribute Details
#resource_arn ⇒ String
The Amazon Resource Name (ARN) of the resource to which to add tags. Currently, the supported resources are Amazon ECS tasks, services, task definitions, clusters, and container instances.
6410 6411 6412 6413 6414 |
# File 'lib/aws-sdk-ecs/types.rb', line 6410 class TagResourceRequest < Struct.new( :resource_arn, :tags) include Aws::Structure end |
#tags ⇒ Array<Types::Tag>
The tags to add to the resource. A tag is an array of key-value pairs. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
6410 6411 6412 6413 6414 |
# File 'lib/aws-sdk-ecs/types.rb', line 6410 class TagResourceRequest < Struct.new( :resource_arn, :tags) include Aws::Structure end |