amazonka-sagemaker-1.6.0: Amazon SageMaker Service SDK.

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

Network.AWS.SageMaker.CreateEndpointConfig

Contents

Description

Creates an endpoint configuration that Amazon SageMaker hosting services uses to deploy models. In the configuration, you identify one or more models, created using the CreateModel API, to deploy and the resources that you want Amazon SageMaker to provision. Then you call the CreateEndpoint API.

In the request, you define one or more ProductionVariant s, each of which identifies a model. Each ProductionVariant parameter also describes the resources that you want Amazon SageMaker to provision. This includes the number and type of ML compute instances to deploy.

If you are hosting multiple models, you also assign a VariantWeight to specify how much traffic you want to allocate to each model. For example, suppose that you want to host two models, A and B, and you assign traffic weight 2 for model A and 1 for model B. Amazon SageMaker distributes two-thirds of the traffic to Model A, and one-third to model B.

Synopsis

Creating a Request

createEndpointConfig Source #

Creates a value of CreateEndpointConfig with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • cecKMSKeyId - The Amazon Resource Name (ARN) of a AWS Key Management Service key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance that hosts the endpoint.
  • cecTags - An array of key-value pairs. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide .
  • cecEndpointConfigName - The name of the endpoint configuration. You specify this name in a CreateEndpoint request.
  • cecProductionVariants - An array of ProductionVariant objects, one for each model that you want to host at this endpoint.

data CreateEndpointConfig Source #

See: createEndpointConfig smart constructor.

Instances

Eq CreateEndpointConfig Source # 
Data CreateEndpointConfig Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateEndpointConfig -> c CreateEndpointConfig #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateEndpointConfig #

toConstr :: CreateEndpointConfig -> Constr #

dataTypeOf :: CreateEndpointConfig -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateEndpointConfig) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateEndpointConfig) #

gmapT :: (forall b. Data b => b -> b) -> CreateEndpointConfig -> CreateEndpointConfig #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateEndpointConfig -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateEndpointConfig -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateEndpointConfig -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateEndpointConfig -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateEndpointConfig -> m CreateEndpointConfig #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateEndpointConfig -> m CreateEndpointConfig #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateEndpointConfig -> m CreateEndpointConfig #

Read CreateEndpointConfig Source # 
Show CreateEndpointConfig Source # 
Generic CreateEndpointConfig Source # 
Hashable CreateEndpointConfig Source # 
ToJSON CreateEndpointConfig Source # 
NFData CreateEndpointConfig Source # 

Methods

rnf :: CreateEndpointConfig -> () #

AWSRequest CreateEndpointConfig Source # 
ToHeaders CreateEndpointConfig Source # 
ToPath CreateEndpointConfig Source # 
ToQuery CreateEndpointConfig Source # 
type Rep CreateEndpointConfig Source # 
type Rep CreateEndpointConfig = D1 * (MetaData "CreateEndpointConfig" "Network.AWS.SageMaker.CreateEndpointConfig" "amazonka-sagemaker-1.6.0-9oNc2IB3ZCo9VZHXZi5zcA" False) (C1 * (MetaCons "CreateEndpointConfig'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_cecKMSKeyId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_cecTags") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Tag])))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cecEndpointConfigName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_cecProductionVariants") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (List1 ProductionVariant))))))
type Rs CreateEndpointConfig Source # 

Request Lenses

cecKMSKeyId :: Lens' CreateEndpointConfig (Maybe Text) Source #

The Amazon Resource Name (ARN) of a AWS Key Management Service key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance that hosts the endpoint.

cecTags :: Lens' CreateEndpointConfig [Tag] Source #

An array of key-value pairs. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide .

cecEndpointConfigName :: Lens' CreateEndpointConfig Text Source #

The name of the endpoint configuration. You specify this name in a CreateEndpoint request.

cecProductionVariants :: Lens' CreateEndpointConfig (NonEmpty ProductionVariant) Source #

An array of ProductionVariant objects, one for each model that you want to host at this endpoint.

Destructuring the Response

createEndpointConfigResponse Source #

Creates a value of CreateEndpointConfigResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreateEndpointConfigResponse Source #

See: createEndpointConfigResponse smart constructor.

Instances

Eq CreateEndpointConfigResponse Source # 
Data CreateEndpointConfigResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateEndpointConfigResponse -> c CreateEndpointConfigResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateEndpointConfigResponse #

toConstr :: CreateEndpointConfigResponse -> Constr #

dataTypeOf :: CreateEndpointConfigResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateEndpointConfigResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateEndpointConfigResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateEndpointConfigResponse -> CreateEndpointConfigResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateEndpointConfigResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateEndpointConfigResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateEndpointConfigResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateEndpointConfigResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateEndpointConfigResponse -> m CreateEndpointConfigResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateEndpointConfigResponse -> m CreateEndpointConfigResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateEndpointConfigResponse -> m CreateEndpointConfigResponse #

Read CreateEndpointConfigResponse Source # 
Show CreateEndpointConfigResponse Source # 
Generic CreateEndpointConfigResponse Source # 
NFData CreateEndpointConfigResponse Source # 
type Rep CreateEndpointConfigResponse Source # 
type Rep CreateEndpointConfigResponse = D1 * (MetaData "CreateEndpointConfigResponse" "Network.AWS.SageMaker.CreateEndpointConfig" "amazonka-sagemaker-1.6.0-9oNc2IB3ZCo9VZHXZi5zcA" False) (C1 * (MetaCons "CreateEndpointConfigResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_cecrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)) (S1 * (MetaSel (Just Symbol "_cecrsEndpointConfigARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))

Response Lenses

cecrsEndpointConfigARN :: Lens' CreateEndpointConfigResponse Text Source #

The Amazon Resource Name (ARN) of the endpoint configuration.