Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.sso_admin.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
keystringThe key for the tag. (pattern: <code>([\p{L}\p{Z}\p{N}_.:/=+-@]*)</code>)
valuestringThe value of the tag. (pattern: <code>([\p{L}\p{Z}\p{N}_.:/=+-@]*)</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectregionLists the tags that are attached to a specified resource.
tag_resourceupdateregion, ResourceArn, TagsAssociates a set of tags with a specified resource.
untag_resourceupdateregion, ResourceArn, TagKeysDisassociates a set of tags from a specified 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.

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

SELECT examples

Lists the tags that are attached to a specified resource.

SELECT
key,
value
FROM aws.sso_admin.tags
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Associates a set of tags with a specified resource.

UPDATE aws.sso_admin.tags
SET
InstanceArn = '{{ InstanceArn }}',
ResourceArn = '{{ ResourceArn }}',
Tags = '{{ Tags }}'
WHERE
region = '{{ region }}' --required
AND ResourceArn = '{{ ResourceArn }}' --required
AND Tags = '{{ Tags }}' --required;