Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.internetmonitor.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsobjectTags for a resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectresource_arn, regionLists the tags for a resource. Tags are supported only for monitors in Amazon CloudWatch Internet Monitor.
untag_resourceupdateresource_arn, tagKeys, regionRemoves a tag from a resource.
tag_resourceupdateresource_arn, regionAdds a tag to a resource. Tags are supported only for monitors in Amazon CloudWatch Internet Monitor. You can add a maximum of 50 tags in Internet Monitor. A minimum of one tag is required for this call. It returns an error if you use the TagResource request with 0 tags.

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) for a tag that you add to a resource. Tags are supported only for monitors in Amazon CloudWatch Internet Monitor.
tagKeysarrayTag keys that you remove from a resource.

SELECT examples

Lists the tags for a resource. Tags are supported only for monitors in Amazon CloudWatch Internet Monitor.

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

UPDATE examples

Removes a tag from a resource.

UPDATE aws.internetmonitor.tags
SET
-- No updatable properties
WHERE
resource_arn = '{{ resource_arn }}' --required
AND tagKeys = '{{ tagKeys }}' --required
AND region = '{{ region }}' --required;