Skip to main content

tags

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

Overview​

Nametags
TypeResource
Idaws.iotwireless.tags

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsarrayThe tag to attach to the specified resource. Tags are metadata that you can use to manage a resource.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectresourceArn, regionLists the tags (metadata) you have assigned to the resource.
untag_resourceupdateresourceArn, tagKeys, regionRemoves one or more tags from a resource.
tag_resourceupdateresourceArn, regionAdds a tag 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)
resourceArnstringThe ARN of the resource to add tags to.
tagKeysarrayA list of the keys of the tags to remove from the resource.

SELECT examples​

Lists the tags (metadata) you have assigned to the resource.

SELECT
tags
FROM aws.iotwireless.tags
WHERE resourceArn = '{{ resourceArn }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples​

Removes one or more tags from a resource.

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