service_role_for_accounts
Creates, updates, deletes, gets or lists a service_role_for_accounts resource.
Overview
| Name | service_role_for_accounts |
| Type | Resource |
| Id | aws.greengrassv2.service_role_for_accounts |
Fields
The following fields are returned by SELECT queries:
- get_service_role_for_account
| Name | Datatype | Description |
|---|---|---|
associated_at | string | The time when the service role was associated with IoT Greengrass for your Amazon Web Services account in this Amazon Web Services Region. |
role_arn | string | The ARN of the service role that is associated with IoT Greengrass for your Amazon Web Services account in this Amazon Web Services Region. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_service_role_for_account | select | region | Gets the service role associated with IoT Greengrass for your Amazon Web Services account in this Amazon Web Services Region. IoT Greengrass uses this role to verify the identity of client devices and manage core device connectivity information. For more information, see Greengrass service role in the IoT Greengrass Version 2 Developer Guide. |
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 |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_service_role_for_account
Gets the service role associated with IoT Greengrass for your Amazon Web Services account in this Amazon Web Services Region. IoT Greengrass uses this role to verify the identity of client devices and manage core device connectivity information. For more information, see Greengrass service role in the IoT Greengrass Version 2 Developer Guide.
SELECT
associated_at,
role_arn
FROM aws.greengrassv2.service_role_for_accounts
WHERE region = '{{ region }}' -- required
;