ScheduleProps

class aws_cdk.aws_scheduler_alpha.ScheduleProps(*, schedule, target, description=None, enabled=None, end=None, group=None, key=None, schedule_group=None, schedule_name=None, start=None, time_window=None)

Bases: object

(deprecated) Construction properties for Schedule.

Parameters:
  • schedule (ScheduleExpression) – (deprecated) The expression that defines when the schedule runs. Can be either a at, rate or cron expression.

  • target (IScheduleTarget) – (deprecated) The schedule’s target details.

  • description (Optional[str]) – (deprecated) The description you specify for the schedule. Default: - no value

  • enabled (Optional[bool]) – (deprecated) Indicates whether the schedule is enabled. Default: true

  • end (Optional[datetime]) – (deprecated) The date, in UTC, before which the schedule can invoke its target. EventBridge Scheduler ignores end for one-time schedules. Default: - no value

  • group (Optional[IGroup]) – (deprecated) The schedule’s group. Default: - By default a schedule will be associated with the default group.

  • key (Optional[IKey]) – (deprecated) 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.

  • schedule_group (Optional[IScheduleGroup]) – (deprecated) The schedule’s group. Default: - By default a schedule will be associated with the default group.

  • schedule_name (Optional[str]) – (deprecated) The name of the schedule. Up to 64 letters (uppercase and lowercase), numbers, hyphens, underscores and dots are allowed. Default: - A unique name will be generated

  • start (Optional[datetime]) – (deprecated) The date, in UTC, after which the schedule can begin invoking its target. EventBridge Scheduler ignores start for one-time schedules. Default: - no value

  • time_window (Optional[TimeWindow]) – (deprecated) A time window during which EventBridge Scheduler invokes the schedule. Default: TimeWindow.off()

Stability:

deprecated

ExampleMetadata:

infused

Example:

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)
    )
)

Attributes

description

(deprecated) The description you specify for the schedule.

Default:
  • no value

Stability:

deprecated

enabled

(deprecated) Indicates whether the schedule is enabled.

Default:

true

Stability:

deprecated

end

(deprecated) The date, in UTC, before which the schedule can invoke its target.

EventBridge Scheduler ignores end for one-time schedules.

Default:
  • no value

Stability:

deprecated

group

(deprecated) The schedule’s group.

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

Deprecated:

Use scheduleGroup instead. group will be removed when this module is stabilized.

Stability:

deprecated

key

(deprecated) 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.

Stability:

deprecated

schedule

(deprecated) The expression that defines when the schedule runs.

Can be either a at, rate or cron expression.

Stability:

deprecated

schedule_group

(deprecated) The schedule’s group.

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

Stability:

deprecated

schedule_name

(deprecated) The name of the schedule.

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

Default:
  • A unique name will be generated

Stability:

deprecated

start

(deprecated) The date, in UTC, after which the schedule can begin invoking its target.

EventBridge Scheduler ignores start for one-time schedules.

Default:
  • no value

Stability:

deprecated

target

(deprecated) The schedule’s target details.

Stability:

deprecated

time_window

(deprecated) A time window during which EventBridge Scheduler invokes the schedule.

Default:

TimeWindow.off()

See:

https://docs.aws.amazon.com/scheduler/latest/UserGuide/managing-schedule-flexible-time-windows.html

Stability:

deprecated