Interface ScheduleProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
ScheduleProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-22T02:24:11.885Z") @Stability(Experimental) public interface ScheduleProps extends software.amazon.jsii.JsiiSerializable
(experimental) Construction properties for Schedule.

Example:

 import software.amazon.awscdk.services.kinesisfirehose.alpha.*;
 IDeliveryStream deliveryStream;
 Map<String, String> payload = Map.of(
         "Data", "record");
 Schedule.Builder.create(this, "Schedule")
         .schedule(ScheduleExpression.rate(Duration.minutes(60)))
         .target(KinesisDataFirehosePutRecord.Builder.create(deliveryStream)
                 .input(ScheduleTargetInput.fromObject(payload))
                 .build())
         .build();
 
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    A builder for ScheduleProps
    static final class 
    An implementation for ScheduleProps
  • Method Summary

    Modifier and Type
    Method
    Description
     
    default String
    (experimental) The description you specify for the schedule.
    default Boolean
    (experimental) Indicates whether the schedule is enabled.
    default Instant
    (experimental) The date, in UTC, before which the schedule can invoke its target.
    default IGroup
    (experimental) The schedule's group.
    default IKey
    (experimental) The customer managed KMS key that EventBridge Scheduler will use to encrypt and decrypt your data.
    (experimental) The expression that defines when the schedule runs.
    default String
    (experimental) The name of the schedule.
    default Instant
    (experimental) The date, in UTC, after which the schedule can begin invoking its target.
    (experimental) The schedule's target details.
    default TimeWindow
    (experimental) A time window during which EventBridge Scheduler invokes the schedule.

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Method Details

    • getSchedule

      @Stability(Experimental) @NotNull ScheduleExpression getSchedule()
      (experimental) The expression that defines when the schedule runs.

      Can be either a at, rate or cron expression.

    • getTarget

      @Stability(Experimental) @NotNull IScheduleTarget getTarget()
      (experimental) The schedule's target details.
    • getDescription

      @Stability(Experimental) @Nullable default String getDescription()
      (experimental) The description you specify for the schedule.

      Default: - no value

    • getEnabled

      @Stability(Experimental) @Nullable default Boolean getEnabled()
      (experimental) Indicates whether the schedule is enabled.

      Default: true

    • getEnd

      @Stability(Experimental) @Nullable default Instant getEnd()
      (experimental) The date, in UTC, before which the schedule can invoke its target.

      EventBridge Scheduler ignores end for one-time schedules.

      Default: - no value

    • getGroup

      @Stability(Experimental) @Nullable default IGroup getGroup()
      (experimental) The schedule's group.

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

    • getKey

      @Stability(Experimental) @Nullable default IKey getKey()
      (experimental) 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.

    • getScheduleName

      @Stability(Experimental) @Nullable default String getScheduleName()
      (experimental) 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

    • getStart

      @Stability(Experimental) @Nullable default Instant getStart()
      (experimental) The date, in UTC, after which the schedule can begin invoking its target.

      EventBridge Scheduler ignores start for one-time schedules.

      Default: - no value

    • getTimeWindow

      @Stability(Experimental) @Nullable default TimeWindow getTimeWindow()
      (experimental) A time window during which EventBridge Scheduler invokes the schedule.

      Default: TimeWindow.off()

      See Also:
    • builder

      @Stability(Experimental) static ScheduleProps.Builder builder()
      Returns:
      a ScheduleProps.Builder of ScheduleProps