# EncryptionConfigProperty

The 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_connect as connect } from 'aws-cdk-lib';
const encryptionConfigProperty: connect.CfnInstanceStorageConfig.EncryptionConfigProperty = {
  encryptionType: 'encryptionType',
  keyId: 'keyId',
};
```

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_connect as connect

encryption_config_property = connect.CfnInstanceStorageConfig.EncryptionConfigProperty(
    encryption_type="encryptionType",
    key_id="keyId"
)
```

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

EncryptionConfigProperty encryptionConfigProperty = EncryptionConfigProperty.builder()
        .encryptionType("encryptionType")
        .keyId("keyId")
        .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.Connect;

var encryptionConfigProperty = new EncryptionConfigProperty {
    EncryptionType = "encryptionType",
    KeyId = "keyId"
};
```

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"

encryptionConfigProperty := &EncryptionConfigProperty{
	EncryptionType: jsii.String("encryptionType"),
	KeyId: jsii.String("keyId"),
}
```

## Properties

- `encryptionType`: string (required) — The type of encryption.

- `keyId`: string (required) — The full ARN of the encryption key.

  > Be sure to provide the full ARN of the encryption key, not just the ID.
  >
  > Amazon Connect supports only KMS keys with the default key spec of [`SYMMETRIC_DEFAULT`](https://docs.aws.amazon.com/kms/latest/developerguide/asymmetric-key-specs.html#key-spec-symmetric-default) .
