Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.notificationscontacts.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsobjectKey-value pairs that are assigned to a resource, usually for the purpose of grouping and searching for items. Tags are metadata that you define.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectarn, regionLists all of the tags associated with the Amazon Resource Name (ARN) that you specify. The resource can be a user, server, or role.
tag_resourceupdatearn, region, tagsAttaches a key-value pair to a resource, as identified by its Amazon Resource Name (ARN). Taggable resources in AWS User Notifications Contacts include email contacts.
untag_resourceupdatearn, tagKeys, regionDetaches a key-value pair from a resource, as identified by its Amazon Resource Name (ARN). Taggable resources in AWS User Notifications Contacts include email contacts..

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 value of the resource that will have the tag removed. An Amazon Resource Name (ARN) is an identifier for a specific AWS resource, such as a server, user, or role.
regionstringAWS region (default: us-east-1)
tagKeysarraySpecifies a list of tag keys that you want to remove from the specified resources.

SELECT examples

Lists all of the tags associated with the Amazon Resource Name (ARN) that you specify. The resource can be a user, server, or role.

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

UPDATE examples

Attaches a key-value pair to a resource, as identified by its Amazon Resource Name (ARN). Taggable resources in AWS User Notifications Contacts include email contacts.

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