/** * 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 { /** *

Configure encryption on the storage volume attached to the ML compute * instance used to run automated data labeling model training and inference. *

See Also:

AWS * API Reference

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

The Amazon Web Services Key Management Service (Amazon Web Services KMS) key * that Amazon SageMaker uses to encrypt data on the storage volume attached to the * ML compute instance(s) that run the training and inference jobs used for * automated data labeling.

You can only specify a * VolumeKmsKeyId when you create a labeling job with automated data * labeling enabled using the API operation CreateLabelingJob. You * cannot specify an Amazon Web Services KMS key to encrypt the storage volume used * for automated data labeling model training and inference when you create a * labeling job using the console. To learn more, see Output * Data and Storage Volume Encryption.

The VolumeKmsKeyId * can be any of the following formats:

  • KMS Key ID

    * "1234abcd-12ab-34cd-56ef-1234567890ab"

  • Amazon * Resource Name (ARN) of a KMS Key

    * "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" *

*/ 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 data on the storage volume attached to the * ML compute instance(s) that run the training and inference jobs used for * automated data labeling.

You can only specify a * VolumeKmsKeyId when you create a labeling job with automated data * labeling enabled using the API operation CreateLabelingJob. You * cannot specify an Amazon Web Services KMS key to encrypt the storage volume used * for automated data labeling model training and inference when you create a * labeling job using the console. To learn more, see Output * Data and Storage Volume Encryption.

The VolumeKmsKeyId * can be any of the following formats:

  • KMS Key ID

    * "1234abcd-12ab-34cd-56ef-1234567890ab"

  • Amazon * Resource Name (ARN) of a KMS Key

    * "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" *

*/ 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 data on the storage volume attached to the * ML compute instance(s) that run the training and inference jobs used for * automated data labeling.

You can only specify a * VolumeKmsKeyId when you create a labeling job with automated data * labeling enabled using the API operation CreateLabelingJob. You * cannot specify an Amazon Web Services KMS key to encrypt the storage volume used * for automated data labeling model training and inference when you create a * labeling job using the console. To learn more, see Output * Data and Storage Volume Encryption.

The VolumeKmsKeyId * can be any of the following formats:

  • KMS Key ID

    * "1234abcd-12ab-34cd-56ef-1234567890ab"

  • Amazon * Resource Name (ARN) of a KMS Key

    * "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" *

*/ 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 data on the storage volume attached to the * ML compute instance(s) that run the training and inference jobs used for * automated data labeling.

You can only specify a * VolumeKmsKeyId when you create a labeling job with automated data * labeling enabled using the API operation CreateLabelingJob. You * cannot specify an Amazon Web Services KMS key to encrypt the storage volume used * for automated data labeling model training and inference when you create a * labeling job using the console. To learn more, see Output * Data and Storage Volume Encryption.

The VolumeKmsKeyId * can be any of the following formats:

  • KMS Key ID

    * "1234abcd-12ab-34cd-56ef-1234567890ab"

  • Amazon * Resource Name (ARN) of a KMS Key

    * "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" *

*/ 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 data on the storage volume attached to the * ML compute instance(s) that run the training and inference jobs used for * automated data labeling.

You can only specify a * VolumeKmsKeyId when you create a labeling job with automated data * labeling enabled using the API operation CreateLabelingJob. You * cannot specify an Amazon Web Services KMS key to encrypt the storage volume used * for automated data labeling model training and inference when you create a * labeling job using the console. To learn more, see Output * Data and Storage Volume Encryption.

The VolumeKmsKeyId * can be any of the following formats:

  • KMS Key ID

    * "1234abcd-12ab-34cd-56ef-1234567890ab"

  • Amazon * Resource Name (ARN) of a KMS Key

    * "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" *

*/ 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 data on the storage volume attached to the * ML compute instance(s) that run the training and inference jobs used for * automated data labeling.

You can only specify a * VolumeKmsKeyId when you create a labeling job with automated data * labeling enabled using the API operation CreateLabelingJob. You * cannot specify an Amazon Web Services KMS key to encrypt the storage volume used * for automated data labeling model training and inference when you create a * labeling job using the console. To learn more, see Output * Data and Storage Volume Encryption.

The VolumeKmsKeyId * can be any of the following formats:

  • KMS Key ID

    * "1234abcd-12ab-34cd-56ef-1234567890ab"

  • Amazon * Resource Name (ARN) of a KMS Key

    * "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" *

*/ inline LabelingJobResourceConfig& 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 data on the storage volume attached to the * ML compute instance(s) that run the training and inference jobs used for * automated data labeling.

You can only specify a * VolumeKmsKeyId when you create a labeling job with automated data * labeling enabled using the API operation CreateLabelingJob. You * cannot specify an Amazon Web Services KMS key to encrypt the storage volume used * for automated data labeling model training and inference when you create a * labeling job using the console. To learn more, see Output * Data and Storage Volume Encryption.

The VolumeKmsKeyId * can be any of the following formats:

  • KMS Key ID

    * "1234abcd-12ab-34cd-56ef-1234567890ab"

  • Amazon * Resource Name (ARN) of a KMS Key

    * "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" *

*/ inline LabelingJobResourceConfig& 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 data on the storage volume attached to the * ML compute instance(s) that run the training and inference jobs used for * automated data labeling.

You can only specify a * VolumeKmsKeyId when you create a labeling job with automated data * labeling enabled using the API operation CreateLabelingJob. You * cannot specify an Amazon Web Services KMS key to encrypt the storage volume used * for automated data labeling model training and inference when you create a * labeling job using the console. To learn more, see Output * Data and Storage Volume Encryption.

The VolumeKmsKeyId * can be any of the following formats:

  • KMS Key ID

    * "1234abcd-12ab-34cd-56ef-1234567890ab"

  • Amazon * Resource Name (ARN) of a KMS Key

    * "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" *

*/ inline LabelingJobResourceConfig& WithVolumeKmsKeyId(const char* value) { SetVolumeKmsKeyId(value); return *this;} inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; } inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; } inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; } inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); } inline LabelingJobResourceConfig& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;} inline LabelingJobResourceConfig& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;} private: Aws::String m_volumeKmsKeyId; bool m_volumeKmsKeyIdHasBeenSet = false; VpcConfig m_vpcConfig; bool m_vpcConfigHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws