Skip to main content

tags

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

Overview​

Nametags
TypeResource
Idaws.transfer.tags

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
keystringThe name assigned to the tag that you create.
valuestringContains one or more values that you assigned to the key name you create.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectregionLists all of the tags associated with the Amazon Resource Name (ARN) that you specify. The resource can be a user, server, or role.
tag_resourceupdateregion, Arn, TagsAttaches a key-value pair to a resource, as identified by its Amazon Resource Name (ARN). Resources are users, servers, roles, and other entities. There is no response returned from this call.
untag_resourceupdateregion, Arn, TagKeysDetaches a key-value pair from a resource, as identified by its Amazon Resource Name (ARN). Resources are users, servers, roles, and other entities. No response is returned from this call.

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)

SELECT examples​

Lists all of the tags associated with the Amazon Resource Name (ARN) that you specify. The resource can be a user, server, or role.

SELECT
key,
value
FROM aws.transfer.tags
WHERE region = '{{ region }}' -- required
;

UPDATE examples​

Attaches a key-value pair to a resource, as identified by its Amazon Resource Name (ARN). Resources are users, servers, roles, and other entities. There is no response returned from this call.

UPDATE aws.transfer.tags
SET
Arn = '{{ Arn }}',
Tags = '{{ Tags }}'
WHERE
region = '{{ region }}' --required
AND Arn = '{{ Arn }}' --required
AND Tags = '{{ Tags }}' --required;