/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace SageMaker { namespace Model { /** */ class AWS_SAGEMAKER_API CreateEndpointConfigRequest : public SageMakerRequest { public: CreateEndpointConfigRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateEndpointConfig"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

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

*/ inline const Aws::String& GetEndpointConfigName() const{ return m_endpointConfigName; } /** *

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

*/ inline bool EndpointConfigNameHasBeenSet() const { return m_endpointConfigNameHasBeenSet; } /** *

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

*/ inline void SetEndpointConfigName(const Aws::String& value) { m_endpointConfigNameHasBeenSet = true; m_endpointConfigName = value; } /** *

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

*/ inline void SetEndpointConfigName(Aws::String&& value) { m_endpointConfigNameHasBeenSet = true; m_endpointConfigName = std::move(value); } /** *

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

*/ inline void SetEndpointConfigName(const char* value) { m_endpointConfigNameHasBeenSet = true; m_endpointConfigName.assign(value); } /** *

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

*/ inline CreateEndpointConfigRequest& WithEndpointConfigName(const Aws::String& value) { SetEndpointConfigName(value); return *this;} /** *

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

*/ inline CreateEndpointConfigRequest& WithEndpointConfigName(Aws::String&& value) { SetEndpointConfigName(std::move(value)); return *this;} /** *

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

*/ inline CreateEndpointConfigRequest& WithEndpointConfigName(const char* value) { SetEndpointConfigName(value); return *this;} /** *

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

*/ inline const Aws::Vector& GetProductionVariants() const{ return m_productionVariants; } /** *

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

*/ inline bool ProductionVariantsHasBeenSet() const { return m_productionVariantsHasBeenSet; } /** *

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

*/ inline void SetProductionVariants(const Aws::Vector& value) { m_productionVariantsHasBeenSet = true; m_productionVariants = value; } /** *

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

*/ inline void SetProductionVariants(Aws::Vector&& value) { m_productionVariantsHasBeenSet = true; m_productionVariants = std::move(value); } /** *

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

*/ inline CreateEndpointConfigRequest& WithProductionVariants(const Aws::Vector& value) { SetProductionVariants(value); return *this;} /** *

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

*/ inline CreateEndpointConfigRequest& WithProductionVariants(Aws::Vector&& value) { SetProductionVariants(std::move(value)); return *this;} /** *

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

*/ inline CreateEndpointConfigRequest& AddProductionVariants(const ProductionVariant& value) { m_productionVariantsHasBeenSet = true; m_productionVariants.push_back(value); return *this; } /** *

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

*/ inline CreateEndpointConfigRequest& AddProductionVariants(ProductionVariant&& value) { m_productionVariantsHasBeenSet = true; m_productionVariants.push_back(std::move(value)); return *this; } inline const DataCaptureConfig& GetDataCaptureConfig() const{ return m_dataCaptureConfig; } inline bool DataCaptureConfigHasBeenSet() const { return m_dataCaptureConfigHasBeenSet; } inline void SetDataCaptureConfig(const DataCaptureConfig& value) { m_dataCaptureConfigHasBeenSet = true; m_dataCaptureConfig = value; } inline void SetDataCaptureConfig(DataCaptureConfig&& value) { m_dataCaptureConfigHasBeenSet = true; m_dataCaptureConfig = std::move(value); } inline CreateEndpointConfigRequest& WithDataCaptureConfig(const DataCaptureConfig& value) { SetDataCaptureConfig(value); return *this;} inline CreateEndpointConfigRequest& WithDataCaptureConfig(DataCaptureConfig&& value) { SetDataCaptureConfig(std::move(value)); return *this;} /** *

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

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

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

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

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

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

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

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

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

*/ inline CreateEndpointConfigRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

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

*/ inline CreateEndpointConfigRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

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

*/ inline CreateEndpointConfigRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

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

*/ inline CreateEndpointConfigRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

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.

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 AWS Key Management Service * section * Using Key Policies in AWS 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.

*/ inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; } /** *

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.

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 AWS Key Management Service * section * Using Key Policies in AWS 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.

*/ inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; } /** *

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.

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 AWS Key Management Service * section * Using Key Policies in AWS 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.

*/ inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; } /** *

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.

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 AWS Key Management Service * section * Using Key Policies in AWS 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.

*/ inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); } /** *

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.

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 AWS Key Management Service * section * Using Key Policies in AWS 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.

*/ inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); } /** *

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.

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 AWS Key Management Service * section * Using Key Policies in AWS 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.

*/ inline CreateEndpointConfigRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;} /** *

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.

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 AWS Key Management Service * section * Using Key Policies in AWS 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.

*/ inline CreateEndpointConfigRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;} /** *

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.

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 AWS Key Management Service * section * Using Key Policies in AWS 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.

*/ inline CreateEndpointConfigRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;} private: Aws::String m_endpointConfigName; bool m_endpointConfigNameHasBeenSet; Aws::Vector m_productionVariants; bool m_productionVariantsHasBeenSet; DataCaptureConfig m_dataCaptureConfig; bool m_dataCaptureConfigHasBeenSet; Aws::Vector m_tags; bool m_tagsHasBeenSet; Aws::String m_kmsKeyId; bool m_kmsKeyIdHasBeenSet; }; } // namespace Model } // namespace SageMaker } // namespace Aws