Skip to content
v2.275.0

ScheduleGroupProps Struct ​

Properties for a Schedule Group.

Example ​

ts
declare const target: targets.LambdaInvoke;

const scheduleGroup = new ScheduleGroup(this, "ScheduleGroup", {
    scheduleGroupName: "MyScheduleGroup",
});

new Schedule(this, 'Schedule', {
    schedule: ScheduleExpression.rate(Duration.minutes(10)),
    target,
    scheduleGroup,
});

Properties ​

removalPolicyoptionalRemovalPolicyremoval_policyoptionalRemovalPolicyremovalPolicyoptionalRemovalPolicyRemovalPolicyoptionalRemovalPolicyRemovalPolicyoptionalRemovalPolicy= RemovalPolicy.RETAIN#
The removal policy for the group.

If the group is removed also all schedules are removed.

scheduleGroupNameoptionalstringschedule_group_nameoptionalstrscheduleGroupNameoptionalStringScheduleGroupNameoptionalstringScheduleGroupNameoptional*string#
The name of the schedule group.

Default: A unique name will be generated

Up to 64 letters (uppercase and lowercase), numbers, hyphens, underscores and dots are allowed.