Changes one or more alarms to the snooze mode. The alarms change to the SNOOZE_DISABLED state after you set them to the snooze mode.
Parameters:
-
snooze_action_requests
(SnoozeAlarmActionRequests)
–
The list of snooze 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_snooze_alarm(
self,
snooze_action_requests: "capo_iot_events_data.types.snooze_alarm_action_requests.SnoozeAlarmActionRequests",
*,
config_overrides: Optional[AsyncIoTEventsDataClientConfig] = None,
) -> "capo_iot_events_data.types.batch_snooze_alarm_response.BatchSnoozeAlarmResponse":
"""<p>Changes one or more alarms to the snooze mode. The alarms change to the <code>SNOOZE_DISABLED</code> state after you set them to the snooze mode.</p>
Args:
snooze_action_requests: <p>The list of snooze 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_snooze_alarm_request.BatchSnoozeAlarmRequest]",
) -> AsyncOperationResponse[
"capo_iot_events_data.types.batch_snooze_alarm_response.BatchSnoozeAlarmResponse"
]:
import capo_iot_events_data._operations.iot_columbo_data_service.batch_snooze_alarm
(
output,
http_response,
) = await capo_iot_events_data._operations.iot_columbo_data_service.batch_snooze_alarm.async_batch_snooze_alarm(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("BatchSnoozeAlarm")
)
input_: capo_iot_events_data.types.batch_snooze_alarm_request.BatchSnoozeAlarmRequest = {
"snooze_action_requests": snooze_action_requests
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|