tags
Creates, updates, deletes, gets or lists a tags resource.
Overview
| Name | tags |
| Type | Resource |
| Id | aws.mediaconvert.tags |
Fields
The following fields are returned by SELECT queries:
- list_tags_for_resource
| Name | Datatype | Description |
|---|---|---|
arn | string | The Amazon Resource Name (ARN) of the resource. |
tags | object | The tags for the resource. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_tags_for_resource | select | arn, region | Retrieve the tags for a MediaConvert resource. | |
untag_resource | update | arn, region | Remove tags from a MediaConvert queue, preset, job, or job template. For information about tagging, see the User Guide at https://docs.aws.amazon.com/mediaconvert/latest/ug/tagging-mediaconvert-resources.html. | |
tag_resource | update | region, Tags | Add tags to a MediaConvert queue, preset, job, or job template. For information about tagging, see the User Guide at https://docs.aws.amazon.com/mediaconvert/latest/ug/tagging-mediaconvert-resources.html. |
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 |
|---|---|---|
arn | string | The Amazon Resource Name (ARN) of the resource that you want to remove tags from. To get the ARN, send a GET request with the resource name. |
region | string | AWS region (default: us-east-1) |
SELECT examples
- list_tags_for_resource
Retrieve the tags for a MediaConvert resource.
SELECT
arn,
tags
FROM aws.mediaconvert.tags
WHERE arn = '{{ arn }}' -- required
AND region = '{{ region }}' -- required
;
UPDATE examples
- untag_resource
- tag_resource
Remove tags from a MediaConvert queue, preset, job, or job template. For information about tagging, see the User Guide at https://docs.aws.amazon.com/mediaconvert/latest/ug/tagging-mediaconvert-resources.html.
UPDATE aws.mediaconvert.tags
SET
TagKeys = '{{ TagKeys }}'
WHERE
arn = '{{ arn }}' --required
AND region = '{{ region }}' --required;
Add tags to a MediaConvert queue, preset, job, or job template. For information about tagging, see the User Guide at https://docs.aws.amazon.com/mediaconvert/latest/ug/tagging-mediaconvert-resources.html.
UPDATE aws.mediaconvert.tags
SET
Arn = '{{ Arn }}',
Tags = '{{ Tags }}'
WHERE
region = '{{ region }}' --required
AND Tags = '{{ Tags }}' --required;