Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.pca_connector_ad.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsobjectThe tags, if any, that are associated with your resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectresource_arn, regionLists the tags, if any, that are associated with your resource.
untag_resourceupdateresource_arn, tagKeys, regionRemoves one or more tags from your resource.
tag_resourceupdateresource_arn, regionAdds one or more tags to your 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)
resource_arnstringThe Amazon Resource Name (ARN) that was returned when you created the resource.
tagKeysarraySpecifies a list of tag keys that you want to remove from the specified resources.

SELECT examples

Lists the tags, if any, that are associated with your resource.

SELECT
tags
FROM aws.pca_connector_ad.tags
WHERE resource_arn = '{{ resource_arn }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Removes one or more tags from your resource.

UPDATE aws.pca_connector_ad.tags
SET
-- No updatable properties
WHERE
resource_arn = '{{ resource_arn }}' --required
AND tagKeys = '{{ tagKeys }}' --required
AND region = '{{ region }}' --required;