Actions, resources, and condition keys for Amazon IoT Greengrass V2
Amazon IoT Greengrass V2 (service prefix: greengrass) provides the following
service-specific operations, resources, actions, and condition keys for use in IAM permission
policies.
References:
-
Learn how to configure this service.
-
View a list of the API operations available for this service.
-
Learn how to secure this service and its resources by using IAM permission policies.
-
View the programmatic service authorization reference
for this service.
Topics
API operations defined by Amazon IoT Greengrass V2
The following table maps API operations to the IAM actions they authorize. Only condition keys that have static values for the given API and action are listed; for the full set of condition keys supported by each action, see the Actions table.
| Operation | IAM action | Condition key | Possible value(s) | Access level |
|---|---|---|---|---|
|
AssociateServiceRoleToAccount |
Permissions management, Write |
|||
iam:PassedToService |
greengrass.amazonaws.com |
Write |
||
|
BatchAssociateClientDeviceWithCoreDevice |
Write |
|||
|
BatchDisassociateClientDeviceFromCoreDevice |
Write |
|||
|
CancelDeployment |
Write |
|||
|
CreateComponentVersion |
Write |
|||
Tagging, Write |
||||
|
CreateDeployment |
Write |
|||
Tagging, Write |
||||
|
DeleteComponent |
Write |
|||
|
DeleteCoreDevice |
Write |
|||
|
DeleteDeployment |
Write |
|||
|
DescribeComponent |
Read |
|||
|
DisassociateServiceRoleFromAccount |
Write |
|||
|
GetComponent |
Read |
|||
|
GetComponentVersionArtifact |
Read |
|||
|
GetConnectivityInfo |
Read |
|||
|
GetCoreDevice |
Read |
|||
|
GetDeployment |
Read |
|||
|
GetServiceRoleForAccount |
Read |
|||
|
ListClientDevicesAssociatedWithCoreDevice |
List |
|||
|
ListComponentVersions |
List |
|||
|
ListComponents |
List |
|||
|
ListCoreDevices |
List |
|||
|
ListDeployments |
List |
|||
|
ListEffectiveDeployments |
List |
|||
|
ListInstalledComponents |
List |
|||
|
ListTagsForResource |
Read |
|||
|
TagResource |
Tagging, Write |
|||
|
UntagResource |
Tagging, Write |
|||
|
UpdateConnectivityInfo |
Write |
Actions defined by Amazon IoT Greengrass V2
You can specify the following actions in the Action element of an IAM
policy statement. Use policies to grant permissions to perform an operation in Amazon. When
you use an action in a policy, you usually allow or deny access to the API operation or CLI
command with the same name. However, in some cases, a single action controls access to more
than one operation. Alternatively, some operations require several different actions.
| Actions | Description | Resource types (*required) | Condition keys | Access level |
|---|---|---|---|---|
Grants permission to associate a role with your account. Amazon IoT Greengrass uses this role to access your Lambda functions and Amazon IoT resources |
Permissions management, Write |
|||
Grants permission to associate a list of client devices with a core device |
Write |
|||
Grants permission to disassociate a list of client devices from a core device |
Write |
|||
Grants permission to cancel a deployment |
Write |
|||
Grants permission to create a component |
Write |
|||
Grants permission to create a deployment |
Write |
|||
Grants permission to delete a component |
Write |
|||
Grants permission to delete a Amazon IoT Greengrass core device, which is an Amazon IoT thing. This operation removes the core device from the list of core devices. This operation doesn't delete the Amazon IoT thing |
Write |
|||
Grants permission to delete a deployment. To delete an active deployment, it needs to be cancelled first |
Write |
|||
Grants permission to retrieve metadata for a version of a component |
Read |
|||
Grants permission to disassociate the service role from an account. Without a service role, deployments will not work |
Write |
|||
Grants permission to get the recipe for a version of a component |
Read |
|||
Grants permission to get the pre-signed URL to download a public component artifact |
Read |
|||
Grants permission to retrieve the connectivity information for a Greengrass core device |
Read |
|||
Grants permission to retrieves metadata for a Amazon IoT Greengrass core device |
Read |
|||
Grants permission to get a deployment |
Read |
|||
Grants permission to retrieve the service role that is attached to an account |
Read |
|||
Grants permission to retrieve a paginated list of client devices associated to a Amazon IoT Greengrass core device |
List |
|||
Grants permission to retrieve a paginated list of all versions for a component |
List |
|||
Grants permission to retrieve a paginated list of component summaries |
List |
|||
Grants permission to retrieve a paginated list of Amazon IoT Greengrass core devices |
List |
|||
Grants permission to retrieves a paginated list of deployments |
List |
|||
Grants permission to retrieves a paginated list of deployment jobs that Amazon IoT Greengrass sends to Amazon IoT Greengrass core devices |
List |
|||
Grants permission to retrieve a paginated list of the components that a Amazon IoT Greengrass core device runs |
List |
|||
Grants permission to list the tags for a resource |
Read |
|||
Grants permission to list components that meet the component, version, and platform requirements of a deployment |
List |
|||
Grants permission to add tags to a resource |
Tagging, Write |
|||
Grants permission to remove tags from a resource |
Tagging, Write |
|||
Grants permission to update the connectivity information for a Greengrass core. Any devices that belong to the group that has this core will receive this information in order to find the location of the core and connect to it |
Write |
Resource types defined by Amazon IoT Greengrass V2
The following resource types are defined by this service and can be used in the
Resource element of IAM permission policy statements.
| Resource types | ARN | Condition keys |
|---|---|---|
arn:${Partition}:greengrass:${Region}:${Account}:components:${ComponentName} |
||
arn:${Partition}:greengrass:${Region}:${Account}:components:${ComponentName}:versions:${ComponentVersion} |
||
arn:${Partition}:greengrass:${Region}:${Account}:/greengrass/things/${ThingName}/connectivityInfo |
||
arn:${Partition}:greengrass:${Region}:${Account}:coreDevices:${CoreDeviceThingName} |
||
arn:${Partition}:greengrass:${Region}:${Account}:/greengrass/groups/${GroupId}/deployments/${DeploymentId}, arn:${Partition}:greengrass:${Region}:${Account}:deployments:${DeploymentId} |
Condition keys for Amazon IoT Greengrass V2
Amazon IoT Greengrass V2 defines the following condition keys that can be used in the
Condition element of an IAM policy.
| Condition keys | Description | Type |
|---|---|---|
Filters access by checking tag key/value pairs included in the request |
String |
|
Filters access by checking tag key/value pairs associated with a specific resource |
String |
|
Filters access by checking tag keys passed in the request |
ArrayOfString |