tags
Creates, updates, deletes, gets or lists a tags resource.
Overview
| Name | tags |
| Type | Resource |
| Id | aws.mediastore.tags |
Fields
The following fields are returned by SELECT queries:
- list_tags_for_resource
| Name | Datatype | Description |
|---|---|---|
tags | array | An array of key:value pairs that are assigned to the container. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_tags_for_resource | select | region | Returns a list of the tags assigned to the specified container. | |
untag_resource | update | region, Resource, TagKeys | Removes tags from the specified container. You can specify one or more tags to remove. | |
tag_resource | update | region, Resource | Adds tags to the specified AWS Elemental MediaStore container. Tags are key:value pairs that you can associate with AWS resources. For example, the tag key might be "customer" and the tag value might be "companyA." You can specify one or more tags to add to each container. You can add up to 50 tags to each container. For more information about tagging, including naming and usage conventions, see Tagging Resources in MediaStore. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- list_tags_for_resource
Returns a list of the tags assigned to the specified container.
SELECT
tags
FROM aws.mediastore.tags
WHERE region = '{{ region }}' -- required
;
UPDATE examples
- untag_resource
- tag_resource
Removes tags from the specified container. You can specify one or more tags to remove.
UPDATE aws.mediastore.tags
SET
Resource = '{{ Resource }}',
TagKeys = '{{ TagKeys }}'
WHERE
region = '{{ region }}' --required
AND Resource = '{{ Resource }}' --required
AND TagKeys = '{{ TagKeys }}' --required;
Adds tags to the specified AWS Elemental MediaStore container. Tags are key:value pairs that you can associate with AWS resources. For example, the tag key might be "customer" and the tag value might be "companyA." You can specify one or more tags to add to each container. You can add up to 50 tags to each container. For more information about tagging, including naming and usage conventions, see Tagging Resources in MediaStore.
UPDATE aws.mediastore.tags
SET
Resource = '{{ Resource }}',
Tags = '{{ Tags }}'
WHERE
region = '{{ region }}' --required
AND Resource = '{{ Resource }}' --required;