associated_roles
Creates, updates, deletes, gets or lists an associated_roles resource.
Overview
| Name | associated_roles |
| Type | Resource |
| Id | aws.greengrass.associated_roles |
Fields
The following fields are returned by SELECT queries:
- get_associated_role
| Name | Datatype | Description |
|---|---|---|
associated_at | string | The time when the role was associated with the group. |
role_arn | string | The ARN of the role that is associated with the group. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_associated_role | select | group_id, region | Retrieves the role associated with a particular group. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
group_id | string | The ID of the Greengrass group. |
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_associated_role
Retrieves the role associated with a particular group.
SELECT
associated_at,
role_arn
FROM aws.greengrass.associated_roles
WHERE group_id = '{{ group_id }}' -- required
AND region = '{{ region }}' -- required
;