Skip to content

get_logging_configuration async

get_logging_configuration(
    identifier: LoggingConfigurationIdentifier,
    *,
    config_overrides: Optional[AsyncivschatClientConfig] = None,
) -> GetLoggingConfigurationResponse

Gets the specified logging configuration.

Parameters:

Raises:

Source code in docs_src/capo_ivschat/_services/async_ivschat.py
async def get_logging_configuration(
    self,
    identifier: "capo_ivschat.types.logging_configuration_identifier.LoggingConfigurationIdentifier",
    *,
    config_overrides: Optional[AsyncivschatClientConfig] = None,
) -> "capo_ivschat.types.get_logging_configuration_response.GetLoggingConfigurationResponse":
    """<p>Gets the specified logging configuration.</p>

    Args:
        identifier: <p>Identifier of the logging configuration to be retrieved.</p>

    Raises:
        capo_ivschat.errors.access_denied_exception.AccessDeniedException: <p/>
        capo_ivschat.errors.resource_not_found_exception.ResourceNotFoundException: <p/>
        capo_ivschat.errors.validation_exception.ValidationException: <p/>
        capo_ivschat.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_ivschat.types.get_logging_configuration_request.GetLoggingConfigurationRequest]",
    ) -> AsyncOperationResponse[
        "capo_ivschat.types.get_logging_configuration_response.GetLoggingConfigurationResponse"
    ]:
        import capo_ivschat._operations.amazon_interactive_video_service_chat.get_logging_configuration

        (
            output,
            http_response,
        ) = await capo_ivschat._operations.amazon_interactive_video_service_chat.get_logging_configuration.async_get_logging_configuration(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetLoggingConfiguration")
    )
    input_: capo_ivschat.types.get_logging_configuration_request.GetLoggingConfigurationRequest = {
        "identifier": identifier
    }

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