Skip to content
v2.277.0

TransformEncryptionProperty Struct ​

The encryption-at-rest settings of the transform that apply to accessing user data.

Machine learning transforms can access user data encrypted in Amazon S3 using KMS.

Additionally, imported labels and trained transforms can now be encrypted using a customer provided KMS key.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_glue as glue } from 'aws-cdk-lib';
const transformEncryptionProperty: glue.CfnMLTransform.TransformEncryptionProperty = {
  mlUserDataEncryption: {
    mlUserDataEncryptionMode: 'mlUserDataEncryptionMode',

    // the properties below are optional
    kmsKeyId: 'kmsKeyId',
  },
  taskRunSecurityConfigurationName: 'taskRunSecurityConfigurationName',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_glue as glue

transform_encryption_property = glue.CfnMLTransform.TransformEncryptionProperty(
    ml_user_data_encryption=glue.CfnMLTransform.MLUserDataEncryptionProperty(
        ml_user_data_encryption_mode="mlUserDataEncryptionMode",

        # the properties below are optional
        kms_key_id="kmsKeyId"
    ),
    task_run_security_configuration_name="taskRunSecurityConfigurationName"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.glue.*;

TransformEncryptionProperty transformEncryptionProperty = TransformEncryptionProperty.builder()
        .mlUserDataEncryption(MLUserDataEncryptionProperty.builder()
                .mlUserDataEncryptionMode("mlUserDataEncryptionMode")

                // the properties below are optional
                .kmsKeyId("kmsKeyId")
                .build())
        .taskRunSecurityConfigurationName("taskRunSecurityConfigurationName")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Glue;

var transformEncryptionProperty = new TransformEncryptionProperty {
    MlUserDataEncryption = new MLUserDataEncryptionProperty {
        MlUserDataEncryptionMode = "mlUserDataEncryptionMode",

        // the properties below are optional
        KmsKeyId = "kmsKeyId"
    },
    TaskRunSecurityConfigurationName = "taskRunSecurityConfigurationName"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

transformEncryptionProperty := &TransformEncryptionProperty{
	MlUserDataEncryption: &MLUserDataEncryptionProperty{
		MlUserDataEncryptionMode: jsii.String("mlUserDataEncryptionMode"),

		// the properties below are optional
		KmsKeyId: jsii.String("kmsKeyId"),
	},
	TaskRunSecurityConfigurationName: jsii.String("taskRunSecurityConfigurationName"),
}

Properties ​

mlUserDataEncryptionoptionalIResolvable | CfnMLTransform.MLUserDataEncryptionPropertyml_user_data_encryptionoptionaltyping.Union[IResolvable, MLUserDataEncryptionProperty]mlUserDataEncryptionoptionalIResolvableMlUserDataEncryptionoptionalIResolvableMlUserDataEncryptionoptionalinterface{}#
The encryption-at-rest settings of the transform that apply to accessing user data.
taskRunSecurityConfigurationNameoptionalstringtask_run_security_configuration_nameoptionalstrtaskRunSecurityConfigurationNameoptionalStringTaskRunSecurityConfigurationNameoptionalstringTaskRunSecurityConfigurationNameoptional*string#
The name of the security configuration.