stop_inference_experiment
async
¶
stop_inference_experiment(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
name: Optional[InferenceExperimentName] = None,
model_variant_actions: Optional[ModelVariantActionMap] = None,
desired_model_variants: Optional[ModelVariantConfigList] = None,
desired_state: Optional[InferenceExperimentStopDesiredState] = None,
reason: Optional[InferenceExperimentStatusReason] = None,
) -> StopInferenceExperimentResponse
Stops an inference experiment.
Parameters:
-
name(Optional[InferenceExperimentName], default:None) –The name of the inference experiment to stop.
-
model_variant_actions(Optional[ModelVariantActionMap], default:None) –Array of key-value pairs, with names of variants mapped to actions. The possible actions are the following:
-
Promote- Promote the shadow variant to a production variant -
Remove- Delete the variant -
Retain- Keep the variant as it is
-
-
desired_model_variants(Optional[ModelVariantConfigList], default:None) –An array of
ModelVariantConfigobjects. There is one for each variant that you want to deploy after the inference experiment stops. EachModelVariantConfigdescribes the infrastructure configuration for deploying the corresponding variant. -
desired_state(Optional[InferenceExperimentStopDesiredState], default:None) –The desired state of the experiment after stopping. The possible states are the following:
-
Completed: The experiment completed successfully -
Cancelled: The experiment was canceled
-
-
reason(Optional[InferenceExperimentStatusReason], default:None) –The reason for stopping the experiment.
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/async_sage_maker.py
28561 28562 28563 28564 28565 28566 28567 28568 28569 28570 28571 28572 28573 28574 28575 28576 28577 28578 28579 28580 28581 28582 28583 28584 28585 28586 28587 28588 28589 28590 28591 28592 28593 28594 28595 28596 28597 28598 28599 28600 28601 28602 28603 28604 28605 28606 28607 28608 28609 28610 28611 28612 28613 28614 28615 28616 28617 28618 28619 28620 28621 28622 28623 28624 28625 28626 28627 28628 28629 28630 28631 28632 | |