tags
Creates, updates, deletes, gets or lists a tags resource.
Overview
| Name | tags |
| Type | Resource |
| Id | aws.iotwireless.tags |
Fields
The following fields are returned by SELECT queries:
- list_tags_for_resource
| Name | Datatype | Description |
|---|---|---|
tags | array | The 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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_tags_for_resource | select | resourceArn, region | Lists the tags (metadata) you have assigned to the resource. | |
untag_resource | update | resourceArn, tagKeys, region | Removes one or more tags from a resource. | |
tag_resource | update | resourceArn, region | Adds 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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
resourceArn | string | The ARN of the resource to add tags to. |
tagKeys | array | A list of the keys of the tags to remove from the resource. |
SELECT examples
- list_tags_for_resource
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
- untag_resource
- tag_resource
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;
Adds a tag to a resource.
UPDATE aws.iotwireless.tags
SET
Tags = '{{ Tags }}'
WHERE
resourceArn = '{{ resourceArn }}' --required
AND region = '{{ region }}' --required;