Greengrass / Client / get_service_role_for_account

get_service_role_for_account#

Greengrass.Client.get_service_role_for_account()#

Retrieves the service role that is attached to your account.

See also: AWS API Documentation

Request Syntax

response = client.get_service_role_for_account()
Return type:

dict

Returns:

Response Syntax

{
    'AssociatedAt': 'string',
    'RoleArn': 'string'
}

Response Structure

  • (dict) – success

    • AssociatedAt (string) – The time when the service role was associated with the account.

    • RoleArn (string) – The ARN of the role which is associated with the account.

Exceptions