Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.scheduler.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsarrayThe list of tags associated with the specified resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectresource_arn, regionLists the tags associated with the Scheduler resource.
untag_resourceupdateresource_arn, TagKeys, regionRemoves one or more tags from the specified EventBridge Scheduler schedule group.
tag_resourceupdateresource_arn, regionAssigns one or more tags (key-value pairs) to the specified EventBridge Scheduler resource. You can only assign tags to schedule groups.

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
TagKeysarrayThe list of tag keys to remove from the resource.
regionstringAWS region (default: us-east-1)
resource_arnstringThe Amazon Resource Name (ARN) of the schedule group that you are adding tags to.

SELECT examples

Lists the tags associated with the Scheduler resource.

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

UPDATE examples

Removes one or more tags from the specified EventBridge Scheduler schedule group.

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