batchEnableAlarm method
Future<BatchEnableAlarmResponse>
batchEnableAlarm({
- required List<
EnableAlarmActionRequest> enableActionRequests,
Enables one or more alarms. The alarms change to the NORMAL
state after you enable them.
May throw InternalFailureException.
May throw InvalidRequestException.
May throw ServiceUnavailableException.
May throw ThrottlingException.
Parameter enableActionRequests :
The list of enable action requests. You can specify up to 10 requests per
operation.
Implementation
Future<BatchEnableAlarmResponse> batchEnableAlarm({
required List<EnableAlarmActionRequest> enableActionRequests,
}) async {
final $payload = <String, dynamic>{
'enableActionRequests': enableActionRequests,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/alarms/enable',
exceptionFnMap: _exceptionFns,
);
return BatchEnableAlarmResponse.fromJson(response);
}