deleteScheduledAction method

Future<void> deleteScheduledAction({
  1. required String autoScalingGroupName,
  2. required String scheduledActionName,
})

Deletes the specified scheduled action.

May throw ResourceContentionFault.

Parameter autoScalingGroupName : The name of the Auto Scaling group.

Parameter scheduledActionName : The name of the action to delete.

Implementation

Future<void> deleteScheduledAction({
  required String autoScalingGroupName,
  required String scheduledActionName,
}) async {
  ArgumentError.checkNotNull(autoScalingGroupName, 'autoScalingGroupName');
  _s.validateStringLength(
    'autoScalingGroupName',
    autoScalingGroupName,
    1,
    255,
    isRequired: true,
  );
  ArgumentError.checkNotNull(scheduledActionName, 'scheduledActionName');
  _s.validateStringLength(
    'scheduledActionName',
    scheduledActionName,
    1,
    255,
    isRequired: true,
  );
  final $request = <String, dynamic>{};
  $request['AutoScalingGroupName'] = autoScalingGroupName;
  $request['ScheduledActionName'] = scheduledActionName;
  await _protocol.send(
    $request,
    action: 'DeleteScheduledAction',
    version: '2011-01-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DeleteScheduledActionType'],
    shapes: shapes,
  );
}