modifySnapshotSchedule method
Modifies a snapshot schedule. Any schedule associated with a cluster is modified asynchronously.
May throw InvalidScheduleFault. May throw SnapshotScheduleNotFoundFault. May throw SnapshotScheduleUpdateInProgressFault.
Parameter scheduleDefinitions
:
An updated list of schedule definitions. A schedule definition is made up
of schedule expressions, for example, "cron(30 12 *)" or "rate(12 hours)".
Parameter scheduleIdentifier
:
A unique alphanumeric identifier of the schedule to modify.
Implementation
Future<SnapshotSchedule> modifySnapshotSchedule({
required List<String> scheduleDefinitions,
required String scheduleIdentifier,
}) async {
ArgumentError.checkNotNull(scheduleDefinitions, 'scheduleDefinitions');
ArgumentError.checkNotNull(scheduleIdentifier, 'scheduleIdentifier');
_s.validateStringLength(
'scheduleIdentifier',
scheduleIdentifier,
0,
2147483647,
isRequired: true,
);
final $request = <String, dynamic>{};
$request['ScheduleDefinitions'] = scheduleDefinitions;
$request['ScheduleIdentifier'] = scheduleIdentifier;
final $result = await _protocol.send(
$request,
action: 'ModifySnapshotSchedule',
version: '2012-12-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['ModifySnapshotScheduleMessage'],
shapes: shapes,
resultWrapper: 'ModifySnapshotScheduleResult',
);
return SnapshotSchedule.fromXml($result);
}