# EncryptionConfigurationProperty

Specifies an encryption configuration.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
    } }
};
```

Golang:

```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

- `cloudWatchEncryption`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnSecurityConfiguration.CloudWatchEncryptionProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_glue.CfnSecurityConfiguration.CloudWatchEncryptionProperty.html) — The encryption configuration for Amazon CloudWatch.

- `jobBookmarksEncryption`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnSecurityConfiguration.JobBookmarksEncryptionProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_glue.CfnSecurityConfiguration.JobBookmarksEncryptionProperty.html) — The encryption configuration for job bookmarks.

- `s3Encryptions`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnSecurityConfiguration.S3EncryptionProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_glue.CfnSecurityConfiguration.S3EncryptionProperty.html)[] — The encyption configuration for Amazon Simple Storage Service (Amazon S3) data.
