Skip to main content

tag_keys

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

Overview

Nametag_keys
TypeResource
Idaws.resourcegroupstaggingapi.tag_keys

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tag_keystringA list of all tag keys in the Amazon Web Services account.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_tag_keysselectregionReturns 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.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

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
;