amazonka-sagemaker-2.0: Amazon SageMaker Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.SageMaker.StopInferenceExperiment

Description

Stops an inference experiment.

Synopsis

Creating a Request

data StopInferenceExperiment Source #

See: newStopInferenceExperiment smart constructor.

Constructors

StopInferenceExperiment' 

Fields

  • desiredModelVariants :: Maybe (NonEmpty ModelVariantConfig)

    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.

  • desiredState :: Maybe InferenceExperimentStopDesiredState

    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 :: Maybe Text

    The reason for stopping the experiment.

  • name :: Text

    The name of the inference experiment to stop.

  • modelVariantActions :: HashMap Text ModelVariantAction

    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

Instances

Instances details
ToJSON StopInferenceExperiment Source # 
Instance details

Defined in Amazonka.SageMaker.StopInferenceExperiment

ToHeaders StopInferenceExperiment Source # 
Instance details

Defined in Amazonka.SageMaker.StopInferenceExperiment

ToPath StopInferenceExperiment Source # 
Instance details

Defined in Amazonka.SageMaker.StopInferenceExperiment

ToQuery StopInferenceExperiment Source # 
Instance details

Defined in Amazonka.SageMaker.StopInferenceExperiment

AWSRequest StopInferenceExperiment Source # 
Instance details

Defined in Amazonka.SageMaker.StopInferenceExperiment

Generic StopInferenceExperiment Source # 
Instance details

Defined in Amazonka.SageMaker.StopInferenceExperiment

Associated Types

type Rep StopInferenceExperiment :: Type -> Type #

Read StopInferenceExperiment Source # 
Instance details

Defined in Amazonka.SageMaker.StopInferenceExperiment

Show StopInferenceExperiment Source # 
Instance details

Defined in Amazonka.SageMaker.StopInferenceExperiment

NFData StopInferenceExperiment Source # 
Instance details

Defined in Amazonka.SageMaker.StopInferenceExperiment

Methods

rnf :: StopInferenceExperiment -> () #

Eq StopInferenceExperiment Source # 
Instance details

Defined in Amazonka.SageMaker.StopInferenceExperiment

Hashable StopInferenceExperiment Source # 
Instance details

Defined in Amazonka.SageMaker.StopInferenceExperiment

type AWSResponse StopInferenceExperiment Source # 
Instance details

Defined in Amazonka.SageMaker.StopInferenceExperiment

type Rep StopInferenceExperiment Source # 
Instance details

Defined in Amazonka.SageMaker.StopInferenceExperiment

type Rep StopInferenceExperiment = D1 ('MetaData "StopInferenceExperiment" "Amazonka.SageMaker.StopInferenceExperiment" "amazonka-sagemaker-2.0-9SyrKZ4KqhsL1qX9u3ILA3" 'False) (C1 ('MetaCons "StopInferenceExperiment'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "desiredModelVariants") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty ModelVariantConfig))) :*: S1 ('MetaSel ('Just "desiredState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe InferenceExperimentStopDesiredState))) :*: (S1 ('MetaSel ('Just "reason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "modelVariantActions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashMap Text ModelVariantAction))))))

newStopInferenceExperiment Source #

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 successfully
  • Cancelled: 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 variant
  • Remove - Delete the variant
  • Retain - 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 successfully
  • Cancelled: 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 variant
  • Remove - Delete the variant
  • Retain - Keep the variant as it is

Destructuring the Response

data StopInferenceExperimentResponse Source #

See: newStopInferenceExperimentResponse smart constructor.

Constructors

StopInferenceExperimentResponse' 

Fields

Instances

Instances details
Generic StopInferenceExperimentResponse Source # 
Instance details

Defined in Amazonka.SageMaker.StopInferenceExperiment

Associated Types

type Rep StopInferenceExperimentResponse :: Type -> Type #

Read StopInferenceExperimentResponse Source # 
Instance details

Defined in Amazonka.SageMaker.StopInferenceExperiment

Show StopInferenceExperimentResponse Source # 
Instance details

Defined in Amazonka.SageMaker.StopInferenceExperiment

NFData StopInferenceExperimentResponse Source # 
Instance details

Defined in Amazonka.SageMaker.StopInferenceExperiment

Eq StopInferenceExperimentResponse Source # 
Instance details

Defined in Amazonka.SageMaker.StopInferenceExperiment

type Rep StopInferenceExperimentResponse Source # 
Instance details

Defined in Amazonka.SageMaker.StopInferenceExperiment

type Rep StopInferenceExperimentResponse = D1 ('MetaData "StopInferenceExperimentResponse" "Amazonka.SageMaker.StopInferenceExperiment" "amazonka-sagemaker-2.0-9SyrKZ4KqhsL1qX9u3ILA3" 'False) (C1 ('MetaCons "StopInferenceExperimentResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "inferenceExperimentArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newStopInferenceExperimentResponse Source #

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