# ConfigurationDetailsProperty

The encryption configuration details that include the status information of the AWS Key Management Service ( AWS  ) key and the AWS  access role.

- 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 configurationDetailsProperty: iot.CfnEncryptionConfiguration.ConfigurationDetailsProperty = {
  configurationStatus: 'configurationStatus',
  errorCode: 'errorCode',
  errorMessage: 'errorMessage',
};
```

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

configuration_details_property = iot.CfnEncryptionConfiguration.ConfigurationDetailsProperty(
    configuration_status="configurationStatus",
    error_code="errorCode",
    error_message="errorMessage"
)
```

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

ConfigurationDetailsProperty configurationDetailsProperty = ConfigurationDetailsProperty.builder()
        .configurationStatus("configurationStatus")
        .errorCode("errorCode")
        .errorMessage("errorMessage")
        .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 configurationDetailsProperty = new ConfigurationDetailsProperty {
    ConfigurationStatus = "configurationStatus",
    ErrorCode = "errorCode",
    ErrorMessage = "errorMessage"
};
```

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"

configurationDetailsProperty := &ConfigurationDetailsProperty{
	ConfigurationStatus: jsii.String("configurationStatus"),
	ErrorCode: jsii.String("errorCode"),
	ErrorMessage: jsii.String("errorMessage"),
}
```

## Properties

- `configurationStatus`: string — The health status of KMS key and AWS access role.

  If either KMS key or AWS  access role is `UNHEALTHY` , the return value will be `UNHEALTHY` . To use a customer managed KMS key, the value of `configurationStatus` must be `HEALTHY` .

- `errorCode`: string — The error code that indicates either the KMS key or the AWS access role is `UNHEALTHY` .

  Valid values: `KMS_KEY_VALIDATION_ERROR` and `ROLE_VALIDATION_ERROR` .

- `errorMessage`: string — The detailed error message that corresponds to the `errorCode` .
