Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.codestar_notifications.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsobjectThe tags associated with the notification rule.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectregionReturns a list of the tags associated with a notification rule.
untag_resourceupdateresource_arn, tagKeys, regionRemoves the association between one or more provided tags and a notification rule.
tag_resourceupdateregion, ArnAssociates a set of provided tags with a notification rule.

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) of the notification rule from which to remove the tags.
tagKeysarrayThe key names of the tags to remove.

SELECT examples

Returns a list of the tags associated with a notification rule.

SELECT
tags
FROM aws.codestar_notifications.tags
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Removes the association between one or more provided tags and a notification rule.

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