create_model_monitor_config
async
¶
create_model_monitor_config(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
model_monitor_config_name: Optional[ModelMonitorConfigName] = None,
monitoring_source: Optional[MonitoringSource] = None,
evaluation_config: Optional[EvaluationConfig] = None,
schedule_config: Optional[ModelMonitorScheduleConfig] = None,
role_arn: Optional[RoleArn] = None,
tags: Optional[TagList] = None,
client_token: Optional[ModelMonitorClientToken] = None,
) -> CreateModelMonitorConfigResponse
Creates a model monitor configuration.
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(Optional[ModelMonitorConfigName], default:None) –The name of the model monitor configuration.
-
monitoring_source(Optional[MonitoringSource], default:None) –The source that the model monitor configuration monitors.
-
evaluation_config(Optional[EvaluationConfig], default:None) –The evaluation monitoring settings. Specify
EvaluationConfig. -
schedule_config(Optional[ModelMonitorScheduleConfig], default:None) –The schedule on which the model monitor configuration runs.
-
role_arn(Optional[RoleArn], default:None) –The Amazon Resource Name (ARN) of the IAM role that the model monitor configuration uses.
-
tags(Optional[TagList], default:None) –A list of key-value pairs to apply to the model monitor configuration. For information about tagging, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference.
-
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. -
ResourceInUse–Resource being accessed is in use.
-
ResourceLimitExceeded–You have exceeded an SageMaker resource limit. For example, you might have too many training jobs created.
-
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
6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 | |