/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SageMaker { namespace Model { /** *

Describes the resources, including ML instance types and ML instance count, * to use for transform job.

See Also:

AWS * API Reference

*/ class TransformResources { public: AWS_SAGEMAKER_API TransformResources(); AWS_SAGEMAKER_API TransformResources(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API TransformResources& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ML compute instance type for the transform job. If you are using built-in * algorithms to transform moderately sized datasets, we recommend using * ml.m4.xlarge or ml.m5.largeinstance types.

*/ inline const TransformInstanceType& GetInstanceType() const{ return m_instanceType; } /** *

The ML compute instance type for the transform job. If you are using built-in * algorithms to transform moderately sized datasets, we recommend using * ml.m4.xlarge or ml.m5.largeinstance types.

*/ inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; } /** *

The ML compute instance type for the transform job. If you are using built-in * algorithms to transform moderately sized datasets, we recommend using * ml.m4.xlarge or ml.m5.largeinstance types.

*/ inline void SetInstanceType(const TransformInstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; } /** *

The ML compute instance type for the transform job. If you are using built-in * algorithms to transform moderately sized datasets, we recommend using * ml.m4.xlarge or ml.m5.largeinstance types.

*/ inline void SetInstanceType(TransformInstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); } /** *

The ML compute instance type for the transform job. If you are using built-in * algorithms to transform moderately sized datasets, we recommend using * ml.m4.xlarge or ml.m5.largeinstance types.

*/ inline TransformResources& WithInstanceType(const TransformInstanceType& value) { SetInstanceType(value); return *this;} /** *

The ML compute instance type for the transform job. If you are using built-in * algorithms to transform moderately sized datasets, we recommend using * ml.m4.xlarge or ml.m5.largeinstance types.

*/ inline TransformResources& WithInstanceType(TransformInstanceType&& value) { SetInstanceType(std::move(value)); return *this;} /** *

The number of ML compute instances to use in the transform job. The default * value is 1, and the maximum is 100. For distributed * transform jobs, specify a value greater than 1.

*/ inline int GetInstanceCount() const{ return m_instanceCount; } /** *

The number of ML compute instances to use in the transform job. The default * value is 1, and the maximum is 100. For distributed * transform jobs, specify a value greater than 1.

*/ inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; } /** *

The number of ML compute instances to use in the transform job. The default * value is 1, and the maximum is 100. For distributed * transform jobs, specify a value greater than 1.

*/ inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; } /** *

The number of ML compute instances to use in the transform job. The default * value is 1, and the maximum is 100. For distributed * transform jobs, specify a value greater than 1.

*/ inline TransformResources& WithInstanceCount(int value) { SetInstanceCount(value); return *this;} /** *

The Amazon Web Services Key Management Service (Amazon Web Services KMS) key * that Amazon SageMaker uses to encrypt model data on the storage volume attached * to the ML compute instance(s) that run the batch transform job.

*

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 VolumeKmsKeyId when using an * instance type with local storage.

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.

The VolumeKmsKeyId 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

  • *
*/ inline const Aws::String& GetVolumeKmsKeyId() const{ return m_volumeKmsKeyId; } /** *

The Amazon Web Services Key Management Service (Amazon Web Services KMS) key * that Amazon SageMaker uses to encrypt model data on the storage volume attached * to the ML compute instance(s) that run the batch transform job.

*

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 VolumeKmsKeyId when using an * instance type with local storage.

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.

The VolumeKmsKeyId 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

  • *
*/ inline bool VolumeKmsKeyIdHasBeenSet() const { return m_volumeKmsKeyIdHasBeenSet; } /** *

The Amazon Web Services Key Management Service (Amazon Web Services KMS) key * that Amazon SageMaker uses to encrypt model data on the storage volume attached * to the ML compute instance(s) that run the batch transform job.

*

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 VolumeKmsKeyId when using an * instance type with local storage.

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.

The VolumeKmsKeyId 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

  • *
*/ inline void SetVolumeKmsKeyId(const Aws::String& value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId = value; } /** *

The Amazon Web Services Key Management Service (Amazon Web Services KMS) key * that Amazon SageMaker uses to encrypt model data on the storage volume attached * to the ML compute instance(s) that run the batch transform job.

*

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 VolumeKmsKeyId when using an * instance type with local storage.

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.

The VolumeKmsKeyId 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

  • *
*/ inline void SetVolumeKmsKeyId(Aws::String&& value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId = std::move(value); } /** *

The Amazon Web Services Key Management Service (Amazon Web Services KMS) key * that Amazon SageMaker uses to encrypt model data on the storage volume attached * to the ML compute instance(s) that run the batch transform job.

*

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 VolumeKmsKeyId when using an * instance type with local storage.

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.

The VolumeKmsKeyId 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

  • *
*/ inline void SetVolumeKmsKeyId(const char* value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId.assign(value); } /** *

The Amazon Web Services Key Management Service (Amazon Web Services KMS) key * that Amazon SageMaker uses to encrypt model data on the storage volume attached * to the ML compute instance(s) that run the batch transform job.

*

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 VolumeKmsKeyId when using an * instance type with local storage.

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.

The VolumeKmsKeyId 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

  • *
*/ inline TransformResources& WithVolumeKmsKeyId(const Aws::String& value) { SetVolumeKmsKeyId(value); return *this;} /** *

The Amazon Web Services Key Management Service (Amazon Web Services KMS) key * that Amazon SageMaker uses to encrypt model data on the storage volume attached * to the ML compute instance(s) that run the batch transform job.

*

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 VolumeKmsKeyId when using an * instance type with local storage.

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.

The VolumeKmsKeyId 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

  • *
*/ inline TransformResources& WithVolumeKmsKeyId(Aws::String&& value) { SetVolumeKmsKeyId(std::move(value)); return *this;} /** *

The Amazon Web Services Key Management Service (Amazon Web Services KMS) key * that Amazon SageMaker uses to encrypt model data on the storage volume attached * to the ML compute instance(s) that run the batch transform job.

*

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 VolumeKmsKeyId when using an * instance type with local storage.

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.

The VolumeKmsKeyId 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

  • *
*/ inline TransformResources& WithVolumeKmsKeyId(const char* value) { SetVolumeKmsKeyId(value); return *this;} private: TransformInstanceType m_instanceType; bool m_instanceTypeHasBeenSet = false; int m_instanceCount; bool m_instanceCountHasBeenSet = false; Aws::String m_volumeKmsKeyId; bool m_volumeKmsKeyIdHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws