Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.medical_imaging.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsobjectA list of all tags associated with a medical imaging resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectresource_arn, regionLists all tags associated with a medical imaging resource.
tag_resourceupdateresource_arn, region, tagsAdds a user-specifed key and value tag to a medical imaging resource.
untag_resourceupdateresource_arn, tagKeys, regionRemoves tags from a medical imaging 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)
resource_arnstringThe Amazon Resource Name (ARN) of the medical imaging resource that tags are being removed from.
tagKeysarrayThe keys for the tags to be removed from the medical imaging resource.

SELECT examples

Lists all tags associated with a medical imaging resource.

SELECT
tags
FROM aws.medical_imaging.tags
WHERE resource_arn = '{{ resource_arn }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Adds a user-specifed key and value tag to a medical imaging resource.

UPDATE aws.medical_imaging.tags
SET
tags = '{{ tags }}'
WHERE
resource_arn = '{{ resource_arn }}' --required
AND region = '{{ region }}' --required
AND tags = '{{ tags }}' --required;