You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::MediaStore::Types::TagResourceInput
- Inherits:
-
Struct
- Object
- Struct
- Aws::MediaStore::Types::TagResourceInput
- Defined in:
- (unknown)
Overview
When passing TagResourceInput as input to an Aws::Client method, you can use a vanilla Hash:
{
resource: "ContainerARN", # required
tags: [ # required
{
key: "TagKey", # required
value: "TagValue",
},
],
}
Instance Attribute Summary collapse
-
#resource ⇒ String
The Amazon Resource Name (ARN) for the container.
-
#tags ⇒ Array<Types::Tag>
An array of key:value pairs that you want to add to the container.
Instance Attribute Details
#resource ⇒ String
The Amazon Resource Name (ARN) for the container.
#tags ⇒ Array<Types::Tag>
An array of key:value pairs that you want to add to the container. You need to specify only the tags that you want to add or update. For example, suppose a container already has two tags (customer:CompanyA and priority:High). You want to change the priority tag and also add a third tag (type:Contract). For TagResource, you specify the following tags: priority:Medium, type:Contract. The result is that your container has three tags: customer:CompanyA, priority:Medium, and type:Contract.