Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.networkmonitor.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsobjectLists the tags assigned to the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectresource_arn, regionLists the tags assigned to this resource.
tag_resourceupdateresource_arn, region, tagsAdds key-value pairs to a monitor or probe.
untag_resourceupdateresource_arn, tagKeys, regionRemoves a key-value pair from a monitor or probe.

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 ARN of the monitor or probe that the tag should be removed from.
tagKeysarrayThe key-value pa

SELECT examples

Lists the tags assigned to this resource.

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

UPDATE examples

Adds key-value pairs to a monitor or probe.

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