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.CreateEndpointConfig

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.

Use this API if you want to use Amazon SageMaker hosting services to deploy models into production.

In the request, you define a ProductionVariant, for each model that you want to deploy. 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.

When you call CreateEndpoint, a load call is made to DynamoDB to verify that your endpoint configuration exists. When you read data from a DynamoDB table supporting Eventually Consistent Reads , the response might not reflect the results of a recently completed write operation. The response might include some stale data. If the dependent entities are not yet in DynamoDB, this causes a validation error. If you repeat your read request after a short time, the response should return the latest data. So retry logic is recommended to handle these possible issues. We also recommend that customers call DescribeEndpointConfig before calling CreateEndpoint to minimize the potential impact of a DynamoDB eventually consistent read.

Synopsis

Creating a Request

data CreateEndpointConfig Source #

See: newCreateEndpointConfig smart constructor.

Constructors

CreateEndpointConfig' 

Fields

  • asyncInferenceConfig :: Maybe AsyncInferenceConfig

    Specifies configuration for how an endpoint performs asynchronous inference. This is a required field in order for your Endpoint to be invoked using InvokeEndpointAsync .

  • kmsKeyId :: Maybe Text

    The Amazon Resource Name (ARN) of a Amazon Web Services 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.

    The KmsKeyId can be any of the following formats:

    • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab
    • Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
    • Alias name: alias/ExampleAlias
    • Alias name ARN: arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias

    The KMS key policy must grant permission to the IAM role that you specify in your CreateEndpoint, UpdateEndpoint requests. For more information, refer to the Amazon Web Services Key Management Service section Using Key Policies in Amazon Web Services KMS

    Certain Nitro-based instances include local storage, dependent on the instance type. Local storage volumes are encrypted using a hardware module on the instance. You can't request a KmsKeyId when using an instance type with local storage. If any of the models that you specify in the ProductionVariants parameter use nitro-based instances with local storage, do not specify a value for the KmsKeyId parameter. If you specify a value for KmsKeyId when using any nitro-based instances with local storage, the call to CreateEndpointConfig fails.

    For a list of instance types that support local instance storage, see Instance Store Volumes.

    For more information about local instance storage encryption, see SSD Instance Store Volumes.

  • dataCaptureConfig :: Maybe DataCaptureConfig
     
  • tags :: Maybe [Tag]

    An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources.

  • endpointConfigName :: Text

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

  • productionVariants :: NonEmpty ProductionVariant

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

Instances

Instances details
Eq CreateEndpointConfig Source # 
Instance details

Defined in Amazonka.SageMaker.CreateEndpointConfig

Read CreateEndpointConfig Source # 
Instance details

Defined in Amazonka.SageMaker.CreateEndpointConfig

Show CreateEndpointConfig Source # 
Instance details

Defined in Amazonka.SageMaker.CreateEndpointConfig

Generic CreateEndpointConfig Source # 
Instance details

Defined in Amazonka.SageMaker.CreateEndpointConfig

Associated Types

type Rep CreateEndpointConfig :: Type -> Type #

NFData CreateEndpointConfig Source # 
Instance details

Defined in Amazonka.SageMaker.CreateEndpointConfig

Methods

rnf :: CreateEndpointConfig -> () #

Hashable CreateEndpointConfig Source # 
Instance details

Defined in Amazonka.SageMaker.CreateEndpointConfig

ToJSON CreateEndpointConfig Source # 
Instance details

Defined in Amazonka.SageMaker.CreateEndpointConfig

AWSRequest CreateEndpointConfig Source # 
Instance details

Defined in Amazonka.SageMaker.CreateEndpointConfig

Associated Types

type AWSResponse CreateEndpointConfig #

ToHeaders CreateEndpointConfig Source # 
Instance details

Defined in Amazonka.SageMaker.CreateEndpointConfig

ToPath CreateEndpointConfig Source # 
Instance details

Defined in Amazonka.SageMaker.CreateEndpointConfig

ToQuery CreateEndpointConfig Source # 
Instance details

Defined in Amazonka.SageMaker.CreateEndpointConfig

type Rep CreateEndpointConfig Source # 
Instance details

Defined in Amazonka.SageMaker.CreateEndpointConfig

type Rep CreateEndpointConfig = D1 ('MetaData "CreateEndpointConfig" "Amazonka.SageMaker.CreateEndpointConfig" "libZSservicesZSamazonka-sagemakerZSamazonka-sagemaker" 'False) (C1 ('MetaCons "CreateEndpointConfig'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "asyncInferenceConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AsyncInferenceConfig)) :*: (S1 ('MetaSel ('Just "kmsKeyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "dataCaptureConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DataCaptureConfig)))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: (S1 ('MetaSel ('Just "endpointConfigName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "productionVariants") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty ProductionVariant))))))
type AWSResponse CreateEndpointConfig Source # 
Instance details

Defined in Amazonka.SageMaker.CreateEndpointConfig

newCreateEndpointConfig Source #

Create a value of CreateEndpointConfig 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:asyncInferenceConfig:CreateEndpointConfig', createEndpointConfig_asyncInferenceConfig - Specifies configuration for how an endpoint performs asynchronous inference. This is a required field in order for your Endpoint to be invoked using InvokeEndpointAsync .

$sel:kmsKeyId:CreateEndpointConfig', createEndpointConfig_kmsKeyId - The Amazon Resource Name (ARN) of a Amazon Web Services 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.

The KmsKeyId can be any of the following formats:

  • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab
  • Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
  • Alias name: alias/ExampleAlias
  • Alias name ARN: arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias

The KMS key policy must grant permission to the IAM role that you specify in your CreateEndpoint, UpdateEndpoint requests. For more information, refer to the Amazon Web Services Key Management Service section Using Key Policies in Amazon Web Services KMS

Certain Nitro-based instances include local storage, dependent on the instance type. Local storage volumes are encrypted using a hardware module on the instance. You can't request a KmsKeyId when using an instance type with local storage. If any of the models that you specify in the ProductionVariants parameter use nitro-based instances with local storage, do not specify a value for the KmsKeyId parameter. If you specify a value for KmsKeyId when using any nitro-based instances with local storage, the call to CreateEndpointConfig fails.

For a list of instance types that support local instance storage, see Instance Store Volumes.

For more information about local instance storage encryption, see SSD Instance Store Volumes.

$sel:dataCaptureConfig:CreateEndpointConfig', createEndpointConfig_dataCaptureConfig - Undocumented member.

$sel:tags:CreateEndpointConfig', createEndpointConfig_tags - An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources.

$sel:endpointConfigName:CreateEndpointConfig', createEndpointConfig_endpointConfigName - The name of the endpoint configuration. You specify this name in a CreateEndpoint request.

$sel:productionVariants:CreateEndpointConfig', createEndpointConfig_productionVariants - An list of ProductionVariant objects, one for each model that you want to host at this endpoint.

Request Lenses

createEndpointConfig_asyncInferenceConfig :: Lens' CreateEndpointConfig (Maybe AsyncInferenceConfig) Source #

Specifies configuration for how an endpoint performs asynchronous inference. This is a required field in order for your Endpoint to be invoked using InvokeEndpointAsync .

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

The Amazon Resource Name (ARN) of a Amazon Web Services 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.

The KmsKeyId can be any of the following formats:

  • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab
  • Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
  • Alias name: alias/ExampleAlias
  • Alias name ARN: arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias

The KMS key policy must grant permission to the IAM role that you specify in your CreateEndpoint, UpdateEndpoint requests. For more information, refer to the Amazon Web Services Key Management Service section Using Key Policies in Amazon Web Services KMS

Certain Nitro-based instances include local storage, dependent on the instance type. Local storage volumes are encrypted using a hardware module on the instance. You can't request a KmsKeyId when using an instance type with local storage. If any of the models that you specify in the ProductionVariants parameter use nitro-based instances with local storage, do not specify a value for the KmsKeyId parameter. If you specify a value for KmsKeyId when using any nitro-based instances with local storage, the call to CreateEndpointConfig fails.

For a list of instance types that support local instance storage, see Instance Store Volumes.

For more information about local instance storage encryption, see SSD Instance Store Volumes.

createEndpointConfig_tags :: Lens' CreateEndpointConfig (Maybe [Tag]) Source #

An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources.

createEndpointConfig_endpointConfigName :: Lens' CreateEndpointConfig Text Source #

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

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

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

Destructuring the Response

data CreateEndpointConfigResponse Source #

See: newCreateEndpointConfigResponse smart constructor.

Constructors

CreateEndpointConfigResponse' 

Fields

Instances

Instances details
Eq CreateEndpointConfigResponse Source # 
Instance details

Defined in Amazonka.SageMaker.CreateEndpointConfig

Read CreateEndpointConfigResponse Source # 
Instance details

Defined in Amazonka.SageMaker.CreateEndpointConfig

Show CreateEndpointConfigResponse Source # 
Instance details

Defined in Amazonka.SageMaker.CreateEndpointConfig

Generic CreateEndpointConfigResponse Source # 
Instance details

Defined in Amazonka.SageMaker.CreateEndpointConfig

Associated Types

type Rep CreateEndpointConfigResponse :: Type -> Type #

NFData CreateEndpointConfigResponse Source # 
Instance details

Defined in Amazonka.SageMaker.CreateEndpointConfig

type Rep CreateEndpointConfigResponse Source # 
Instance details

Defined in Amazonka.SageMaker.CreateEndpointConfig

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

newCreateEndpointConfigResponse Source #

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

$sel:endpointConfigArn:CreateEndpointConfigResponse', createEndpointConfigResponse_endpointConfigArn - The Amazon Resource Name (ARN) of the endpoint configuration.

Response Lenses

createEndpointConfigResponse_endpointConfigArn :: Lens' CreateEndpointConfigResponse Text Source #

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