Disables one or more alarms. The alarms change to the DISABLED state after you disable them.
Parameters:
-
disable_action_requests
(DisableAlarmActionRequests)
–
The list of disable 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_disable_alarm(
self,
disable_action_requests: "capo_iot_events_data.types.disable_alarm_action_requests.DisableAlarmActionRequests",
*,
config_overrides: Optional[AsyncIoTEventsDataClientConfig] = None,
) -> "capo_iot_events_data.types.batch_disable_alarm_response.BatchDisableAlarmResponse":
"""<p>Disables one or more alarms. The alarms change to the <code>DISABLED</code> state after you disable them.</p>
Args:
disable_action_requests: <p>The list of disable 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_disable_alarm_request.BatchDisableAlarmRequest]",
) -> AsyncOperationResponse[
"capo_iot_events_data.types.batch_disable_alarm_response.BatchDisableAlarmResponse"
]:
import capo_iot_events_data._operations.iot_columbo_data_service.batch_disable_alarm
(
output,
http_response,
) = await capo_iot_events_data._operations.iot_columbo_data_service.batch_disable_alarm.async_batch_disable_alarm(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("BatchDisableAlarm")
)
input_: capo_iot_events_data.types.batch_disable_alarm_request.BatchDisableAlarmRequest = {
"disable_action_requests": disable_action_requests
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|