Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.kinesisvideo.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
next_tokenstringIf you specify this parameter and the result of a ListTagsForResource call is truncated, the response includes a token that you can use in the next request to fetch the next set of tags. (pattern: <code>[a-zA-Z0-9+/=]*</code>)
tagsobjectA map of tag keys and values associated with the specified signaling channel.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectregionReturns a list of tags associated with the specified signaling channel.
list_tags_for_streamselectregionReturns a list of tags associated with the specified stream. In the request, you must specify either the StreamName or the StreamARN.
untag_resourceupdateregion, ResourceARN, TagKeyListRemoves one or more tags from a signaling channel. In the request, specify only a tag key or keys; don't specify the value. If you specify a tag key that does not exist, it's ignored.
tag_resourceupdateregion, ResourceARNAdds one or more tags to a signaling channel. A tag is a key-value pair (the value is optional) that you can define and assign to Amazon Web Services resources. If you specify a tag that already exists, the tag value is replaced with the value that you specify in the request. For more information, see Using Cost Allocation Tags in the Billing and Cost Management and Cost Management User Guide.
untag_streamupdateregion, TagKeyListRemoves one or more tags from a stream. In the request, specify only a tag key or keys; don't specify the value. If you specify a tag key that does not exist, it's ignored. In the request, you must provide the StreamName or StreamARN.
tag_streamupdateregionAdds one or more tags to a stream. A tag is a key-value pair (the value is optional) that you can define and assign to Amazon Web Services resources. If you specify a tag that already exists, the tag value is replaced with the value that you specify in the request. For more information, see Using Cost Allocation Tags in the Billing and Cost Management and Cost Management User Guide. You must provide either the StreamName or the StreamARN. This operation requires permission for the KinesisVideo:TagStream action. A Kinesis video stream can support up to 50 tags.

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)

SELECT examples

Returns a list of tags associated with the specified signaling channel.

SELECT
next_token,
tags
FROM aws.kinesisvideo.tags
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Removes one or more tags from a signaling channel. In the request, specify only a tag key or keys; don't specify the value. If you specify a tag key that does not exist, it's ignored.

UPDATE aws.kinesisvideo.tags
SET
ResourceARN = '{{ ResourceARN }}',
TagKeyList = '{{ TagKeyList }}'
WHERE
region = '{{ region }}' --required
AND ResourceARN = '{{ ResourceARN }}' --required
AND TagKeyList = '{{ TagKeyList }}' --required;