Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.ecr_public.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsarrayThe tags for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectregionList the tags for an Amazon ECR Public resource.
tag_resourceupdateregion, resourceArn, 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_resourceupdateregion, resourceArn, 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)

SELECT examples

List the tags for an Amazon ECR Public resource.

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

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.ecr_public.tags
SET
resourceArn = '{{ resourceArn }}',
tags = '{{ tags }}'
WHERE
region = '{{ region }}' --required
AND resourceArn = '{{ resourceArn }}' --required
AND tags = '{{ tags }}' --required;