codecommit:ListTagsForResource

List

codecommit:ListTagsForResource is a List access-level action in the codecommit service. Grants permission to list the resource attached to a CodeCommit resource ARN

Resource types

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

arn:${Partition}:codecommit:${Region}:${Account}:${RepositoryName}
repository

Condition keys

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

aws:ResourceTag/${TagKey} String

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

Example IAM policy

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

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

Related actions in codecommit

View all codecommit actions →