batchDeleteScheduledAction method

Future<BatchDeleteScheduledActionAnswer> batchDeleteScheduledAction({
  1. required String autoScalingGroupName,
  2. required List<String> scheduledActionNames,
})

Deletes one or more scheduled actions for the specified Auto Scaling group.

May throw ResourceContentionFault.

Parameter autoScalingGroupName : The name of the Auto Scaling group.

Parameter scheduledActionNames : The names of the scheduled actions to delete. The maximum number allowed is 50.

Implementation

Future<BatchDeleteScheduledActionAnswer> batchDeleteScheduledAction({
  required String autoScalingGroupName,
  required List<String> scheduledActionNames,
}) async {
  ArgumentError.checkNotNull(autoScalingGroupName, 'autoScalingGroupName');
  _s.validateStringLength(
    'autoScalingGroupName',
    autoScalingGroupName,
    1,
    255,
    isRequired: true,
  );
  ArgumentError.checkNotNull(scheduledActionNames, 'scheduledActionNames');
  final $request = <String, dynamic>{};
  $request['AutoScalingGroupName'] = autoScalingGroupName;
  $request['ScheduledActionNames'] = scheduledActionNames;
  final $result = await _protocol.send(
    $request,
    action: 'BatchDeleteScheduledAction',
    version: '2011-01-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['BatchDeleteScheduledActionType'],
    shapes: shapes,
    resultWrapper: 'BatchDeleteScheduledActionResult',
  );
  return BatchDeleteScheduledActionAnswer.fromXml($result);
}