Skip to content

get_intelligence_configuration

get_intelligence_configuration(
    *, config_overrides: Optional[CloudWatchOmniClientConfig] = None
) -> GetIntelligenceConfigurationOutput

Retrieves the intelligence configuration for the calling account. Account is identified via FAS (caller identity). Returns the default configuration if none exists yet.

Raises:

Examples:

Retrieve the intelligence configuration The following example retrieves the intelligence configuration for the calling account. The request carries no parameters; the account is taken from the caller identity. Payloads are shown as JSON; on the wire they are CBOR-encoded.

>>> client.get_intelligence_configuration()
Source code in docs_src/capo_cloudwatchomni/_services/cloud_watch_omni.py
def get_intelligence_configuration(
    self, *, config_overrides: Optional[CloudWatchOmniClientConfig] = None
) -> "capo_cloudwatchomni.types.get_intelligence_configuration_output.GetIntelligenceConfigurationOutput":
    """Retrieves the intelligence configuration for the calling account. Account is identified via FAS (caller identity). Returns the default configuration if none exists yet.

    Raises:
        capo_cloudwatchomni.errors.access_denied_exception.AccessDeniedException: The caller is not authorized to perform this action.
        capo_cloudwatchomni.errors.internal_server_exception.InternalServerException: An unexpected error occurred while processing the request.
        capo_cloudwatchomni.errors.throttling_exception.ThrottlingException: The request was throttled due to exceeding the allowed request rate.
        capo_cloudwatchomni.errors.validation_exception.ValidationException: A parameter is specified incorrectly.
        capo_cloudwatchomni.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        Retrieve the intelligence configuration
        The following example retrieves the intelligence configuration for the calling account. The request carries no parameters; the account is taken from the caller identity. Payloads are shown as JSON; on the wire they are CBOR-encoded.

        >>> client.get_intelligence_configuration()
    """

    def _handler(
        req: "OperationRequest[capo_cloudwatchomni.types.get_intelligence_configuration_input.GetIntelligenceConfigurationInput]",
    ) -> OperationResponse[
        "capo_cloudwatchomni.types.get_intelligence_configuration_output.GetIntelligenceConfigurationOutput"
    ]:
        import capo_cloudwatchomni._operations.cloud_watch_omni_frontend.get_intelligence_configuration

        output, http_response = (
            capo_cloudwatchomni._operations.cloud_watch_omni_frontend.get_intelligence_configuration.get_intelligence_configuration(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetIntelligenceConfiguration")
    )
    input_: capo_cloudwatchomni.types.get_intelligence_configuration_input.GetIntelligenceConfigurationInput = {}

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