Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.bcm_dashboards.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
resource_tagsarrayThe list of tags associated with the specified dashboard resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectregionReturns a list of all tags associated with a specified dashboard resource.
tag_resourceupdateregion, resourceArn, resourceTagsAdds or updates tags for a specified dashboard resource.
untag_resourceupdateregion, resourceArn, resourceTagKeysRemoves specified tags from a dashboard 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

Returns a list of all tags associated with a specified dashboard resource.

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

UPDATE examples

Adds or updates tags for a specified dashboard resource.

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