class DayOfMonth
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.IoT.Alpha.DayOfMonth |
Go | github.com/aws/aws-cdk-go/awscdkiotalpha/v2#DayOfMonth |
Java | software.amazon.awscdk.services.iot.alpha.DayOfMonth |
Python | aws_cdk.aws_iot_alpha.DayOfMonth |
TypeScript (source) | @aws-cdk/aws-iot-alpha ยป DayOfMonth |
The day of the month 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,
],
});
Properties
Name | Type | Description |
---|---|---|
day | string | The day of the month. |
static LAST_DAY | Day | The last day of the month. |
day
Type:
string
The day of the month.
static LAST_DAY
Type:
Day
The last day of the month.
Methods
Name | Description |
---|---|
static of(day) | Custom day of the month. |
static of(day)
public static of(day: number): DayOfMonth
Parameters
- day
number
โ the day of the month.
Returns
Custom day of the month.