# EncryptionConfigProperty

Encryption settings for the collection.

- Source: Generated code
- Type last changed: v2.234.0 · 8 Jan 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_opensearchserverless as opensearchserverless } from 'aws-cdk-lib';
const encryptionConfigProperty: opensearchserverless.CfnCollection.EncryptionConfigProperty = {
  awsOwnedKey: false,
  kmsKeyArn: 'kmsKeyArn',
};
```

## Properties

- `awsOwnedKey`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Indicates whether to use an AWS owned key for encryption.

- `kmsKeyArn`: string — Key Management Service key used to encrypt the collection.
