Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.devicefarm.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsarrayThe tags to add to the resource. A tag is an array of key-value pairs. Tag keys can have a maximum character length of 128 characters. Tag values can have a maximum length of 256 characters.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectregionList the tags for an AWS Device Farm resource.
untag_resourceupdateregion, ResourceARN, TagKeysDeletes the specified tags from a resource.
tag_resourceupdateregion, ResourceARNAssociates the specified tags to a resource with the specified resourceArn. If existing tags on a resource are not specified in the request parameters, they are not changed. When a resource is deleted, the tags associated with that resource are also deleted.

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

List the tags for an AWS Device Farm resource.

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

UPDATE examples

Deletes the specified tags from a resource.

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