Skip to content

Tag Resource

appstream_tag_resource R Documentation

Adds or overwrites one or more tags for the specified AppStream 2

Description

Adds or overwrites one or more tags for the specified AppStream 2.0 resource. You can tag AppStream 2.0 image builders, images, fleets, and stacks.

Each tag consists of a key and an optional value. If a resource already has a tag with the same key, this operation updates its value.

To list the current tags for your resources, use list_tags_for_resource. To disassociate tags from your resources, use untag_resource.

For more information about tags, see Tagging Your Resources in the Amazon AppStream 2.0 Administration Guide.

Usage

appstream_tag_resource(ResourceArn, Tags)

Arguments

ResourceArn

[required] The Amazon Resource Name (ARN) of the resource.

Tags

[required] The tags to associate. A tag is a key-value pair, and the value is optional. For example, Environment=Test. If you do not specify a value, Environment=.

If you do not specify a value, the value is set to an empty string.

Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following special characters:

_ . : / = + \ - @

Value

An empty list.

Request syntax

svc$tag_resource(
  ResourceArn = "string",
  Tags = list(
    "string"
  )
)