greengrass:GetFunctionDefinitionVersion

Read

greengrass:GetFunctionDefinitionVersion is a Read access-level action in the greengrass service. Grants permission to retrieve information about a Lambda function definition version, such as which Lambda functions are included in the version and their configurations

Resource types

ARNs that greengrass:GetFunctionDefinitionVersion can be scoped to in an IAM policy.

arn:${Partition}:greengrass:${Region}:${Account}:/greengrass/definition/functions/${FunctionDefinitionId}
functionDefinition
arn:${Partition}:greengrass:${Region}:${Account}:/greengrass/definition/functions/${FunctionDefinitionId}/versions/${VersionId}
functionDefinitionVersion

Condition keys

Keys you can use in the Condition block of a policy that grants greengrass:GetFunctionDefinitionVersion.

aws:ResourceTag/${TagKey} String

Filters access by the tag value associated with the resource

Example IAM policy

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

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowGreengrassGetFunctionDefinitionVersion",
      "Effect": "Allow",
      "Action": "greengrass:GetFunctionDefinitionVersion",
      "Resource": "*"
    }
  ]
}

Related actions in greengrass

View all greengrass actions →