Skip to main content

tags

Creates, updates, deletes, gets or lists a tags resource.

Overview

Nametags
TypeResource
Idaws.mediaconnect.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsobjectA map of tag keys and values associated with the global resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_global_resourceselectresource_arn, regionLists the tags associated with a global resource in AWS Elemental MediaConnect. The API supports the following global resources: router inputs, router outputs and router network interfaces.
untag_global_resourceupdateresource_arn, tagKeys, regionRemoves tags from a global resource in AWS Elemental MediaConnect. The API supports the following global resources: router inputs, router outputs and router network interfaces.
tag_global_resourceupdateresource_arn, regionAdds tags to a global resource in AWS Elemental MediaConnect. The API supports the following global resources: router inputs, router outputs and router network interfaces.
list_tags_for_resourceexecresource_arn, regionList all tags on a MediaConnect resource in the current region.
tag_resourceexecresource_arn, regionAssociates the specified tags to a resource with the specified resourceArn in the current region. If existing tags on a resource are not specified in the request parameters, they are not changed. When a resource is deleted, the tags associated with that resource are deleted as well.
untag_resourceexecresource_arn, tagKeys, regionDeletes specified tags from a resource in the current region.

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.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
resource_arnstringThe Amazon Resource Name (ARN) of the resource that you want to untag.
tagKeysarrayThe keys of the tags to be removed.

SELECT examples

Lists the tags associated with a global resource in AWS Elemental MediaConnect. The API supports the following global resources: router inputs, router outputs and router network interfaces.

SELECT
tags
FROM aws.mediaconnect.tags
WHERE resource_arn = '{{ resource_arn }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Removes tags from a global resource in AWS Elemental MediaConnect. The API supports the following global resources: router inputs, router outputs and router network interfaces.

UPDATE aws.mediaconnect.tags
SET
-- No updatable properties
WHERE
resource_arn = '{{ resource_arn }}' --required
AND tagKeys = '{{ tagKeys }}' --required
AND region = '{{ region }}' --required;

Lifecycle Methods

List all tags on a MediaConnect resource in the current region.

EXEC aws.mediaconnect.tags.list_tags_for_resource
@resource_arn='{{ resource_arn }}' --required,
@region='{{ region }}' --required
;