create_context
¶
create_context(
*,
config_overrides: Optional[SageMakerClientConfig] = None,
context_name: Optional[ContextName] = None,
source: Optional[ContextSource] = None,
context_type: Optional[String256] = None,
description: Optional[ExperimentDescription] = None,
properties: Optional[LineageEntityParameters] = None,
tags: Optional[TagList] = None,
) -> CreateContextResponse
Creates a context. A context is a lineage tracking entity that represents a logical grouping of other tracking or experiment entities. Some examples are an endpoint and a model package. For more information, see Amazon SageMaker ML Lineage Tracking.
Parameters:
-
context_name(Optional[ContextName], default:None) –The name of the context. Must be unique to your account in an Amazon Web Services Region.
-
source(Optional[ContextSource], default:None) –The source type, ID, and URI.
-
context_type(Optional[String256], default:None) –The context type.
-
description(Optional[ExperimentDescription], default:None) –The description of the context.
-
properties(Optional[LineageEntityParameters], default:None) –A list of properties to add to the context.
-
tags(Optional[TagList], default:None) –A list of tags to apply to the context.
Raises:
-
ResourceLimitExceeded–You have exceeded an SageMaker resource limit. For example, you might have too many training jobs created.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/sage_maker.py
3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 | |