Skip to content
v2.278.0

ScheduleProps Struct ​

Construction properties for Schedule.

Example ​

ts
import * as firehose from 'aws-cdk-lib/aws-kinesisfirehose';
declare const deliveryStream: firehose.IDeliveryStream;

const payload = {
  Data: "record",
};

new Schedule(this, 'Schedule', {
  schedule: ScheduleExpression.rate(Duration.minutes(60)),
  target: new targets.FirehosePutRecord(deliveryStream, {
    input: ScheduleTargetInput.fromObject(payload),
  }),
});
python
import aws_cdk.aws_kinesisfirehose as firehose
# delivery_stream: firehose.IDeliveryStream


payload = {
    "Data": "record"
}

Schedule(self, "Schedule",
    schedule=ScheduleExpression.rate(Duration.minutes(60)),
    target=targets.FirehosePutRecord(delivery_stream,
        input=ScheduleTargetInput.from_object(payload)
    )
)
java
import software.amazon.awscdk.services.kinesisfirehose.*;
IDeliveryStream deliveryStream;


Map<String, String> payload = Map.of(
        "Data", "record");

Schedule.Builder.create(this, "Schedule")
        .schedule(ScheduleExpression.rate(Duration.minutes(60)))
        .target(FirehosePutRecord.Builder.create(deliveryStream)
                .input(ScheduleTargetInput.fromObject(payload))
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
using Amazon.CDK.AWS.KinesisFirehose;
IDeliveryStream deliveryStream;


IDictionary<string, string> payload = new Dictionary<string, string> {
    { "Data", "record" }
};

new Schedule(this, "Schedule", new ScheduleProps {
    Schedule = ScheduleExpression.Rate(Duration.Minutes(60)),
    Target = new FirehosePutRecord(deliveryStream, new ScheduleTargetBaseProps {
        Input = ScheduleTargetInput.FromObject(payload)
    })
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
import firehose "github.com/aws/aws-cdk-go/awscdk"
var deliveryStream IDeliveryStream


payload := map[string]*string{
	"Data": jsii.String("record"),
}

awscdk.NewSchedule(this, jsii.String("Schedule"), &ScheduleProps{
	Schedule: awscdk.ScheduleExpression_Rate(awscdk.Duration_Minutes(jsii.Number(60))),
	Target: targets.NewFirehosePutRecord(deliveryStream, &ScheduleTargetBaseProps{
		Input: awscdk.ScheduleTargetInput_FromObject(payload),
	}),
})

Properties ​

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
The description you specify for the schedule.

Default: no value

enabledoptionalbooleanenabledoptionalboolenabledoptionalBooleanEnabledoptionalboolEnabledoptional*bool = true #
Indicates whether the schedule is enabled.
endoptionaldateendoptionaldatetimeendoptionalInstantEndoptionalDateTimeEndoptional*time.Time #
The date, in UTC, before which the schedule can invoke its target.

Default: no value

EventBridge Scheduler ignores end for one-time schedules.

keyoptionalIKeykeyoptionalIKeykeyoptionalIKeyKeyoptionalIKeyKeyoptionalIKey #
The customer managed KMS key that EventBridge Scheduler will use to encrypt and decrypt your data.

Default: All events in Scheduler are encrypted with a key that AWS owns and manages.

The expression that defines when the schedule runs.

Can be either a at, rate or cron expression.

scheduleGroupoptionalIScheduleGroupschedule_groupoptionalIScheduleGroupscheduleGroupoptionalIScheduleGroupScheduleGroupoptionalIScheduleGroupScheduleGroupoptionalIScheduleGroup #
The schedule's group.

Default: By default a schedule will be associated with the default group.

scheduleNameoptionalstringschedule_nameoptionalstrscheduleNameoptionalStringScheduleNameoptionalstringScheduleNameoptional*string #
The name of the schedule.

Default: A unique name will be generated

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

startoptionaldatestartoptionaldatetimestartoptionalInstantStartoptionalDateTimeStartoptional*time.Time #
The date, in UTC, after which the schedule can begin invoking its target.

Default: no value

EventBridge Scheduler ignores start for one-time schedules.

The schedule's target details.
timeWindowoptionalTimeWindowtime_windowoptionalTimeWindowtimeWindowoptionalTimeWindowTimeWindowoptionalTimeWindowTimeWindowoptionalTimeWindow = TimeWindow.off() #
A time window during which EventBridge Scheduler invokes the schedule.