libZSservicesZSamazonka-sagemakerZSamazonka-sagemaker
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.SageMaker.UpdateEndpoint

Description

Deploys the new EndpointConfig specified in the request, switches to using newly created endpoint, and then deletes resources provisioned for the endpoint using the previous EndpointConfig (there is no availability loss).

When Amazon SageMaker receives the request, it sets the endpoint status to Updating. After updating the endpoint, it sets the status to InService. To check the status of an endpoint, use the DescribeEndpoint API.

You must not delete an EndpointConfig in use by an endpoint that is live or while the UpdateEndpoint or CreateEndpoint operations are being performed on the endpoint. To update an endpoint, you must create a new EndpointConfig.

If you delete the EndpointConfig of an endpoint that is active or being created or updated you may lose visibility into the instance type the endpoint is using. The endpoint must be deleted in order to stop incurring charges.

Synopsis

Creating a Request

data UpdateEndpoint Source #

See: newUpdateEndpoint smart constructor.

Constructors

UpdateEndpoint' 

Fields

  • excludeRetainedVariantProperties :: Maybe [VariantProperty]

    When you are updating endpoint resources with UpdateEndpointInput$RetainAllVariantProperties, whose value is set to true, ExcludeRetainedVariantProperties specifies the list of type VariantProperty to override with the values provided by EndpointConfig. If you don't specify a value for ExcludeAllVariantProperties, no variant properties are overridden.

  • retainAllVariantProperties :: Maybe Bool

    When updating endpoint resources, enables or disables the retention of variant properties, such as the instance count or the variant weight. To retain the variant properties of an endpoint when updating it, set RetainAllVariantProperties to true. To use the variant properties specified in a new EndpointConfig call when updating an endpoint, set RetainAllVariantProperties to false. The default is false.

  • deploymentConfig :: Maybe DeploymentConfig

    The deployment configuration for the endpoint to be updated.

  • endpointName :: Text

    The name of the endpoint whose configuration you want to update.

  • endpointConfigName :: Text

    The name of the new endpoint configuration.

Instances

Instances details
Eq UpdateEndpoint Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateEndpoint

Read UpdateEndpoint Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateEndpoint

Show UpdateEndpoint Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateEndpoint

Generic UpdateEndpoint Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateEndpoint

Associated Types

type Rep UpdateEndpoint :: Type -> Type #

NFData UpdateEndpoint Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateEndpoint

Methods

rnf :: UpdateEndpoint -> () #

Hashable UpdateEndpoint Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateEndpoint

ToJSON UpdateEndpoint Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateEndpoint

AWSRequest UpdateEndpoint Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateEndpoint

Associated Types

type AWSResponse UpdateEndpoint #

ToHeaders UpdateEndpoint Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateEndpoint

ToPath UpdateEndpoint Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateEndpoint

ToQuery UpdateEndpoint Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateEndpoint

type Rep UpdateEndpoint Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateEndpoint

type Rep UpdateEndpoint = D1 ('MetaData "UpdateEndpoint" "Amazonka.SageMaker.UpdateEndpoint" "libZSservicesZSamazonka-sagemakerZSamazonka-sagemaker" 'False) (C1 ('MetaCons "UpdateEndpoint'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "excludeRetainedVariantProperties") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [VariantProperty])) :*: S1 ('MetaSel ('Just "retainAllVariantProperties") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "deploymentConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DeploymentConfig)) :*: (S1 ('MetaSel ('Just "endpointName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "endpointConfigName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse UpdateEndpoint Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateEndpoint

newUpdateEndpoint Source #

Create a value of UpdateEndpoint 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:excludeRetainedVariantProperties:UpdateEndpoint', updateEndpoint_excludeRetainedVariantProperties - When you are updating endpoint resources with UpdateEndpointInput$RetainAllVariantProperties, whose value is set to true, ExcludeRetainedVariantProperties specifies the list of type VariantProperty to override with the values provided by EndpointConfig. If you don't specify a value for ExcludeAllVariantProperties, no variant properties are overridden.

$sel:retainAllVariantProperties:UpdateEndpoint', updateEndpoint_retainAllVariantProperties - When updating endpoint resources, enables or disables the retention of variant properties, such as the instance count or the variant weight. To retain the variant properties of an endpoint when updating it, set RetainAllVariantProperties to true. To use the variant properties specified in a new EndpointConfig call when updating an endpoint, set RetainAllVariantProperties to false. The default is false.

$sel:deploymentConfig:UpdateEndpoint', updateEndpoint_deploymentConfig - The deployment configuration for the endpoint to be updated.

$sel:endpointName:UpdateEndpoint', updateEndpoint_endpointName - The name of the endpoint whose configuration you want to update.

$sel:endpointConfigName:UpdateEndpoint', updateEndpoint_endpointConfigName - The name of the new endpoint configuration.

Request Lenses

updateEndpoint_excludeRetainedVariantProperties :: Lens' UpdateEndpoint (Maybe [VariantProperty]) Source #

When you are updating endpoint resources with UpdateEndpointInput$RetainAllVariantProperties, whose value is set to true, ExcludeRetainedVariantProperties specifies the list of type VariantProperty to override with the values provided by EndpointConfig. If you don't specify a value for ExcludeAllVariantProperties, no variant properties are overridden.

updateEndpoint_retainAllVariantProperties :: Lens' UpdateEndpoint (Maybe Bool) Source #

When updating endpoint resources, enables or disables the retention of variant properties, such as the instance count or the variant weight. To retain the variant properties of an endpoint when updating it, set RetainAllVariantProperties to true. To use the variant properties specified in a new EndpointConfig call when updating an endpoint, set RetainAllVariantProperties to false. The default is false.

updateEndpoint_deploymentConfig :: Lens' UpdateEndpoint (Maybe DeploymentConfig) Source #

The deployment configuration for the endpoint to be updated.

updateEndpoint_endpointName :: Lens' UpdateEndpoint Text Source #

The name of the endpoint whose configuration you want to update.

updateEndpoint_endpointConfigName :: Lens' UpdateEndpoint Text Source #

The name of the new endpoint configuration.

Destructuring the Response

data UpdateEndpointResponse Source #

See: newUpdateEndpointResponse smart constructor.

Constructors

UpdateEndpointResponse' 

Fields

Instances

Instances details
Eq UpdateEndpointResponse Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateEndpoint

Read UpdateEndpointResponse Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateEndpoint

Show UpdateEndpointResponse Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateEndpoint

Generic UpdateEndpointResponse Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateEndpoint

Associated Types

type Rep UpdateEndpointResponse :: Type -> Type #

NFData UpdateEndpointResponse Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateEndpoint

Methods

rnf :: UpdateEndpointResponse -> () #

type Rep UpdateEndpointResponse Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateEndpoint

type Rep UpdateEndpointResponse = D1 ('MetaData "UpdateEndpointResponse" "Amazonka.SageMaker.UpdateEndpoint" "libZSservicesZSamazonka-sagemakerZSamazonka-sagemaker" 'False) (C1 ('MetaCons "UpdateEndpointResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "endpointArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newUpdateEndpointResponse Source #

Create a value of UpdateEndpointResponse 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:UpdateEndpointResponse', updateEndpointResponse_httpStatus - The response's http status code.

$sel:endpointArn:UpdateEndpointResponse', updateEndpointResponse_endpointArn - The Amazon Resource Name (ARN) of the endpoint.

Response Lenses

updateEndpointResponse_endpointArn :: Lens' UpdateEndpointResponse Text Source #

The Amazon Resource Name (ARN) of the endpoint.