tags
Creates, updates, deletes, gets or lists a tags resource.
Overview
| Name | tags |
| Type | Resource |
| Id | aws.codestar_notifications.tags |
Fields
The following fields are returned by SELECT queries:
- list_tags_for_resource
| Name | Datatype | Description |
|---|---|---|
tags | object | The tags associated with the notification rule. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_tags_for_resource | select | region | Returns a list of the tags associated with a notification rule. | |
untag_resource | update | resource_arn, tagKeys, region | Removes the association between one or more provided tags and a notification rule. | |
tag_resource | update | region, Arn | Associates 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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
resource_arn | string | The Amazon Resource Name (ARN) of the notification rule from which to remove the tags. |
tagKeys | array | The key names of the tags to remove. |
SELECT examples
- list_tags_for_resource
Returns a list of the tags associated with a notification rule.
SELECT
tags
FROM aws.codestar_notifications.tags
WHERE region = '{{ region }}' -- required
;
UPDATE examples
- untag_resource
- tag_resource
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;
Associates a set of provided tags with a notification rule.
UPDATE aws.codestar_notifications.tags
SET
Arn = '{{ Arn }}',
Tags = '{{ Tags }}'
WHERE
region = '{{ region }}' --required
AND Arn = '{{ Arn }}' --required
RETURNING
tags;