Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.license_manager_user_subscriptions.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsobjectThe tags for the specified resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectresource_arn, regionReturns the list of tags for the specified resource.
untag_resourceupdateresource_arn, tagKeys, regionRemoves tags from a resource.
tag_resourceupdateresource_arn, regionAdds tags to a resource.

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 tag.
tagKeysarrayThe tag keys to remove from the resource.

SELECT examples

Returns the list of tags for the specified resource.

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

UPDATE examples

Removes tags from a resource.

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