Skip to main content

associated_roles

Creates, updates, deletes, gets or lists an associated_roles resource.

Overview

Nameassociated_roles
TypeResource
Idaws.greengrass.associated_roles

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
associated_atstringThe time when the role was associated with the group.
role_arnstringThe ARN of the role that is associated with the group.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_associated_roleselectgroup_id, regionRetrieves 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.

NameDatatypeDescription
group_idstringThe ID of the Greengrass group.
regionstringAWS region (default: us-east-1)

SELECT examples

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
;