enum DayOfWeek
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.IoT.Alpha.DayOfWeek |
Go | github.com/aws/aws-cdk-go/awscdkiotalpha/v2#DayOfWeek |
Java | software.amazon.awscdk.services.iot.alpha.DayOfWeek |
Python | aws_cdk.aws_iot_alpha.DayOfWeek |
TypeScript (source) | @aws-cdk/aws-iot-alpha ยป DayOfWeek |
The day of the week on which the scheduled audit takes place.
Example
declare const config: iot.AccountAuditConfiguration;
// Daily audit
const dailyAudit = new iot.ScheduledAudit(this, 'DailyAudit', {
accountAuditConfiguration: config,
frequency: iot.Frequency.DAILY,
auditChecks: [
iot.AuditCheck.AUTHENTICATED_COGNITO_ROLE_OVERLY_PERMISSIVE_CHECK,
],
})
// Weekly audit
const weeklyAudit = new iot.ScheduledAudit(this, 'WeeklyAudit', {
accountAuditConfiguration: config,
frequency: iot.Frequency.WEEKLY,
dayOfWeek: iot.DayOfWeek.SUNDAY,
auditChecks: [
iot.AuditCheck.CA_CERTIFICATE_EXPIRING_CHECK,
],
});
// Monthly audit
const monthlyAudit = new iot.ScheduledAudit(this, 'MonthlyAudit', {
accountAuditConfiguration: config,
frequency: iot.Frequency.MONTHLY,
dayOfMonth: iot.DayOfMonth.of(1),
auditChecks: [
iot.AuditCheck.CA_CERTIFICATE_KEY_QUALITY_CHECK,
],
});
Members
Name | Description |
---|---|
SUNDAY | Sunday. |
MONDAY | Monday. |
TUESDAY | Tuesday. |
WEDNESDAY | Wednesday. |
THURSDAY | Thursday. |
FRIDAY | Friday. |
SATURDAY | Saturday. |
SUNDAY
Sunday.
MONDAY
Monday.
TUESDAY
Tuesday.
WEDNESDAY
Wednesday.
THURSDAY
Thursday.
FRIDAY
Friday.
SATURDAY
Saturday.