# CfnAccountAuditConfigurationProps

Properties for defining a `CfnAccountAuditConfiguration`.

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

- Source: Generated at build time

## 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 cfnAccountAuditConfigurationProps: iot.CfnAccountAuditConfigurationProps = {
  accountId: 'accountId',
  auditCheckConfigurations: {
    authenticatedCognitoRoleOverlyPermissiveCheck: {
      enabled: false,
    },
    caCertificateExpiringCheck: {
      enabled: false,
    },
    caCertificateKeyQualityCheck: {
      enabled: false,
    },
    conflictingClientIdsCheck: {
      enabled: false,
    },
    deviceCertificateAgeCheck: {
      configuration: {
        certAgeThresholdInDays: 'certAgeThresholdInDays',
      },
      enabled: false,
    },
    deviceCertificateExpiringCheck: {
      enabled: false,
    },
    deviceCertificateKeyQualityCheck: {
      enabled: false,
    },
    deviceCertificateSharedCheck: {
      enabled: false,
    },
    intermediateCaRevokedForActiveDeviceCertificatesCheck: {
      enabled: false,
    },
    iotPolicyOverlyPermissiveCheck: {
      enabled: false,
    },
    ioTPolicyPotentialMisConfigurationCheck: {
      enabled: false,
    },
    iotRoleAliasAllowsAccessToUnusedServicesCheck: {
      enabled: false,
    },
    iotRoleAliasOverlyPermissiveCheck: {
      enabled: false,
    },
    loggingDisabledCheck: {
      enabled: false,
    },
    revokedCaCertificateStillActiveCheck: {
      enabled: false,
    },
    revokedDeviceCertificateStillActiveCheck: {
      enabled: false,
    },
    unauthenticatedCognitoRoleOverlyPermissiveCheck: {
      enabled: false,
    },
  },
  roleArn: 'roleArn',

  // the properties below are optional
  auditNotificationTargetConfigurations: {
    sns: {
      enabled: false,
      roleArn: 'roleArn',
      targetArn: 'targetArn',
    },
  },
};
```

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_account_audit_configuration_props = iot.CfnAccountAuditConfigurationProps(
    account_id="accountId",
    audit_check_configurations=iot.CfnAccountAuditConfiguration.AuditCheckConfigurationsProperty(
        authenticated_cognito_role_overly_permissive_check=iot.CfnAccountAuditConfiguration.AuditCheckConfigurationProperty(
            enabled=False
        ),
        ca_certificate_expiring_check=iot.CfnAccountAuditConfiguration.AuditCheckConfigurationProperty(
            enabled=False
        ),
        ca_certificate_key_quality_check=iot.CfnAccountAuditConfiguration.AuditCheckConfigurationProperty(
            enabled=False
        ),
        conflicting_client_ids_check=iot.CfnAccountAuditConfiguration.AuditCheckConfigurationProperty(
            enabled=False
        ),
        device_certificate_age_check=iot.CfnAccountAuditConfiguration.DeviceCertAgeAuditCheckConfigurationProperty(
            configuration=iot.CfnAccountAuditConfiguration.CertAgeCheckCustomConfigurationProperty(
                cert_age_threshold_in_days="certAgeThresholdInDays"
            ),
            enabled=False
        ),
        device_certificate_expiring_check=iot.CfnAccountAuditConfiguration.AuditCheckConfigurationProperty(
            enabled=False
        ),
        device_certificate_key_quality_check=iot.CfnAccountAuditConfiguration.AuditCheckConfigurationProperty(
            enabled=False
        ),
        device_certificate_shared_check=iot.CfnAccountAuditConfiguration.AuditCheckConfigurationProperty(
            enabled=False
        ),
        intermediate_ca_revoked_for_active_device_certificates_check=iot.CfnAccountAuditConfiguration.AuditCheckConfigurationProperty(
            enabled=False
        ),
        iot_policy_overly_permissive_check=iot.CfnAccountAuditConfiguration.AuditCheckConfigurationProperty(
            enabled=False
        ),
        io_t_policy_potential_mis_configuration_check=iot.CfnAccountAuditConfiguration.AuditCheckConfigurationProperty(
            enabled=False
        ),
        iot_role_alias_allows_access_to_unused_services_check=iot.CfnAccountAuditConfiguration.AuditCheckConfigurationProperty(
            enabled=False
        ),
        iot_role_alias_overly_permissive_check=iot.CfnAccountAuditConfiguration.AuditCheckConfigurationProperty(
            enabled=False
        ),
        logging_disabled_check=iot.CfnAccountAuditConfiguration.AuditCheckConfigurationProperty(
            enabled=False
        ),
        revoked_ca_certificate_still_active_check=iot.CfnAccountAuditConfiguration.AuditCheckConfigurationProperty(
            enabled=False
        ),
        revoked_device_certificate_still_active_check=iot.CfnAccountAuditConfiguration.AuditCheckConfigurationProperty(
            enabled=False
        ),
        unauthenticated_cognito_role_overly_permissive_check=iot.CfnAccountAuditConfiguration.AuditCheckConfigurationProperty(
            enabled=False
        )
    ),
    role_arn="roleArn",

    # the properties below are optional
    audit_notification_target_configurations=iot.CfnAccountAuditConfiguration.AuditNotificationTargetConfigurationsProperty(
        sns=iot.CfnAccountAuditConfiguration.AuditNotificationTargetProperty(
            enabled=False,
            role_arn="roleArn",
            target_arn="targetArn"
        )
    )
)
```

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

CfnAccountAuditConfigurationProps cfnAccountAuditConfigurationProps = CfnAccountAuditConfigurationProps.builder()
        .accountId("accountId")
        .auditCheckConfigurations(AuditCheckConfigurationsProperty.builder()
                .authenticatedCognitoRoleOverlyPermissiveCheck(AuditCheckConfigurationProperty.builder()
                        .enabled(false)
                        .build())
                .caCertificateExpiringCheck(AuditCheckConfigurationProperty.builder()
                        .enabled(false)
                        .build())
                .caCertificateKeyQualityCheck(AuditCheckConfigurationProperty.builder()
                        .enabled(false)
                        .build())
                .conflictingClientIdsCheck(AuditCheckConfigurationProperty.builder()
                        .enabled(false)
                        .build())
                .deviceCertificateAgeCheck(DeviceCertAgeAuditCheckConfigurationProperty.builder()
                        .configuration(CertAgeCheckCustomConfigurationProperty.builder()
                                .certAgeThresholdInDays("certAgeThresholdInDays")
                                .build())
                        .enabled(false)
                        .build())
                .deviceCertificateExpiringCheck(AuditCheckConfigurationProperty.builder()
                        .enabled(false)
                        .build())
                .deviceCertificateKeyQualityCheck(AuditCheckConfigurationProperty.builder()
                        .enabled(false)
                        .build())
                .deviceCertificateSharedCheck(AuditCheckConfigurationProperty.builder()
                        .enabled(false)
                        .build())
                .intermediateCaRevokedForActiveDeviceCertificatesCheck(AuditCheckConfigurationProperty.builder()
                        .enabled(false)
                        .build())
                .iotPolicyOverlyPermissiveCheck(AuditCheckConfigurationProperty.builder()
                        .enabled(false)
                        .build())
                .ioTPolicyPotentialMisConfigurationCheck(AuditCheckConfigurationProperty.builder()
                        .enabled(false)
                        .build())
                .iotRoleAliasAllowsAccessToUnusedServicesCheck(AuditCheckConfigurationProperty.builder()
                        .enabled(false)
                        .build())
                .iotRoleAliasOverlyPermissiveCheck(AuditCheckConfigurationProperty.builder()
                        .enabled(false)
                        .build())
                .loggingDisabledCheck(AuditCheckConfigurationProperty.builder()
                        .enabled(false)
                        .build())
                .revokedCaCertificateStillActiveCheck(AuditCheckConfigurationProperty.builder()
                        .enabled(false)
                        .build())
                .revokedDeviceCertificateStillActiveCheck(AuditCheckConfigurationProperty.builder()
                        .enabled(false)
                        .build())
                .unauthenticatedCognitoRoleOverlyPermissiveCheck(AuditCheckConfigurationProperty.builder()
                        .enabled(false)
                        .build())
                .build())
        .roleArn("roleArn")

        // the properties below are optional
        .auditNotificationTargetConfigurations(AuditNotificationTargetConfigurationsProperty.builder()
                .sns(AuditNotificationTargetProperty.builder()
                        .enabled(false)
                        .roleArn("roleArn")
                        .targetArn("targetArn")
                        .build())
                .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.IoT;

var cfnAccountAuditConfigurationProps = new CfnAccountAuditConfigurationProps {
    AccountId = "accountId",
    AuditCheckConfigurations = new AuditCheckConfigurationsProperty {
        AuthenticatedCognitoRoleOverlyPermissiveCheck = new AuditCheckConfigurationProperty {
            Enabled = false
        },
        CaCertificateExpiringCheck = new AuditCheckConfigurationProperty {
            Enabled = false
        },
        CaCertificateKeyQualityCheck = new AuditCheckConfigurationProperty {
            Enabled = false
        },
        ConflictingClientIdsCheck = new AuditCheckConfigurationProperty {
            Enabled = false
        },
        DeviceCertificateAgeCheck = new DeviceCertAgeAuditCheckConfigurationProperty {
            Configuration = new CertAgeCheckCustomConfigurationProperty {
                CertAgeThresholdInDays = "certAgeThresholdInDays"
            },
            Enabled = false
        },
        DeviceCertificateExpiringCheck = new AuditCheckConfigurationProperty {
            Enabled = false
        },
        DeviceCertificateKeyQualityCheck = new AuditCheckConfigurationProperty {
            Enabled = false
        },
        DeviceCertificateSharedCheck = new AuditCheckConfigurationProperty {
            Enabled = false
        },
        IntermediateCaRevokedForActiveDeviceCertificatesCheck = new AuditCheckConfigurationProperty {
            Enabled = false
        },
        IotPolicyOverlyPermissiveCheck = new AuditCheckConfigurationProperty {
            Enabled = false
        },
        IoTPolicyPotentialMisConfigurationCheck = new AuditCheckConfigurationProperty {
            Enabled = false
        },
        IotRoleAliasAllowsAccessToUnusedServicesCheck = new AuditCheckConfigurationProperty {
            Enabled = false
        },
        IotRoleAliasOverlyPermissiveCheck = new AuditCheckConfigurationProperty {
            Enabled = false
        },
        LoggingDisabledCheck = new AuditCheckConfigurationProperty {
            Enabled = false
        },
        RevokedCaCertificateStillActiveCheck = new AuditCheckConfigurationProperty {
            Enabled = false
        },
        RevokedDeviceCertificateStillActiveCheck = new AuditCheckConfigurationProperty {
            Enabled = false
        },
        UnauthenticatedCognitoRoleOverlyPermissiveCheck = new AuditCheckConfigurationProperty {
            Enabled = false
        }
    },
    RoleArn = "roleArn",

    // the properties below are optional
    AuditNotificationTargetConfigurations = new AuditNotificationTargetConfigurationsProperty {
        Sns = new AuditNotificationTargetProperty {
            Enabled = false,
            RoleArn = "roleArn",
            TargetArn = "targetArn"
        }
    }
};
```

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"

cfnAccountAuditConfigurationProps := &CfnAccountAuditConfigurationProps{
	AccountId: jsii.String("accountId"),
	AuditCheckConfigurations: &AuditCheckConfigurationsProperty{
		AuthenticatedCognitoRoleOverlyPermissiveCheck: &AuditCheckConfigurationProperty{
			Enabled: jsii.Boolean(false),
		},
		CaCertificateExpiringCheck: &AuditCheckConfigurationProperty{
			Enabled: jsii.Boolean(false),
		},
		CaCertificateKeyQualityCheck: &AuditCheckConfigurationProperty{
			Enabled: jsii.Boolean(false),
		},
		ConflictingClientIdsCheck: &AuditCheckConfigurationProperty{
			Enabled: jsii.Boolean(false),
		},
		DeviceCertificateAgeCheck: &DeviceCertAgeAuditCheckConfigurationProperty{
			Configuration: &CertAgeCheckCustomConfigurationProperty{
				CertAgeThresholdInDays: jsii.String("certAgeThresholdInDays"),
			},
			Enabled: jsii.Boolean(false),
		},
		DeviceCertificateExpiringCheck: &AuditCheckConfigurationProperty{
			Enabled: jsii.Boolean(false),
		},
		DeviceCertificateKeyQualityCheck: &AuditCheckConfigurationProperty{
			Enabled: jsii.Boolean(false),
		},
		DeviceCertificateSharedCheck: &AuditCheckConfigurationProperty{
			Enabled: jsii.Boolean(false),
		},
		IntermediateCaRevokedForActiveDeviceCertificatesCheck: &AuditCheckConfigurationProperty{
			Enabled: jsii.Boolean(false),
		},
		IotPolicyOverlyPermissiveCheck: &AuditCheckConfigurationProperty{
			Enabled: jsii.Boolean(false),
		},
		IoTPolicyPotentialMisConfigurationCheck: &AuditCheckConfigurationProperty{
			Enabled: jsii.Boolean(false),
		},
		IotRoleAliasAllowsAccessToUnusedServicesCheck: &AuditCheckConfigurationProperty{
			Enabled: jsii.Boolean(false),
		},
		IotRoleAliasOverlyPermissiveCheck: &AuditCheckConfigurationProperty{
			Enabled: jsii.Boolean(false),
		},
		LoggingDisabledCheck: &AuditCheckConfigurationProperty{
			Enabled: jsii.Boolean(false),
		},
		RevokedCaCertificateStillActiveCheck: &AuditCheckConfigurationProperty{
			Enabled: jsii.Boolean(false),
		},
		RevokedDeviceCertificateStillActiveCheck: &AuditCheckConfigurationProperty{
			Enabled: jsii.Boolean(false),
		},
		UnauthenticatedCognitoRoleOverlyPermissiveCheck: &AuditCheckConfigurationProperty{
			Enabled: jsii.Boolean(false),
		},
	},
	RoleArn: jsii.String("roleArn"),

	// the properties below are optional
	AuditNotificationTargetConfigurations: &AuditNotificationTargetConfigurationsProperty{
		Sns: &AuditNotificationTargetProperty{
			Enabled: jsii.Boolean(false),
			RoleArn: jsii.String("roleArn"),
			TargetArn: jsii.String("targetArn"),
		},
	},
}
```

## Properties

- `accountId`: string (required) — The ID of the account.

  You can use the expression `!Sub "${AWS::AccountId}"` to use your account ID.

- `auditCheckConfigurations`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAccountAuditConfiguration.AuditCheckConfigurationsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iot.CfnAccountAuditConfiguration.AuditCheckConfigurationsProperty.html) (required) — Specifies which audit checks are enabled and disabled for this account.

  Some data collection might start immediately when certain checks are enabled. When a check is disabled, any data collected so far in relation to the check is deleted. To disable a check, set the value of the `Enabled:` key to `false` .

  If an enabled check is removed from the template, it will also be disabled.

  You can't disable a check if it's used by any scheduled audit. You must delete the check from the scheduled audit or delete the scheduled audit itself to disable the check.

  For more information on available audit checks see [AWS::IoT::AccountAuditConfiguration AuditCheckConfigurations](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-accountauditconfiguration-auditcheckconfigurations.html)

- `auditNotificationTargetConfigurations`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAccountAuditConfiguration.AuditNotificationTargetConfigurationsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iot.CfnAccountAuditConfiguration.AuditNotificationTargetConfigurationsProperty.html) — Information about the targets to which audit notifications are sent.

- `roleArn`: string (required) — The Amazon Resource Name (ARN) of the role that grants permission to AWS IoT to access information about your devices, policies, certificates, and other items as required when performing an audit.
