tags
Creates, updates, deletes, gets or lists a tags resource.
Overview
| Name | tags |
| Type | Resource |
| Id | aws.ram.tags |
Fields
The following fields are returned by SELECT queries:
SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
tag_resource | update | region, tags | Adds the specified tag keys and values to a resource share or managed permission. If you choose a resource share, the tags are attached to only the resource share, not to the resources that are in the resource share. The tags on a managed permission are the same for all versions of the managed permission. | |
untag_resource | update | region, tagKeys | Removes the specified tag key and value pairs from the specified resource share or managed permission. |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
UPDATE examples
- tag_resource
- untag_resource
Adds the specified tag keys and values to a resource share or managed permission. If you choose a resource share, the tags are attached to only the resource share, not to the resources that are in the resource share. The tags on a managed permission are the same for all versions of the managed permission.
UPDATE aws.ram.tags
SET
resourceShareArn = '{{ resourceShareArn }}',
tags = '{{ tags }}',
resourceArn = '{{ resourceArn }}'
WHERE
region = '{{ region }}' --required
AND tags = '{{ tags }}' --required;
Removes the specified tag key and value pairs from the specified resource share or managed permission.
UPDATE aws.ram.tags
SET
resourceShareArn = '{{ resourceShareArn }}',
tagKeys = '{{ tagKeys }}',
resourceArn = '{{ resourceArn }}'
WHERE
region = '{{ region }}' --required
AND tagKeys = '{{ tagKeys }}' --required;