DayOfMonth

class aws_cdk.aws_iot_alpha.DayOfMonth(*args: Any, **kwargs)

Bases: object

(experimental) The day of the month on which the scheduled audit takes place.

Stability:

experimental

ExampleMetadata:

infused

Example:

# config: iot.AccountAuditConfiguration


# Daily audit
daily_audit = iot.ScheduledAudit(self, "DailyAudit",
    account_audit_configuration=config,
    frequency=iot.Frequency.DAILY,
    audit_checks=[iot.AuditCheck.AUTHENTICATED_COGNITO_ROLE_OVERLY_PERMISSIVE_CHECK
    ]
)

# Weekly audit
weekly_audit = iot.ScheduledAudit(self, "WeeklyAudit",
    account_audit_configuration=config,
    frequency=iot.Frequency.WEEKLY,
    day_of_week=iot.DayOfWeek.SUNDAY,
    audit_checks=[iot.AuditCheck.CA_CERTIFICATE_EXPIRING_CHECK
    ]
)

# Monthly audit
monthly_audit = iot.ScheduledAudit(self, "MonthlyAudit",
    account_audit_configuration=config,
    frequency=iot.Frequency.MONTHLY,
    day_of_month=iot.DayOfMonth.of(1),
    audit_checks=[iot.AuditCheck.CA_CERTIFICATE_KEY_QUALITY_CHECK
    ]
)

Attributes

LAST_DAY = <aws_cdk.aws_iot_alpha.DayOfMonth object>
day

(experimental) The day of the month.

Stability:

experimental

Static Methods

classmethod of(day)

(experimental) Custom day of the month.

Parameters:

day (Union[int, float]) – the day of the month.

Stability:

experimental

Return type:

DayOfMonth