Skip to content

get_account_level_service_configuration

get_account_level_service_configuration(
    *, config_overrides: Optional[ResourceExplorer2ClientConfig] = None
) -> GetAccountLevelServiceConfigurationOutput

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 can invoke this API call.

Raises:

Source code in docs_src/capo_resource_explorer_2/_services/resource_explorer2.py
def get_account_level_service_configuration(
    self, *, config_overrides: Optional[ResourceExplorer2ClientConfig] = None
) -> "capo_resource_explorer_2.types.get_account_level_service_configuration_output.GetAccountLevelServiceConfigurationOutput":
    """<p>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 can invoke this API call. </p>

    Raises:
        capo_resource_explorer_2.errors.access_denied_exception.AccessDeniedException: <p>The credentials that you used to call this operation don't have the minimum required permissions.</p>
        capo_resource_explorer_2.errors.internal_server_exception.InternalServerException: <p>The request failed because of internal service error. Try your request again later.</p>
        capo_resource_explorer_2.errors.resource_not_found_exception.ResourceNotFoundException: <p>You specified a resource that doesn't exist. Check the ID or ARN that you used to identity the resource, and try again.</p>
        capo_resource_explorer_2.errors.throttling_exception.ThrottlingException: <p>The request failed because you exceeded a rate limit for this operation. For more information, see <a href="https://docs.aws.amazon.com/resource-explorer/latest/userguide/quotas.html">Quotas for Resource Explorer</a>.</p>
        capo_resource_explorer_2.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[None]",
    ) -> OperationResponse[
        "capo_resource_explorer_2.types.get_account_level_service_configuration_output.GetAccountLevelServiceConfigurationOutput"
    ]:
        import capo_resource_explorer_2._operations.resource_explorer.get_account_level_service_configuration

        output, http_response = (
            capo_resource_explorer_2._operations.resource_explorer.get_account_level_service_configuration.get_account_level_service_configuration(
                req.options
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetAccountLevelServiceConfiguration")
    )

    response = execute_pipeline(
        OperationRequest(input=None, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output