ResourceExplorer / Client / get_account_level_service_configuration

get_account_level_service_configuration#

ResourceExplorer.Client.get_account_level_service_configuration()#

Retrieves the status of your account’s Amazon Web Services service access, and validates the service linked role required to access the multi-account search feature. Only the management account or a delegated administrator with service access enabled can invoke this API call.

See also: AWS API Documentation

Request Syntax

response = client.get_account_level_service_configuration()
Return type:

dict

Returns:

Response Syntax

{
    'OrgConfiguration': {
        'AWSServiceAccessStatus': 'ENABLED'|'DISABLED',
        'ServiceLinkedRole': 'string'
    }
}

Response Structure

  • (dict) –

    • OrgConfiguration (dict) –

      Details about the organization, and whether configuration is ENABLED or DISABLED.

      • AWSServiceAccessStatus (string) –

        This value displays whether your Amazon Web Services service access is ENABLED or DISABLED.

      • ServiceLinkedRole (string) –

        This value shows whether or not you have a valid a service-linked role required to start the multi-account search feature.

Exceptions

  • ResourceExplorer.Client.exceptions.ResourceNotFoundException

  • ResourceExplorer.Client.exceptions.InternalServerException

  • ResourceExplorer.Client.exceptions.ThrottlingException

  • ResourceExplorer.Client.exceptions.AccessDeniedException