Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

get_service_role_for_account

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

  • Greengrass.Client.exceptions.InternalServerErrorException