update_model_monitor_config
async
¶
update_model_monitor_config(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
model_monitor_config_name_or_arn: Optional[ModelMonitorConfigNameOrArn] = None,
evaluation_config: Optional[EvaluationConfig] = None,
schedule_config: Optional[ModelMonitorScheduleConfig] = None,
role_arn: Optional[RoleArn] = None,
enabled: Optional[Boolean] = None,
client_token: Optional[ModelMonitorClientToken] = None,
) -> UpdateModelMonitorConfigResponse
Updates a model monitor configuration. Parameters that you don't specify keep their current values. If another request modifies the configuration at the same time, you get a ConflictException.
The operation runs synchronously and is idempotent. If you retry the request with the same ClientToken, you get the result of the original request.
This operation is in public preview release for Amazon SageMaker AI and is subject to change. This feature is not recommended for production environments.
Parameters:
-
model_monitor_config_name_or_arn(Optional[ModelMonitorConfigNameOrArn], default:None) –The name or Amazon Resource Name (ARN) of the model monitor configuration. Specify one of the following:
-
The name of the model monitor configuration.
-
The Amazon Resource Name (ARN) of the model monitor configuration.
-
-
evaluation_config(Optional[EvaluationConfig], default:None) –The evaluation monitoring settings. The settings that you specify replace the current evaluation settings. If you omit this parameter, the current value doesn't change.
-
schedule_config(Optional[ModelMonitorScheduleConfig], default:None) –The schedule on which the model monitor configuration runs. If you omit this parameter, the current value doesn't change.
-
role_arn(Optional[RoleArn], default:None) –The Amazon Resource Name (ARN) of the IAM role that the model monitor configuration uses. If you omit this parameter, the current value doesn't change.
-
enabled(Optional[Boolean], default:None) –Specifies whether the model monitor configuration is enabled. Use this parameter to pause or resume the configuration.
-
true- Resume the configuration. The status becomesActive, and the configuration runs on its schedule. -
false- Pause the configuration. The status becomesInactive. The configuration keeps its schedule but doesn't run.
If you omit this parameter, the configuration stays enabled or disabled as it is. You can enable or disable a configuration only when its status is
ActiveorInactive. Otherwise, you get aConflictException. -
-
client_token(Optional[ModelMonitorClientToken], default:None) –A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. If you retry a request with the same client token, you get the result of the original request and no error.
Raises:
-
ConflictException–There was a conflict when you attempted to modify a SageMaker entity such as an
ExperimentorArtifact. -
ResourceNotFound–Resource being access is not found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
34489 34490 34491 34492 34493 34494 34495 34496 34497 34498 34499 34500 34501 34502 34503 34504 34505 34506 34507 34508 34509 34510 34511 34512 34513 34514 34515 34516 34517 34518 34519 34520 34521 34522 34523 34524 34525 34526 34527 34528 34529 34530 34531 34532 34533 34534 34535 34536 34537 34538 34539 34540 34541 34542 34543 34544 34545 34546 34547 34548 34549 34550 34551 34552 34553 34554 34555 34556 34557 34558 34559 34560 34561 34562 34563 34564 34565 | |