# S3EncryptionProperty

Specifies how Amazon Simple Storage Service (Amazon S3) data should be encrypted.

- 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 s3EncryptionProperty: glue.CfnSecurityConfiguration.S3EncryptionProperty = {
  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

s3_encryption_property = 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.*;

S3EncryptionProperty s3EncryptionProperty = S3EncryptionProperty.builder()
        .kmsKeyArn("kmsKeyArn")
        .s3EncryptionMode("s3EncryptionMode")
        .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 s3EncryptionProperty = 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"

s3EncryptionProperty := &S3EncryptionProperty{
	KmsKeyArn: jsii.String("kmsKeyArn"),
	S3EncryptionMode: jsii.String("s3EncryptionMode"),
}
```

## Properties

- `kmsKeyArn`: string — The Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.

- `s3EncryptionMode`: string — The encryption mode to use for Amazon S3 data.
