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.greengrass.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 the account. |
role_arn | string | The ARN of the role which is associated with the account. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_service_role_for_account | select | region | Retrieves the service role that is attached to your account. |
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
Retrieves the service role that is attached to your account.
SELECT
associated_at,
role_arn
FROM aws.greengrass.service_role_for_accounts
WHERE region = '{{ region }}' -- required
;