Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.appmesh.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
keystringOne part of a key-value pair that make up a tag. A key is a general label that acts like a category for more specific tag values.
valuestringThe optional part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key).

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectresourceArn, regionlimit, nextTokenList the tags for an App Mesh resource.
tag_resourceupdateresourceArn, region, tagsAssociates the specified tags to a resource with the specified resourceArn. If existing tags on a resource aren't specified in the request parameters, they aren't changed. When a resource is deleted, the tags associated with that resource are also deleted.
untag_resourceupdateresourceArn, region, tagKeysDeletes specified tags from a 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
regionstringAWS region (default: us-east-1)
resourceArnstringThe Amazon Resource Name (ARN) of the resource to delete tags from.
limitintegerThe maximum number of tag results returned by ListTagsForResource in paginated output. When this parameter is used, ListTagsForResource returns only limit results in a single page along with a nextToken response element. You can see the remaining results of the initial request by sending another ListTagsForResource request with the returned nextToken value. This value can be between 1 and 100. If you don't use this parameter, ListTagsForResource returns up to 100 results and a nextToken value if applicable.
nextTokenstringThe nextToken value returned from a previous paginated ListTagsForResource request where limit was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value.

SELECT examples

List the tags for an App Mesh resource.

SELECT
key,
value
FROM aws.appmesh.tags
WHERE resourceArn = '{{ resourceArn }}' -- required
AND region = '{{ region }}' -- required
AND limit = '{{ limit }}'
AND nextToken = '{{ nextToken }}'
;

UPDATE examples

Associates the specified tags to a resource with the specified resourceArn. If existing tags on a resource aren't specified in the request parameters, they aren't changed. When a resource is deleted, the tags associated with that resource are also deleted.

UPDATE aws.appmesh.tags
SET
tags = '{{ tags }}'
WHERE
resourceArn = '{{ resourceArn }}' --required
AND region = '{{ region }}' --required
AND tags = '{{ tags }}' --required;