create_context
async
¶
create_context(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = 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/async_sage_maker.py
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 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 | |