lambda:ListTags

Read

lambda:ListTags is a Read access-level action in the lambda service. Grants permission to retrieve a list of tags for an AWS Lambda function, event source mapping, capacity provider, code signing configuration, network connector or MicroVM image resource

Resource types

ARNs that lambda:ListTags can be scoped to in an IAM policy.

arn:${Partition}:lambda:${Region}:${Account}:capacity-provider:${CapacityProviderName}
capacityProvider
arn:${Partition}:lambda:${Region}:${Account}:code-signing-config:${CodeSigningConfigId}
code signing config
arn:${Partition}:lambda:${Region}:${Account}:event-source-mapping:${UUID}
eventSourceMapping
arn:${Partition}:lambda:${Region}:${Account}:function:${FunctionName}
function
arn:${Partition}:lambda:${Region}:${Account}:microvm-image:${MicrovmImageName}
microvmImage
arn:${Partition}:lambda:${Region}:${Account}:network-connector:${NetworkConnectorId}
networkConnector

Condition keys

Keys you can use in the Condition block of a policy that grants lambda:ListTags.

aws:ResourceTag/${TagKey} String

Filters access by the tags associated with the resource

Example IAM policy

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

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowLambdaListTags",
      "Effect": "Allow",
      "Action": "lambda:ListTags",
      "Resource": "*"
    }
  ]
}

Related actions in lambda

View all lambda actions →