Skip to content

reset_resource_log_level async

reset_resource_log_level(
    resource_identifier: ResourceIdentifier,
    resource_type: ResourceType,
    *,
    config_overrides: Optional[AsyncIoTWirelessClientConfig] = None,
) -> ResetResourceLogLevelResponse

Removes the log-level override, if any, for a specific resource ID and resource type. It can be used for a wireless device, a wireless gateway, or a FUOTA task.

Parameters:

  • resource_type (ResourceType) –

    The type of resource, which can be WirelessDevice, WirelessGateway, or FuotaTask.

Raises:

Source code in docs_src/capo_iot_wireless/_services/async_io_t_wireless.py
async def reset_resource_log_level(
    self,
    resource_identifier: "capo_iot_wireless.types.resource_identifier.ResourceIdentifier",
    resource_type: "capo_iot_wireless.types.resource_type.ResourceType",
    *,
    config_overrides: Optional[AsyncIoTWirelessClientConfig] = None,
) -> "capo_iot_wireless.types.reset_resource_log_level_response.ResetResourceLogLevelResponse":
    """<p>Removes the log-level override, if any, for a specific resource ID and resource type. It can be used for a wireless device, a wireless gateway, or a FUOTA task.</p>

    Args:
        resource_type: <p>The type of resource, which can be <code>WirelessDevice</code>, <code>WirelessGateway</code>, or <code>FuotaTask</code>.</p>

    Raises:
        capo_iot_wireless.errors.access_denied_exception.AccessDeniedException: <p>User does not have permission to perform this action.</p>
        capo_iot_wireless.errors.internal_server_exception.InternalServerException: <p>An unexpected error occurred while processing a request.</p>
        capo_iot_wireless.errors.resource_not_found_exception.ResourceNotFoundException: <p>Resource does not exist.</p>
        capo_iot_wireless.errors.throttling_exception.ThrottlingException: <p>The request was denied because it exceeded the allowed API request rate.</p>
        capo_iot_wireless.errors.validation_exception.ValidationException: <p>The input did not meet the specified constraints.</p>
        capo_iot_wireless.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_iot_wireless.types.reset_resource_log_level_request.ResetResourceLogLevelRequest]",
    ) -> AsyncOperationResponse[
        "capo_iot_wireless.types.reset_resource_log_level_response.ResetResourceLogLevelResponse"
    ]:
        import capo_iot_wireless._operations.iotwireless.reset_resource_log_level

        (
            output,
            http_response,
        ) = await capo_iot_wireless._operations.iotwireless.reset_resource_log_level.async_reset_resource_log_level(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ResetResourceLogLevel")
    )
    input_: capo_iot_wireless.types.reset_resource_log_level_request.ResetResourceLogLevelRequest = {
        "resource_identifier": resource_identifier,
        "resource_type": resource_type,
    }

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