Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.elbv2.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
resource_arnstringThe Amazon Resource Name (ARN) of the resource.
tagsstringInformation about the tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_tagsselectResourceArns, regionDescribes the tags for the specified Elastic Load Balancing resources. You can describe the tags for one or more Application Load Balancers, Network Load Balancers, Gateway Load Balancers, target groups, listeners, or rules.
remove_tagsupdateResourceArns, TagKeys, regionRemoves the specified tags from the specified Elastic Load Balancing resources. You can remove the tags for one or more Application Load Balancers, Network Load Balancers, Gateway Load Balancers, target groups, listeners, or rules.
add_tagsupdateResourceArns, regionTagsAdds the specified tags to the specified Elastic Load Balancing resource. You can tag your Application Load Balancers, Network Load Balancers, Gateway Load Balancers, target groups, trust stores, listeners, and rules. Each tag consists of a key and an optional value. If a resource already has a tag with the same key, AddTags updates its value.

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
ResourceArnsarrayThe Amazon Resource Name (ARN) of the resource.
TagKeysarrayThe tag keys for the tags to remove.
regionstringAWS region (default: us-east-1)
TagsarrayThe tags.

SELECT examples

Describes the tags for the specified Elastic Load Balancing resources. You can describe the tags for one or more Application Load Balancers, Network Load Balancers, Gateway Load Balancers, target groups, listeners, or rules.

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

UPDATE examples

Removes the specified tags from the specified Elastic Load Balancing resources. You can remove the tags for one or more Application Load Balancers, Network Load Balancers, Gateway Load Balancers, target groups, listeners, or rules.

UPDATE aws.elbv2.tags
SET
-- No updatable properties
WHERE
ResourceArns = '{{ ResourceArns }}' --required
AND TagKeys = '{{ TagKeys }}' --required
AND region = '{{ region }}' --required
RETURNING
line_items;