Resets one or more alarms. The alarms return to the NORMAL state after you reset them.
Parameters:
-
reset_action_requests
(ResetAlarmActionRequests)
–
The list of reset action requests. You can specify up to 10 requests per operation.
Raises:
Source code in docs_src/capo_iot_events_data/_services/async_io_t_events_data.py
| async def batch_reset_alarm(
self,
reset_action_requests: "capo_iot_events_data.types.reset_alarm_action_requests.ResetAlarmActionRequests",
*,
config_overrides: Optional[AsyncIoTEventsDataClientConfig] = None,
) -> (
"capo_iot_events_data.types.batch_reset_alarm_response.BatchResetAlarmResponse"
):
"""<p>Resets one or more alarms. The alarms return to the <code>NORMAL</code> state after you reset them.</p>
Args:
reset_action_requests: <p>The list of reset action requests. You can specify up to 10 requests per operation.</p>
Raises:
capo_iot_events_data.errors.internal_failure_exception.InternalFailureException: <p>An internal failure occurred.</p>
capo_iot_events_data.errors.invalid_request_exception.InvalidRequestException: <p>The request was invalid.</p>
capo_iot_events_data.errors.service_unavailable_exception.ServiceUnavailableException: <p>The service is currently unavailable.</p>
capo_iot_events_data.errors.throttling_exception.ThrottlingException: <p>The request could not be completed due to throttling.</p>
capo_iot_events_data.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_iot_events_data.types.batch_reset_alarm_request.BatchResetAlarmRequest]",
) -> AsyncOperationResponse[
"capo_iot_events_data.types.batch_reset_alarm_response.BatchResetAlarmResponse"
]:
import capo_iot_events_data._operations.iot_columbo_data_service.batch_reset_alarm
(
output,
http_response,
) = await capo_iot_events_data._operations.iot_columbo_data_service.batch_reset_alarm.async_batch_reset_alarm(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("BatchResetAlarm")
)
input_: capo_iot_events_data.types.batch_reset_alarm_request.BatchResetAlarmRequest = {
"reset_action_requests": reset_action_requests
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|