Skip to main content

service_role_for_accounts

Creates, updates, deletes, gets or lists a service_role_for_accounts resource.

Overview

Nameservice_role_for_accounts
TypeResource
Idaws.greengrass.service_role_for_accounts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
associated_atstringThe time when the service role was associated with the account.
role_arnstringThe ARN of the role which is associated with the account.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_service_role_for_accountselectregionRetrieves 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.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

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
;