Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.ssm_contacts.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsarrayThe tags related to the contact or escalation plan.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectregionLists the tags of a contact, escalation plan, rotation, or on-call schedule.
untag_resourceupdateregion, ResourceARN, TagKeysRemoves tags from the specified resource.
tag_resourceupdateregion, ResourceARNTags a contact or escalation plan. You can tag only contacts and escalation plans in the first region of your replication set.

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)

SELECT examples

Lists the tags of a contact, escalation plan, rotation, or on-call schedule.

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

UPDATE examples

Removes tags from the specified resource.

UPDATE aws.ssm_contacts.tags
SET
ResourceARN = '{{ ResourceARN }}',
TagKeys = '{{ TagKeys }}'
WHERE
region = '{{ region }}' --required
AND ResourceARN = '{{ ResourceARN }}' --required
AND TagKeys = '{{ TagKeys }}' --required;