appstream:TagResource

Tagging

appstream:TagResource is a Tagging access-level action in the appstream service. Grants permission to add or overwrite one or more tags for the specified AppStream 2.0 resource. The following resources can be tagged: Image builders, images, fleets, stacks, app blocks and applications

Resource types

ARNs that appstream:TagResource can be scoped to in an IAM policy.

arn:${Partition}:appstream:${Region}:${Account}:app-block/${AppBlockName}
app-block
arn:${Partition}:appstream:${Region}:${Account}:app-block-builder/${AppBlockBuilderName}
app-block-builder
arn:${Partition}:appstream:${Region}:${Account}:application/${ApplicationName}
application
arn:${Partition}:appstream:${Region}:${Account}:fleet/${FleetName}
fleet
arn:${Partition}:appstream:${Region}:${Account}:image/${ImageName}
image
arn:${Partition}:appstream:${Region}:${Account}:image-builder/${ImageBuilderName}
image-builder
arn:${Partition}:appstream:${Region}:${Account}:stack/${StackName}
stack

Condition keys

Keys you can use in the Condition block of a policy that grants appstream:TagResource.

aws:ResourceTag/${TagKey} String

Filters access by the tag key-value pairs attached to the resource

Example IAM policy

A minimal policy that allows appstream:TagResource. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowAppstreamTagResource",
      "Effect": "Allow",
      "Action": "appstream:TagResource",
      "Resource": "*"
    }
  ]
}

Related actions in appstream

View all appstream actions →