# DeviceCertAgeAuditCheckConfigurationProperty

Struct · External

Configuration for the device certificate age audit check.

- Source: Generated at build time
- Type last changed: v2.183.0 · 12 Mar 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 deviceCertAgeAuditCheckConfigurationProperty: iot.CfnAccountAuditConfiguration.DeviceCertAgeAuditCheckConfigurationProperty = {
  configuration: {
    certAgeThresholdInDays: 'certAgeThresholdInDays',
  },
  enabled: 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_iot as iot

device_cert_age_audit_check_configuration_property = iot.CfnAccountAuditConfiguration.DeviceCertAgeAuditCheckConfigurationProperty(
    configuration=iot.CfnAccountAuditConfiguration.CertAgeCheckCustomConfigurationProperty(
        cert_age_threshold_in_days="certAgeThresholdInDays"
    ),
    enabled=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.iot.*;

DeviceCertAgeAuditCheckConfigurationProperty deviceCertAgeAuditCheckConfigurationProperty = DeviceCertAgeAuditCheckConfigurationProperty.builder()
        .configuration(CertAgeCheckCustomConfigurationProperty.builder()
                .certAgeThresholdInDays("certAgeThresholdInDays")
                .build())
        .enabled(false)
        .build();
```

C#:

```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 deviceCertAgeAuditCheckConfigurationProperty = new DeviceCertAgeAuditCheckConfigurationProperty {
    Configuration = new CertAgeCheckCustomConfigurationProperty {
        CertAgeThresholdInDays = "certAgeThresholdInDays"
    },
    Enabled = false
};
```

Go:

```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"

deviceCertAgeAuditCheckConfigurationProperty := &DeviceCertAgeAuditCheckConfigurationProperty{
	Configuration: &CertAgeCheckCustomConfigurationProperty{
		CertAgeThresholdInDays: jsii.String("certAgeThresholdInDays"),
	},
	Enabled: jsii.Boolean(false),
}
```

## Properties

- `configuration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAccountAuditConfiguration.CertAgeCheckCustomConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iot.CfnAccountAuditConfiguration.CertAgeCheckCustomConfigurationProperty.html) — Configuration settings for the device certificate age check, including the threshold in days for certificate age.

  This configuration is of type `CertAgeCheckCustomConfiguration` .

- `enabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — True if this audit check is enabled for this account.
