update_model_monitor_config
¶
update_model_monitor_config(
*,
config_overrides: Optional[SageMakerClientConfig] = 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/sage_maker.py
34046 34047 34048 34049 34050 34051 34052 34053 34054 34055 34056 34057 34058 34059 34060 34061 34062 34063 34064 34065 34066 34067 34068 34069 34070 34071 34072 34073 34074 34075 34076 34077 34078 34079 34080 34081 34082 34083 34084 34085 34086 34087 34088 34089 34090 34091 34092 34093 34094 34095 34096 34097 34098 34099 34100 34101 34102 34103 34104 34105 34106 34107 34108 34109 34110 34111 34112 34113 34114 34115 34116 34117 34118 34119 34120 34121 | |