# EncryptionProperty

This resource contains the type of server-side encryption used to encrypt an Amazon S3 Storage Lens metrics export.

For valid values, see the [StorageLensDataExportEncryption](https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_StorageLensDataExportEncryption.html) in the *Amazon S3 API Reference* .

- 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_s3 as s3 } from 'aws-cdk-lib';

declare const sses3: any;
const encryptionProperty: s3.CfnStorageLens.EncryptionProperty = {
  ssekms: {
    keyId: 'keyId',
  },
  sses3: sses3,
};
```

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_s3 as s3

# sses3: Any

encryption_property = s3.CfnStorageLens.EncryptionProperty(
    ssekms=s3.CfnStorageLens.SSEKMSProperty(
        key_id="keyId"
    ),
    sses3=sses3
)
```

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.s3.*;

Object sses3;

EncryptionProperty encryptionProperty = EncryptionProperty.builder()
        .ssekms(SSEKMSProperty.builder()
                .keyId("keyId")
                .build())
        .sses3(sses3)
        .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.S3;

var sses3;

var encryptionProperty = new EncryptionProperty {
    Ssekms = new SSEKMSProperty {
        KeyId = "keyId"
    },
    Sses3 = sses3
};
```

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"

var sses3 interface{}

encryptionProperty := &EncryptionProperty{
	Ssekms: &SSEKMSProperty{
		KeyId: jsii.String("keyId"),
	},
	Sses3: sses3,
}
```

## Properties

- `ssekms`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnStorageLens.SSEKMSProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.CfnStorageLens.SSEKMSProperty.html) — Specifies the use of AWS Key Management Service keys (SSE-KMS) to encrypt the S3 Storage Lens metrics export file.

- `sses3`: any — Specifies the use of an Amazon S3-managed key (SSE-S3) to encrypt the S3 Storage Lens metrics export file.
