Skip to content

get_v2_logging_options async

get_v2_logging_options(
    *,
    config_overrides: Optional[AsyncIoTClientConfig] = None,
    verbose: Optional[VerboseFlag] = None,
) -> GetV2LoggingOptionsResponse

Gets the fine grained logging options.

Requires permission to access the GetV2LoggingOptions action.

Parameters:

  • verbose (Optional[VerboseFlag], default: None ) –

    The flag is used to get all the event types and their respective configuration that event-based logging supports.

Raises:

Source code in docs_src/capo_iot/_services/async_io_t.py
async def get_v2_logging_options(
    self,
    *,
    config_overrides: Optional[AsyncIoTClientConfig] = None,
    verbose: Optional["capo_iot.types.verbose_flag.VerboseFlag"] = None,
) -> "capo_iot.types.get_v2_logging_options_response.GetV2LoggingOptionsResponse":
    """<p>Gets the fine grained logging options.</p> <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">GetV2LoggingOptions</a> action.</p>

    Args:
        verbose: <p> The flag is used to get all the event types and their respective configuration that event-based logging supports. </p>

    Raises:
        capo_iot.errors.internal_exception.InternalException: <p>An unexpected error has occurred.</p>
        capo_iot.errors.not_configured_exception.NotConfiguredException: <p>The resource is not configured.</p>
        capo_iot.errors.service_unavailable_exception.ServiceUnavailableException: <p>The service is temporarily unavailable.</p>
        capo_iot.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_iot.types.get_v2_logging_options_request.GetV2LoggingOptionsRequest]",
    ) -> AsyncOperationResponse[
        "capo_iot.types.get_v2_logging_options_response.GetV2LoggingOptionsResponse"
    ]:
        import capo_iot._operations.aws_iot_service.get_v2_logging_options

        (
            output,
            http_response,
        ) = await capo_iot._operations.aws_iot_service.get_v2_logging_options.async_get_v2_logging_options(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetV2LoggingOptions")
    )
    input_: capo_iot.types.get_v2_logging_options_request.GetV2LoggingOptionsRequest = {}
    if verbose is not None:
        input_["verbose"] = verbose

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