# EncryptionInfoProperty

Includes encryption-related information, such as the Amazon KMS key used for encrypting data at rest and whether you want MSK to encrypt your data in transit.

- 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_msk as msk } from 'aws-cdk-lib';
const encryptionInfoProperty: msk.CfnCluster.EncryptionInfoProperty = {
  encryptionAtRest: {
    dataVolumeKmsKeyId: 'dataVolumeKmsKeyId',
  },
  encryptionInTransit: {
    clientBroker: 'clientBroker',
    inCluster: false,
  },
};
```

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_msk as msk

encryption_info_property = msk.CfnCluster.EncryptionInfoProperty(
    encryption_at_rest=msk.CfnCluster.EncryptionAtRestProperty(
        data_volume_kms_key_id="dataVolumeKmsKeyId"
    ),
    encryption_in_transit=msk.CfnCluster.EncryptionInTransitProperty(
        client_broker="clientBroker",
        in_cluster=False
    )
)
```

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

EncryptionInfoProperty encryptionInfoProperty = EncryptionInfoProperty.builder()
        .encryptionAtRest(EncryptionAtRestProperty.builder()
                .dataVolumeKmsKeyId("dataVolumeKmsKeyId")
                .build())
        .encryptionInTransit(EncryptionInTransitProperty.builder()
                .clientBroker("clientBroker")
                .inCluster(false)
                .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.MSK;

var encryptionInfoProperty = new EncryptionInfoProperty {
    EncryptionAtRest = new EncryptionAtRestProperty {
        DataVolumeKmsKeyId = "dataVolumeKmsKeyId"
    },
    EncryptionInTransit = new EncryptionInTransitProperty {
        ClientBroker = "clientBroker",
        InCluster = false
    }
};
```

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"

encryptionInfoProperty := &EncryptionInfoProperty{
	EncryptionAtRest: &EncryptionAtRestProperty{
		DataVolumeKmsKeyId: jsii.String("dataVolumeKmsKeyId"),
	},
	EncryptionInTransit: &EncryptionInTransitProperty{
		ClientBroker: jsii.String("clientBroker"),
		InCluster: jsii.Boolean(false),
	},
}
```

## Properties

- `encryptionAtRest`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCluster.EncryptionAtRestProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_msk.CfnCluster.EncryptionAtRestProperty.html) — The data-volume encryption details.

- `encryptionInTransit`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCluster.EncryptionInTransitProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_msk.CfnCluster.EncryptionInTransitProperty.html) — The details for encryption in transit.
