Skip to content

get_analyzer async

get_analyzer(
    analyzer_name: AnalyzerName,
    *,
    config_overrides: Optional[AsyncAccessAnalyzerClientConfig] = None,
) -> GetAnalyzerResponse

Retrieves information about the specified analyzer.

Parameters:

  • analyzer_name (AnalyzerName) –

    The name of the analyzer retrieved.

Raises:

Source code in docs_src/capo_accessanalyzer/_services/async_access_analyzer.py
async def get_analyzer(
    self,
    analyzer_name: "capo_accessanalyzer.types.analyzer_name.AnalyzerName",
    *,
    config_overrides: Optional[AsyncAccessAnalyzerClientConfig] = None,
) -> "capo_accessanalyzer.types.get_analyzer_response.GetAnalyzerResponse":
    """<p>Retrieves information about the specified analyzer.</p>

    Args:
        analyzer_name: <p>The name of the analyzer retrieved.</p>

    Raises:
        capo_accessanalyzer.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        capo_accessanalyzer.errors.internal_server_exception.InternalServerException: <p>Internal server error.</p>
        capo_accessanalyzer.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource could not be found.</p>
        capo_accessanalyzer.errors.throttling_exception.ThrottlingException: <p>Throttling limit exceeded error.</p>
        capo_accessanalyzer.errors.validation_exception.ValidationException: <p>Validation exception error.</p>
        capo_accessanalyzer.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_accessanalyzer.types.get_analyzer_request.GetAnalyzerRequest]",
    ) -> AsyncOperationResponse[
        "capo_accessanalyzer.types.get_analyzer_response.GetAnalyzerResponse"
    ]:
        import capo_accessanalyzer._operations.access_analyzer.get_analyzer

        (
            output,
            http_response,
        ) = await capo_accessanalyzer._operations.access_analyzer.get_analyzer.async_get_analyzer(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetAnalyzer")
    )
    input_: capo_accessanalyzer.types.get_analyzer_request.GetAnalyzerRequest = {
        "analyzer_name": analyzer_name
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output