| Copyright | (c) 2013-2023 Brendan Hay | 
|---|---|
| License | Mozilla Public License, v. 2.0. | 
| Maintainer | Brendan Hay | 
| Stability | auto-generated | 
| Portability | non-portable (GHC extensions) | 
| Safe Haskell | Safe-Inferred | 
| Language | Haskell2010 | 
Amazonka.SageMaker.StopInferenceExperiment
Description
Stops an inference experiment.
Synopsis
- data StopInferenceExperiment = StopInferenceExperiment' {}
 - newStopInferenceExperiment :: Text -> StopInferenceExperiment
 - stopInferenceExperiment_desiredModelVariants :: Lens' StopInferenceExperiment (Maybe (NonEmpty ModelVariantConfig))
 - stopInferenceExperiment_desiredState :: Lens' StopInferenceExperiment (Maybe InferenceExperimentStopDesiredState)
 - stopInferenceExperiment_reason :: Lens' StopInferenceExperiment (Maybe Text)
 - stopInferenceExperiment_name :: Lens' StopInferenceExperiment Text
 - stopInferenceExperiment_modelVariantActions :: Lens' StopInferenceExperiment (HashMap Text ModelVariantAction)
 - data StopInferenceExperimentResponse = StopInferenceExperimentResponse' {}
 - newStopInferenceExperimentResponse :: Int -> Text -> StopInferenceExperimentResponse
 - stopInferenceExperimentResponse_httpStatus :: Lens' StopInferenceExperimentResponse Int
 - stopInferenceExperimentResponse_inferenceExperimentArn :: Lens' StopInferenceExperimentResponse Text
 
Creating a Request
data StopInferenceExperiment Source #
See: newStopInferenceExperiment smart constructor.
Constructors
| StopInferenceExperiment' | |
Fields 
  | |
Instances
newStopInferenceExperiment Source #
Arguments
| :: Text | |
| -> StopInferenceExperiment | 
Create a value of StopInferenceExperiment with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:desiredModelVariants:StopInferenceExperiment', stopInferenceExperiment_desiredModelVariants - An array of ModelVariantConfig objects. There is one for each variant
 that you want to deploy after the inference experiment stops. Each
 ModelVariantConfig describes the infrastructure configuration for
 deploying the corresponding variant.
$sel:desiredState:StopInferenceExperiment', stopInferenceExperiment_desiredState - The desired state of the experiment after stopping. The possible states
 are the following:
Completed: The experiment completed successfullyCancelled: The experiment was canceled
$sel:reason:StopInferenceExperiment', stopInferenceExperiment_reason - The reason for stopping the experiment.
StopInferenceExperiment, stopInferenceExperiment_name - The name of the inference experiment to stop.
$sel:modelVariantActions:StopInferenceExperiment', stopInferenceExperiment_modelVariantActions - 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 variantRemove- Delete the variantRetain- Keep the variant as it is
Request Lenses
stopInferenceExperiment_desiredModelVariants :: Lens' StopInferenceExperiment (Maybe (NonEmpty ModelVariantConfig)) Source #
An array of ModelVariantConfig objects. There is one for each variant
 that you want to deploy after the inference experiment stops. Each
 ModelVariantConfig describes the infrastructure configuration for
 deploying the corresponding variant.
stopInferenceExperiment_desiredState :: Lens' StopInferenceExperiment (Maybe InferenceExperimentStopDesiredState) Source #
The desired state of the experiment after stopping. The possible states are the following:
Completed: The experiment completed successfullyCancelled: The experiment was canceled
stopInferenceExperiment_reason :: Lens' StopInferenceExperiment (Maybe Text) Source #
The reason for stopping the experiment.
stopInferenceExperiment_name :: Lens' StopInferenceExperiment Text Source #
The name of the inference experiment to stop.
stopInferenceExperiment_modelVariantActions :: Lens' StopInferenceExperiment (HashMap Text ModelVariantAction) Source #
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 variantRemove- Delete the variantRetain- Keep the variant as it is
Destructuring the Response
data StopInferenceExperimentResponse Source #
See: newStopInferenceExperimentResponse smart constructor.
Constructors
| StopInferenceExperimentResponse' | |
Fields 
  | |
Instances
newStopInferenceExperimentResponse Source #
Arguments
| :: Int | |
| -> Text | 
  | 
| -> StopInferenceExperimentResponse | 
Create a value of StopInferenceExperimentResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:StopInferenceExperimentResponse', stopInferenceExperimentResponse_httpStatus - The response's http status code.
$sel:inferenceExperimentArn:StopInferenceExperimentResponse', stopInferenceExperimentResponse_inferenceExperimentArn - The ARN of the stopped inference experiment.
Response Lenses
stopInferenceExperimentResponse_httpStatus :: Lens' StopInferenceExperimentResponse Int Source #
The response's http status code.
stopInferenceExperimentResponse_inferenceExperimentArn :: Lens' StopInferenceExperimentResponse Text Source #
The ARN of the stopped inference experiment.