Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.discovery.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
configuration_idstringThe configuration ID for the item to tag. You can specify a list of keys and values. (pattern: <code>\S*</code>)
configuration_typestringA type of IT asset to tag. (SERVER, PROCESS, CONNECTION, APPLICATION)
keystringA type of tag on which to filter. For example, serverType.
time_of_creationstring (date-time)The time the configuration tag was created in Coordinated Universal Time (UTC).
valuestringA value on which to filter. For example key = serverType and value = web server.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_tagsselectregionRetrieves a list of configuration items that have tags as specified by the key-value pairs, name and value, passed to the optional parameter filters. There are three valid tag filter names: tagKey tagValue configurationId Also, all configuration items associated with your user that have tags can be listed if you call DescribeTags as is without passing any parameters.
create_tagsinsertregion, configurationIds, tagsCreates one or more tags for configuration items. Tags are metadata that help you categorize IT assets. This API accepts a list of multiple configuration items. Do not store sensitive information (like personal data) in tags.
delete_tagsdeleteregionDeletes the association between configuration items and one or more tags. This API accepts a list of multiple configuration items.

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

Retrieves a list of configuration items that have tags as specified by the key-value pairs, name and value, passed to the optional parameter filters. There are three valid tag filter names: tagKey tagValue configurationId Also, all configuration items associated with your user that have tags can be listed if you call DescribeTags as is without passing any parameters.

SELECT
configuration_id,
configuration_type,
key,
time_of_creation,
value
FROM aws.discovery.tags
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates one or more tags for configuration items. Tags are metadata that help you categorize IT assets. This API accepts a list of multiple configuration items. Do not store sensitive information (like personal data) in tags.

INSERT INTO aws.discovery.tags (
configurationIds,
tags,
region
)
SELECT
'{{ configurationIds }}' /* required */,
'{{ tags }}' /* required */,
'{{ region }}'
;

DELETE examples

Deletes the association between configuration items and one or more tags. This API accepts a list of multiple configuration items.

DELETE FROM aws.discovery.tags
WHERE region = '{{ region }}' --required
;