updateMonitoringSchedule method
Future<UpdateMonitoringScheduleResponse>
updateMonitoringSchedule({
- required MonitoringScheduleConfig monitoringScheduleConfig,
- required String monitoringScheduleName,
Updates a previously created schedule.
May throw ResourceLimitExceeded. May throw ResourceNotFound.
Parameter monitoringScheduleConfig
:
The configuration object that specifies the monitoring schedule and
defines the monitoring job.
Parameter monitoringScheduleName
:
The name of the monitoring schedule. The name must be unique within an AWS
Region within an AWS account.
Implementation
Future<UpdateMonitoringScheduleResponse> updateMonitoringSchedule({
required MonitoringScheduleConfig monitoringScheduleConfig,
required String monitoringScheduleName,
}) async {
ArgumentError.checkNotNull(
monitoringScheduleConfig, 'monitoringScheduleConfig');
ArgumentError.checkNotNull(
monitoringScheduleName, 'monitoringScheduleName');
_s.validateStringLength(
'monitoringScheduleName',
monitoringScheduleName,
1,
63,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'SageMaker.UpdateMonitoringSchedule'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'MonitoringScheduleConfig': monitoringScheduleConfig,
'MonitoringScheduleName': monitoringScheduleName,
},
);
return UpdateMonitoringScheduleResponse.fromJson(jsonResponse.body);
}