@Stability(value=Stable) public static final class CfnSchedule.Builder extends Object implements software.amazon.jsii.Builder<CfnSchedule>
CfnSchedule.| Modifier and Type | Method and Description |
|---|---|
CfnSchedule |
build() |
static CfnSchedule.Builder |
create(Construct scope,
String id) |
CfnSchedule.Builder |
description(String description)
The description you specify for the schedule.
|
CfnSchedule.Builder |
endDate(String endDate)
The date, in UTC, before which the schedule can invoke its target.
|
CfnSchedule.Builder |
flexibleTimeWindow(CfnSchedule.FlexibleTimeWindowProperty flexibleTimeWindow)
Allows you to configure a time window during which EventBridge Scheduler invokes the schedule.
|
CfnSchedule.Builder |
flexibleTimeWindow(IResolvable flexibleTimeWindow)
Allows you to configure a time window during which EventBridge Scheduler invokes the schedule.
|
CfnSchedule.Builder |
groupName(String groupName)
The name of the schedule group associated with this schedule.
|
CfnSchedule.Builder |
kmsKeyArn(String kmsKeyArn)
The Amazon Resource Name (ARN) for the customer managed KMS key that EventBridge Scheduler will use to encrypt and decrypt your data.
|
CfnSchedule.Builder |
name(String name)
The name of the schedule.
|
CfnSchedule.Builder |
scheduleExpression(String scheduleExpression)
The expression that defines when the schedule runs.
|
CfnSchedule.Builder |
scheduleExpressionTimezone(String scheduleExpressionTimezone)
The timezone in which the scheduling expression is evaluated.
|
CfnSchedule.Builder |
startDate(String startDate)
The date, in UTC, after which the schedule can begin invoking its target.
|
CfnSchedule.Builder |
state(String state)
Specifies whether the schedule is enabled or disabled.
|
CfnSchedule.Builder |
target(CfnSchedule.TargetProperty target)
The schedule's target details.
|
CfnSchedule.Builder |
target(IResolvable target)
The schedule's target details.
|
@Stability(value=Stable) public static CfnSchedule.Builder create(Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnSchedule.AwsVpcConfigurationProperty.Builder.@Stability(value=Stable) public CfnSchedule.Builder flexibleTimeWindow(CfnSchedule.FlexibleTimeWindowProperty flexibleTimeWindow)
flexibleTimeWindow - Allows you to configure a time window during which EventBridge Scheduler invokes the schedule. This parameter is required.this@Stability(value=Stable) public CfnSchedule.Builder flexibleTimeWindow(IResolvable flexibleTimeWindow)
flexibleTimeWindow - Allows you to configure a time window during which EventBridge Scheduler invokes the schedule. This parameter is required.this@Stability(value=Stable) public CfnSchedule.Builder scheduleExpression(String scheduleExpression)
at expression - at(yyyy-mm-ddThh:mm:ss)rate expression - rate(unit value)cron expression - cron(fields)
You can use at expressions to create one-time schedules that invoke a target once, at the time and in the time zone, that you specify. You can use rate and cron expressions to create recurring schedules. Rate-based schedules are useful when you want to invoke a target at regular intervals, such as every 15 minutes or every five days. Cron-based schedules are useful when you want to invoke a target periodically at a specific time, such as at 8:00 am (UTC+0) every 1st day of the month.
A cron expression consists of six fields separated by white spaces: (minutes hours day_of_month month day_of_week year) .
A rate expression consists of a value as a positive integer, and a unit with the following options: minute | minutes | hour | hours | day | days
For more information and examples, see Schedule types on EventBridge Scheduler in the EventBridge Scheduler User Guide .
scheduleExpression - The expression that defines when the schedule runs. The following formats are supported. This parameter is required.this@Stability(value=Stable) public CfnSchedule.Builder target(IResolvable target)
target - The schedule's target details. This parameter is required.this@Stability(value=Stable) public CfnSchedule.Builder target(CfnSchedule.TargetProperty target)
target - The schedule's target details. This parameter is required.this@Stability(value=Stable) public CfnSchedule.Builder description(String description)
description - The description you specify for the schedule. This parameter is required.this@Stability(value=Stable) public CfnSchedule.Builder endDate(String endDate)
Depending on the schedule's recurrence expression, invocations might stop on, or before, the EndDate you specify.
EventBridge Scheduler ignores EndDate for one-time schedules.
endDate - The date, in UTC, before which the schedule can invoke its target. This parameter is required.this@Stability(value=Stable) public CfnSchedule.Builder groupName(String groupName)
groupName - The name of the schedule group associated with this schedule. This parameter is required.this@Stability(value=Stable) public CfnSchedule.Builder kmsKeyArn(String kmsKeyArn)
kmsKeyArn - The Amazon Resource Name (ARN) for the customer managed KMS key that EventBridge Scheduler will use to encrypt and decrypt your data. This parameter is required.this@Stability(value=Stable) public CfnSchedule.Builder name(String name)
name - The name of the schedule. This parameter is required.this@Stability(value=Stable) public CfnSchedule.Builder scheduleExpressionTimezone(String scheduleExpressionTimezone)
scheduleExpressionTimezone - The timezone in which the scheduling expression is evaluated. This parameter is required.this@Stability(value=Stable) public CfnSchedule.Builder startDate(String startDate)
Depending on the schedule's recurrence expression, invocations might occur on, or after, the StartDate you specify.
EventBridge Scheduler ignores StartDate for one-time schedules.
startDate - The date, in UTC, after which the schedule can begin invoking its target. This parameter is required.this@Stability(value=Stable) public CfnSchedule.Builder state(String state)
state - Specifies whether the schedule is enabled or disabled. This parameter is required.this@Stability(value=Stable) public CfnSchedule build()
build in interface software.amazon.jsii.Builder<CfnSchedule>Copyright © 2022. All rights reserved.