batchPutScheduledUpdateGroupAction method
Creates or updates one or more scheduled scaling actions for an Auto Scaling group.
May throw AlreadyExistsFault.
May throw LimitExceededFault.
May throw ResourceContentionFault.
Parameter autoScalingGroupName :
The name of the Auto Scaling group.
Parameter scheduledUpdateGroupActions :
One or more scheduled actions. The maximum number allowed is 50.
Implementation
Future<BatchPutScheduledUpdateGroupActionAnswer>
batchPutScheduledUpdateGroupAction({
required String autoScalingGroupName,
required List<ScheduledUpdateGroupActionRequest>
scheduledUpdateGroupActions,
}) async {
final $request = <String, String>{
'AutoScalingGroupName': autoScalingGroupName,
if (scheduledUpdateGroupActions.isEmpty)
'ScheduledUpdateGroupActions': ''
else
for (var i1 = 0; i1 < scheduledUpdateGroupActions.length; i1++)
for (var e3 in scheduledUpdateGroupActions[i1].toQueryMap().entries)
'ScheduledUpdateGroupActions.member.${i1 + 1}.${e3.key}': e3.value,
};
final $result = await _protocol.send(
$request,
action: 'BatchPutScheduledUpdateGroupAction',
version: '2011-01-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
resultWrapper: 'BatchPutScheduledUpdateGroupActionResult',
);
return BatchPutScheduledUpdateGroupActionAnswer.fromXml($result);
}