Skip to content
v2.278.0

CfnScheduledAuditProps Struct ​

Properties for defining a CfnScheduledAudit.

Example ​

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 cfnScheduledAuditProps: iot.CfnScheduledAuditProps = {
  frequency: 'frequency',
  targetCheckNames: ['targetCheckNames'],

  // the properties below are optional
  dayOfMonth: 'dayOfMonth',
  dayOfWeek: 'dayOfWeek',
  scheduledAuditName: 'scheduledAuditName',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# 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_scheduled_audit_props = iot.CfnScheduledAuditProps(
    frequency="frequency",
    target_check_names=["targetCheckNames"],

    # the properties below are optional
    day_of_month="dayOfMonth",
    day_of_week="dayOfWeek",
    scheduled_audit_name="scheduledAuditName",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
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.*;

CfnScheduledAuditProps cfnScheduledAuditProps = CfnScheduledAuditProps.builder()
        .frequency("frequency")
        .targetCheckNames(List.of("targetCheckNames"))

        // the properties below are optional
        .dayOfMonth("dayOfMonth")
        .dayOfWeek("dayOfWeek")
        .scheduledAuditName("scheduledAuditName")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
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 cfnScheduledAuditProps = new CfnScheduledAuditProps {
    Frequency = "frequency",
    TargetCheckNames = new [] { "targetCheckNames" },

    // the properties below are optional
    DayOfMonth = "dayOfMonth",
    DayOfWeek = "dayOfWeek",
    ScheduledAuditName = "scheduledAuditName",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
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"

cfnScheduledAuditProps := &CfnScheduledAuditProps{
	Frequency: jsii.String("frequency"),
	TargetCheckNames: []*string{
		jsii.String("targetCheckNames"),
	},

	// the properties below are optional
	DayOfMonth: jsii.String("dayOfMonth"),
	DayOfWeek: jsii.String("dayOfWeek"),
	ScheduledAuditName: jsii.String("scheduledAuditName"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

dayOfMonthoptionalstringday_of_monthoptionalstrdayOfMonthoptionalStringDayOfMonthoptionalstringDayOfMonthoptional*string #
The day of the month on which the scheduled audit is run (if the `frequency` is "MONTHLY").

If days 29-31 are specified, and the month does not have that many days, the audit takes place on the "LAST" day of the month.

dayOfWeekoptionalstringday_of_weekoptionalstrdayOfWeekoptionalStringDayOfWeekoptionalstringDayOfWeekoptional*string #
The day of the week on which the scheduled audit is run (if the `frequency` is "WEEKLY" or "BIWEEKLY").
frequencystringfrequencystrfrequencyStringFrequencystringFrequency*string required #
How often the scheduled audit occurs.
scheduledAuditNameoptionalstringscheduled_audit_nameoptionalstrscheduledAuditNameoptionalStringScheduledAuditNameoptionalstringScheduledAuditNameoptional*string #
The name of the scheduled audit.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
Metadata that can be used to manage the scheduled audit.
targetCheckNamesstring[]target_check_namestyping.List[str]targetCheckNamesList<String>TargetCheckNamesstring[]TargetCheckNames*[]*string required #
Which checks are performed during the scheduled audit.
notes

Checks must be enabled for your account. (Use DescribeAccountAuditConfiguration to see the list of all checks, including those that are enabled or use UpdateAccountAuditConfiguration to select which checks are enabled.)

The following checks are currently available:

  • AUTHENTICATED_COGNITO_ROLE_OVERLY_PERMISSIVE_CHECK
  • CA_CERTIFICATE_EXPIRING_CHECK
  • CA_CERTIFICATE_KEY_QUALITY_CHECK
  • CONFLICTING_CLIENT_IDS_CHECK
  • DEVICE_CERTIFICATE_EXPIRING_CHECK
  • DEVICE_CERTIFICATE_KEY_QUALITY_CHECK
  • DEVICE_CERTIFICATE_SHARED_CHECK
  • IOT_POLICY_OVERLY_PERMISSIVE_CHECK
  • IOT_ROLE_ALIAS_ALLOWS_ACCESS_TO_UNUSED_SERVICES_CHECK
  • IOT_ROLE_ALIAS_OVERLY_PERMISSIVE_CHECK
  • LOGGING_DISABLED_CHECK
  • REVOKED_CA_CERTIFICATE_STILL_ACTIVE_CHECK
  • REVOKED_DEVICE_CERTIFICATE_STILL_ACTIVE_CHECK
  • UNAUTHENTICATED_COGNITO_ROLE_OVERLY_PERMISSIVE_CHECK