# CfnEncryptionConfigurationProps

Properties for defining a `CfnEncryptionConfiguration`.

Used as props by: [CfnEncryptionConfiguration](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iot.CfnEncryptionConfiguration.html)

- Source: Generated at build time
- Type last changed: v2.211.0 · 13 Aug 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iot as iot } from 'aws-cdk-lib';
const cfnEncryptionConfigurationProps: iot.CfnEncryptionConfigurationProps = {
  encryptionType: 'encryptionType',

  // the properties below are optional
  kmsAccessRoleArn: 'kmsAccessRoleArn',
  kmsKeyArn: 'kmsKeyArn',
};
```

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_iot as iot

cfn_encryption_configuration_props = iot.CfnEncryptionConfigurationProps(
    encryption_type="encryptionType",

    # the properties below are optional
    kms_access_role_arn="kmsAccessRoleArn",
    kms_key_arn="kmsKeyArn"
)
```

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

CfnEncryptionConfigurationProps cfnEncryptionConfigurationProps = CfnEncryptionConfigurationProps.builder()
        .encryptionType("encryptionType")

        // the properties below are optional
        .kmsAccessRoleArn("kmsAccessRoleArn")
        .kmsKeyArn("kmsKeyArn")
        .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.IoT;

var cfnEncryptionConfigurationProps = new CfnEncryptionConfigurationProps {
    EncryptionType = "encryptionType",

    // the properties below are optional
    KmsAccessRoleArn = "kmsAccessRoleArn",
    KmsKeyArn = "kmsKeyArn"
};
```

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"

cfnEncryptionConfigurationProps := &CfnEncryptionConfigurationProps{
	EncryptionType: jsii.String("encryptionType"),

	// the properties below are optional
	KmsAccessRoleArn: jsii.String("kmsAccessRoleArn"),
	KmsKeyArn: jsii.String("kmsKeyArn"),
}
```

## Properties

- `encryptionType`: string (required) — The type of the KMS key.

- `kmsAccessRoleArn`: string — The Amazon Resource Name (ARN) of the IAM role assumed by AWS IoT Core to call AWS on behalf of the customer.

- `kmsKeyArn`: string — The ARN of the customer managed KMS key.
