tags
Creates, updates, deletes, gets or lists a tags resource.
Overview
| Name | tags |
| Type | Resource |
| Id | aws.dax.tags |
Fields
The following fields are returned by SELECT queries:
- list_tags
| Name | Datatype | Description |
|---|---|---|
key | string | The key for the tag. Tag keys are case sensitive. Every DAX cluster can only have one tag with the same key. If you try to add an existing tag (same key), the existing tag value will be updated to the new value. |
value | string | The value of the tag. Tag values are case-sensitive and can be null. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_tags | select | region | List all of the tags for a DAX cluster. You can call ListTags up to 10 times per second, per account. | |
untag_resource | update | region, ResourceName, TagKeys | Removes the association of tags from a DAX resource. You can call UntagResource up to 5 times per second, per account. | |
tag_resource | update | region, ResourceName | Associates a set of tags with a DAX resource. You can call TagResource up to 5 times per second, per account. |
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) |
SELECT examples
- list_tags
List all of the tags for a DAX cluster. You can call ListTags up to 10 times per second, per account.
SELECT
key,
value
FROM aws.dax.tags
WHERE region = '{{ region }}' -- required
;
UPDATE examples
- untag_resource
- tag_resource
Removes the association of tags from a DAX resource. You can call UntagResource up to 5 times per second, per account.
UPDATE aws.dax.tags
SET
ResourceName = '{{ ResourceName }}',
TagKeys = '{{ TagKeys }}'
WHERE
region = '{{ region }}' --required
AND ResourceName = '{{ ResourceName }}' --required
AND TagKeys = '{{ TagKeys }}' --required
RETURNING
tags;
Associates a set of tags with a DAX resource. You can call TagResource up to 5 times per second, per account.
UPDATE aws.dax.tags
SET
ResourceName = '{{ ResourceName }}',
Tags = '{{ Tags }}'
WHERE
region = '{{ region }}' --required
AND ResourceName = '{{ ResourceName }}' --required
RETURNING
tags;