Skip to content

batch_snooze_alarm

batch_snooze_alarm(
    snooze_action_requests: SnoozeAlarmActionRequests,
    *,
    config_overrides: Optional[IoTEventsDataClientConfig] = None,
) -> BatchSnoozeAlarmResponse

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/io_t_events_data.py
def batch_snooze_alarm(
    self,
    snooze_action_requests: "capo_iot_events_data.types.snooze_alarm_action_requests.SnoozeAlarmActionRequests",
    *,
    config_overrides: Optional[IoTEventsDataClientConfig] = 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.
    """

    def _handler(
        req: "OperationRequest[capo_iot_events_data.types.batch_snooze_alarm_request.BatchSnoozeAlarmRequest]",
    ) -> OperationResponse[
        "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 = (
            capo_iot_events_data._operations.iot_columbo_data_service.batch_snooze_alarm.batch_snooze_alarm(
                req.options, req.input
            )
        )
        return OperationResponse(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 = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output