lambda:GetLayerVersion

Read

lambda:GetLayerVersion is a Read access-level action in the lambda service. Grants permission to view details about a version of an AWS Lambda layer. Note this action also supports GetLayerVersionByArn API

Resource types

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

arn:${Partition}:lambda:${Region}:${Account}:layer:${LayerName}:${LayerVersion}
layerVersion

Condition keys

No condition keys are documented for this action.

Example IAM policy

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

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

Related actions in lambda

View all lambda actions →