Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.apprunner.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsarrayA list of the tag key-value pairs that are associated with the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectregionList tags that are associated with for an App Runner resource. The response contains a list of tag key-value pairs.
untag_resourceupdateregion, ResourceArn, TagKeysRemove tags from an App Runner resource.
tag_resourceupdateregion, ResourceArnAdd tags to, or update the tag values of, an App Runner resource. A tag is a key-value pair.

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 tags that are associated with for an App Runner resource. The response contains a list of tag key-value pairs.

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

UPDATE examples

Remove tags from an App Runner resource.

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