Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.notifications.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsobjectA list of tags for the specified ARN.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectarn, regionReturns a list of tags for a specified Amazon Resource Name (ARN). For more information, see Tagging your Amazon Web Services resources in the Tagging Amazon Web Services Resources User Guide. This is only supported for NotificationConfigurations.
tag_resourceupdatearn, region, tagsTags the resource with a tag key and value. For more information, see Tagging your Amazon Web Services resources in the Tagging Amazon Web Services Resources User Guide. This is only supported for NotificationConfigurations.
untag_resourceupdatearn, tagKeys, regionUntags a resource with a specified Amazon Resource Name (ARN). For more information, see Tagging your Amazon Web Services resources in the Tagging Amazon Web Services Resources User Guide.

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
arnstringThe Amazon Resource Name (ARN) to use to untag a resource.
regionstringAWS region (default: us-east-1)
tagKeysarrayThe tag keys to use to untag a resource.

SELECT examples

Returns a list of tags for a specified Amazon Resource Name (ARN). For more information, see Tagging your Amazon Web Services resources in the Tagging Amazon Web Services Resources User Guide. This is only supported for NotificationConfigurations.

SELECT
tags
FROM aws.notifications.tags
WHERE arn = '{{ arn }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Tags the resource with a tag key and value. For more information, see Tagging your Amazon Web Services resources in the Tagging Amazon Web Services Resources User Guide. This is only supported for NotificationConfigurations.

UPDATE aws.notifications.tags
SET
tags = '{{ tags }}'
WHERE
arn = '{{ arn }}' --required
AND region = '{{ region }}' --required
AND tags = '{{ tags }}' --required;