Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.pi.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsarrayThe metadata assigned to an Amazon RDS resource consisting of a key-value pair.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectregionRetrieves all the metadata tags associated with Amazon RDS Performance Insights resource.
untag_resourceupdateregion, ServiceType, ResourceARN, TagKeysDeletes the metadata tags from the Amazon RDS Performance Insights resource.
tag_resourceupdateregion, ServiceType, ResourceARNAdds metadata tags to the Amazon RDS Performance Insights 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

Retrieves all the metadata tags associated with Amazon RDS Performance Insights resource.

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

UPDATE examples

Deletes the metadata tags from the Amazon RDS Performance Insights resource.

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