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
3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 | |