Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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
- createEndpointConfig :: Text -> NonEmpty ProductionVariant -> CreateEndpointConfig
- data CreateEndpointConfig
- cecKMSKeyId :: Lens' CreateEndpointConfig (Maybe Text)
- cecTags :: Lens' CreateEndpointConfig [Tag]
- cecEndpointConfigName :: Lens' CreateEndpointConfig Text
- cecProductionVariants :: Lens' CreateEndpointConfig (NonEmpty ProductionVariant)
- createEndpointConfigResponse :: Int -> Text -> CreateEndpointConfigResponse
- data CreateEndpointConfigResponse
- cecrsResponseStatus :: Lens' CreateEndpointConfigResponse Int
- cecrsEndpointConfigARN :: Lens' CreateEndpointConfigResponse Text
Creating a Request
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 ofProductionVariant
objects, one for each model that you want to host at this endpoint.
data CreateEndpointConfig Source #
See: createEndpointConfig
smart constructor.
Instances
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:
cecrsResponseStatus
- -- | The response status code.cecrsEndpointConfigARN
- The Amazon Resource Name (ARN) of the endpoint configuration.
data CreateEndpointConfigResponse Source #
See: createEndpointConfigResponse
smart constructor.
Instances
Response Lenses
cecrsResponseStatus :: Lens' CreateEndpointConfigResponse Int Source #
- - | The response status code.
cecrsEndpointConfigARN :: Lens' CreateEndpointConfigResponse Text Source #
The Amazon Resource Name (ARN) of the endpoint configuration.