Skip to content
v2.278.0

EncryptionConfigurationProperty Struct ​

Specifies an encryption configuration.

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 encryptionConfigurationProperty: glue.CfnSecurityConfiguration.EncryptionConfigurationProperty = {
  cloudWatchEncryption: {
    cloudWatchEncryptionMode: 'cloudWatchEncryptionMode',
    kmsKeyArn: 'kmsKeyArn',
  },
  jobBookmarksEncryption: {
    jobBookmarksEncryptionMode: 'jobBookmarksEncryptionMode',
    kmsKeyArn: 'kmsKeyArn',
  },
  s3Encryptions: [{
    kmsKeyArn: 'kmsKeyArn',
    s3EncryptionMode: 's3EncryptionMode',
  }],
};
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

encryption_configuration_property = glue.CfnSecurityConfiguration.EncryptionConfigurationProperty(
    cloud_watch_encryption=glue.CfnSecurityConfiguration.CloudWatchEncryptionProperty(
        cloud_watch_encryption_mode="cloudWatchEncryptionMode",
        kms_key_arn="kmsKeyArn"
    ),
    job_bookmarks_encryption=glue.CfnSecurityConfiguration.JobBookmarksEncryptionProperty(
        job_bookmarks_encryption_mode="jobBookmarksEncryptionMode",
        kms_key_arn="kmsKeyArn"
    ),
    s3_encryptions=[glue.CfnSecurityConfiguration.S3EncryptionProperty(
        kms_key_arn="kmsKeyArn",
        s3_encryption_mode="s3EncryptionMode"
    )]
)
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.*;

EncryptionConfigurationProperty encryptionConfigurationProperty = EncryptionConfigurationProperty.builder()
        .cloudWatchEncryption(CloudWatchEncryptionProperty.builder()
                .cloudWatchEncryptionMode("cloudWatchEncryptionMode")
                .kmsKeyArn("kmsKeyArn")
                .build())
        .jobBookmarksEncryption(JobBookmarksEncryptionProperty.builder()
                .jobBookmarksEncryptionMode("jobBookmarksEncryptionMode")
                .kmsKeyArn("kmsKeyArn")
                .build())
        .s3Encryptions(List.of(S3EncryptionProperty.builder()
                .kmsKeyArn("kmsKeyArn")
                .s3EncryptionMode("s3EncryptionMode")
                .build()))
        .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 encryptionConfigurationProperty = new EncryptionConfigurationProperty {
    CloudWatchEncryption = new CloudWatchEncryptionProperty {
        CloudWatchEncryptionMode = "cloudWatchEncryptionMode",
        KmsKeyArn = "kmsKeyArn"
    },
    JobBookmarksEncryption = new JobBookmarksEncryptionProperty {
        JobBookmarksEncryptionMode = "jobBookmarksEncryptionMode",
        KmsKeyArn = "kmsKeyArn"
    },
    S3Encryptions = new [] { new S3EncryptionProperty {
        KmsKeyArn = "kmsKeyArn",
        S3EncryptionMode = "s3EncryptionMode"
    } }
};
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"

encryptionConfigurationProperty := &EncryptionConfigurationProperty{
	CloudWatchEncryption: &CloudWatchEncryptionProperty{
		CloudWatchEncryptionMode: jsii.String("cloudWatchEncryptionMode"),
		KmsKeyArn: jsii.String("kmsKeyArn"),
	},
	JobBookmarksEncryption: &JobBookmarksEncryptionProperty{
		JobBookmarksEncryptionMode: jsii.String("jobBookmarksEncryptionMode"),
		KmsKeyArn: jsii.String("kmsKeyArn"),
	},
	S3Encryptions: []interface{}{
		&S3EncryptionProperty{
			KmsKeyArn: jsii.String("kmsKeyArn"),
			S3EncryptionMode: jsii.String("s3EncryptionMode"),
		},
	},
}

Properties ​

cloudWatchEncryptionoptionalIResolvable | CfnSecurityConfiguration.CloudWatchEncryptionPropertycloud_watch_encryptionoptionaltyping.Union[IResolvable, CloudWatchEncryptionProperty]cloudWatchEncryptionoptionalIResolvableCloudWatchEncryptionoptionalIResolvableCloudWatchEncryptionoptionalinterface{} #
The encryption configuration for Amazon CloudWatch.
jobBookmarksEncryptionoptionalIResolvable | CfnSecurityConfiguration.JobBookmarksEncryptionPropertyjob_bookmarks_encryptionoptionaltyping.Union[IResolvable, JobBookmarksEncryptionProperty]jobBookmarksEncryptionoptionalIResolvableJobBookmarksEncryptionoptionalIResolvableJobBookmarksEncryptionoptionalinterface{} #
The encryption configuration for job bookmarks.
s3EncryptionsoptionalIResolvable | IResolvable | CfnSecurityConfiguration.S3EncryptionProperty[]s3_encryptionsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, S3EncryptionProperty]]]s3EncryptionsoptionalIResolvableS3EncryptionsoptionalIResolvableS3Encryptionsoptionalinterface{} #
The encyption configuration for Amazon Simple Storage Service (Amazon S3) data.