associate_service_role_to_account

GreengrassV2.Client.associate_service_role_to_account(**kwargs)

Associates a Greengrass service role 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. The role must include the AWSGreengrassResourceAccessRolePolicy managed policy or a custom policy that defines equivalent permissions for the IoT Greengrass features that you use. For more information, see Greengrass service role in the IoT Greengrass Version 2 Developer Guide .

See also: AWS API Documentation

Request Syntax

response = client.associate_service_role_to_account(
    roleArn='string'
)
Parameters
roleArn (string) --

[REQUIRED]

The Amazon Resource Name (ARN) of the service role to associate with IoT Greengrass for your Amazon Web Services account in this Amazon Web Services Region.

Return type
dict
Returns
Response Syntax
{
    'associatedAt': 'string'
}

Response Structure

  • (dict) --
    • associatedAt (string) --

      The time when the service role was associated with IoT Greengrass for your Amazon Web Services account in this Amazon Web Services Region.

Exceptions

  • GreengrassV2.Client.exceptions.ValidationException
  • GreengrassV2.Client.exceptions.InternalServerException