tag_keys
Creates, updates, deletes, gets or lists a tag_keys resource.
Overview
| Name | tag_keys |
| Type | Resource |
| Id | aws.resourcegroupstaggingapi.tag_keys |
Fields
The following fields are returned by SELECT queries:
- get_tag_keys
| Name | Datatype | Description |
|---|---|---|
tag_key | string | A list of all tag keys in the Amazon Web Services account. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_tag_keys | select | region | Returns all tag keys currently in use in the specified Amazon Web Services Region for the calling account. This operation supports pagination, where the response can be sent in multiple pages. You should check the PaginationToken response parameter to determine if there are additional results available to return. Repeat the query, passing the PaginationToken response parameter value as an input to the next request until you recieve a null value. A null value for PaginationToken indicates that there are no more results waiting to be returned. |
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
- get_tag_keys
Returns all tag keys currently in use in the specified Amazon Web Services Region for the calling account. This operation supports pagination, where the response can be sent in multiple pages. You should check the PaginationToken response parameter to determine if there are additional results available to return. Repeat the query, passing the PaginationToken response parameter value as an input to the next request until you recieve a null value. A null value for PaginationToken indicates that there are no more results waiting to be returned.
SELECT
tag_key
FROM aws.resourcegroupstaggingapi.tag_keys
WHERE region = '{{ region }}' -- required
;