greengrass:GetComponent

Read

greengrass:GetComponent is a Read access-level action in the greengrass service. Grants permission to get the recipe for a version of a component

Resource types

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

arn:${Partition}:greengrass:${Region}:${Account}:components:${ComponentName}:versions:${ComponentVersion}
componentVersion

Condition keys

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

aws:ResourceTag/${TagKey} String

Filters access by checking tag key/value pairs associated with a specific resource

Example IAM policy

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

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

Related actions in greengrass

View all greengrass actions →