Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.connect.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsobjectInformation about the tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectresource_arn, regionLists the tags for the specified resource. For sample policies that use tags, see Connect Customer Identity-Based Policy Examples in the Connect Customer Administrator Guide.
untag_contactupdatecontact_id, instance_id, TagKeys, regionRemoves the specified tags from the contact resource. For more information about this API is used, see Set up granular billing for a detailed view of your Connect Customer usage.
tag_resourceupdateresource_arn, region, tagsAdds the specified tags to the specified resource. Some of the supported resource types are agents, routing profiles, queues, quick connects, flows, agent statuses, hours of operation, phone numbers, security profiles, task templates, and custom metrics. For a complete list, see Tagging resources in Connect Customer. For sample policies that use tags, see Connect Customer Identity-Based Policy Examples in the Connect Customer Administrator Guide.
tag_contactupdateregion, ContactId, InstanceIdAdds the specified tags to the contact resource. For more information about this API is used, see Set up granular billing for a detailed view of your Connect Customer usage.
untag_resourceupdateresource_arn, regiontagKeysRemoves the specified tags from the specified resource.

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
TagKeysarrayA list of tag keys. Existing tags on the contact whose keys are members of this list will be removed.
contact_idstringThe identifier of the contact in this instance of Connect Customer.
instance_idstringThe identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
regionstringAWS region (default: us-east-1)
resource_arnstringThe Amazon Resource Name (ARN) of the resource.
tagKeysarrayThe tag keys.

SELECT examples

Lists the tags for the specified resource. For sample policies that use tags, see Connect Customer Identity-Based Policy Examples in the Connect Customer Administrator Guide.

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

UPDATE examples

Removes the specified tags from the contact resource. For more information about this API is used, see Set up granular billing for a detailed view of your Connect Customer usage.

UPDATE aws.connect.tags
SET
-- No updatable properties
WHERE
contact_id = '{{ contact_id }}' --required
AND instance_id = '{{ instance_id }}' --required
AND TagKeys = '{{ TagKeys }}' --required
AND region = '{{ region }}' --required;