devicefarm:ListTagsForResource

List

devicefarm:ListTagsForResource is a List access-level action in the devicefarm service. Grants permission to list the tags of a resource

Resource types

ARNs that devicefarm:ListTagsForResource can be scoped to in an IAM policy.

arn:${Partition}:devicefarm:${Region}::device:${ResourceId}
device
arn:${Partition}:devicefarm:${Region}::deviceinstance:${ResourceId}
deviceinstance
arn:${Partition}:devicefarm:${Region}:${Account}:devicepool:${ResourceId}
devicepool
arn:${Partition}:devicefarm:${Region}:${Account}:instanceprofile:${ResourceId}
instanceprofile
arn:${Partition}:devicefarm:${Region}:${Account}:networkprofile:${ResourceId}
networkprofile
arn:${Partition}:devicefarm:${Region}:${Account}:project:${ResourceId}
project
arn:${Partition}:devicefarm:${Region}:${Account}:run:${ResourceId}
run
arn:${Partition}:devicefarm:${Region}:${Account}:session:${ResourceId}
session
arn:${Partition}:devicefarm:${Region}:${Account}:testgrid-project:${ResourceId}
testgrid-project
arn:${Partition}:devicefarm:${Region}:${Account}:testgrid-session:${ResourceId}
testgrid-session
arn:${Partition}:devicefarm:${Region}:${Account}:vpceconfiguration:${ResourceId}
vpceconfiguration

Condition keys

Keys you can use in the Condition block of a policy that grants devicefarm:ListTagsForResource.

aws:ResourceTag/${TagKey} String

Filters actions based on tag-value assoicated with the resource

Example IAM policy

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

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowDevicefarmListTagsForResource",
      "Effect": "Allow",
      "Action": "devicefarm:ListTagsForResource",
      "Resource": "*"
    }
  ]
}

Related actions in devicefarm

View all devicefarm actions →