Skip to content
v2.278.0

ScheduleProperty Struct ​

The schedule the CIS scan configuration runs on.

Each CIS scan configuration has exactly one type of schedule.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_inspectorv2 as inspectorv2 } from 'aws-cdk-lib';

declare const oneTime: any;
const scheduleProperty: inspectorv2.CfnCisScanConfiguration.ScheduleProperty = {
  daily: {
    startTime: {
      timeOfDay: 'timeOfDay',
      timeZone: 'timeZone',
    },
  },
  monthly: {
    day: 'day',
    startTime: {
      timeOfDay: 'timeOfDay',
      timeZone: 'timeZone',
    },
  },
  oneTime: oneTime,
  weekly: {
    days: ['days'],
    startTime: {
      timeOfDay: 'timeOfDay',
      timeZone: 'timeZone',
    },
  },
};
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_inspectorv2 as inspectorv2

# one_time: Any

schedule_property = inspectorv2.CfnCisScanConfiguration.ScheduleProperty(
    daily=inspectorv2.CfnCisScanConfiguration.DailyScheduleProperty(
        start_time=inspectorv2.CfnCisScanConfiguration.TimeProperty(
            time_of_day="timeOfDay",
            time_zone="timeZone"
        )
    ),
    monthly=inspectorv2.CfnCisScanConfiguration.MonthlyScheduleProperty(
        day="day",
        start_time=inspectorv2.CfnCisScanConfiguration.TimeProperty(
            time_of_day="timeOfDay",
            time_zone="timeZone"
        )
    ),
    one_time=one_time,
    weekly=inspectorv2.CfnCisScanConfiguration.WeeklyScheduleProperty(
        days=["days"],
        start_time=inspectorv2.CfnCisScanConfiguration.TimeProperty(
            time_of_day="timeOfDay",
            time_zone="timeZone"
        )
    )
)
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.inspectorv2.*;

Object oneTime;

ScheduleProperty scheduleProperty = ScheduleProperty.builder()
        .daily(DailyScheduleProperty.builder()
                .startTime(TimeProperty.builder()
                        .timeOfDay("timeOfDay")
                        .timeZone("timeZone")
                        .build())
                .build())
        .monthly(MonthlyScheduleProperty.builder()
                .day("day")
                .startTime(TimeProperty.builder()
                        .timeOfDay("timeOfDay")
                        .timeZone("timeZone")
                        .build())
                .build())
        .oneTime(oneTime)
        .weekly(WeeklyScheduleProperty.builder()
                .days(List.of("days"))
                .startTime(TimeProperty.builder()
                        .timeOfDay("timeOfDay")
                        .timeZone("timeZone")
                        .build())
                .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.InspectorV2;

var oneTime;

var scheduleProperty = new ScheduleProperty {
    Daily = new DailyScheduleProperty {
        StartTime = new TimeProperty {
            TimeOfDay = "timeOfDay",
            TimeZone = "timeZone"
        }
    },
    Monthly = new MonthlyScheduleProperty {
        Day = "day",
        StartTime = new TimeProperty {
            TimeOfDay = "timeOfDay",
            TimeZone = "timeZone"
        }
    },
    OneTime = oneTime,
    Weekly = new WeeklyScheduleProperty {
        Days = new [] { "days" },
        StartTime = new TimeProperty {
            TimeOfDay = "timeOfDay",
            TimeZone = "timeZone"
        }
    }
};
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"

var oneTime interface{}

scheduleProperty := &ScheduleProperty{
	Daily: &DailyScheduleProperty{
		StartTime: &TimeProperty{
			TimeOfDay: jsii.String("timeOfDay"),
			TimeZone: jsii.String("timeZone"),
		},
	},
	Monthly: &MonthlyScheduleProperty{
		Day: jsii.String("day"),
		StartTime: &TimeProperty{
			TimeOfDay: jsii.String("timeOfDay"),
			TimeZone: jsii.String("timeZone"),
		},
	},
	OneTime: oneTime,
	Weekly: &WeeklyScheduleProperty{
		Days: []*string{
			jsii.String("days"),
		},
		StartTime: &TimeProperty{
			TimeOfDay: jsii.String("timeOfDay"),
			TimeZone: jsii.String("timeZone"),
		},
	},
}

Properties ​

dailyoptionalIResolvable | CfnCisScanConfiguration.DailySchedulePropertydailyoptionaltyping.Union[IResolvable, DailyScheduleProperty]dailyoptionalIResolvableDailyoptionalIResolvableDailyoptionalinterface{} #
A daily schedule.
monthlyoptionalIResolvable | CfnCisScanConfiguration.MonthlySchedulePropertymonthlyoptionaltyping.Union[IResolvable, MonthlyScheduleProperty]monthlyoptionalIResolvableMonthlyoptionalIResolvableMonthlyoptionalinterface{} #
A monthly schedule.
oneTimeoptionalanyone_timeoptionalAnyoneTimeoptionalObjectOneTimeoptionalobjectOneTimeoptionalinterface{} #
A one time schedule.
weeklyoptionalIResolvable | CfnCisScanConfiguration.WeeklySchedulePropertyweeklyoptionaltyping.Union[IResolvable, WeeklyScheduleProperty]weeklyoptionalIResolvableWeeklyoptionalIResolvableWeeklyoptionalinterface{} #
A weekly schedule.