Schedule

class aws_cdk.aws_synthetics.Schedule(*args: Any, **kwargs)

Bases: object

(experimental) Schedule for canary runs.

Stability

experimental

Attributes

expression_string

(experimental) The Schedule expression.

Stability

experimental

Return type

str

Static Methods

classmethod expression(expression)

(experimental) Construct a schedule from a literal schedule expression.

The expression must be in a rate(number units) format. For example, Schedule.expression('rate(10 minutes)')

Parameters

expression (str) – The expression to use.

Stability

experimental

Return type

Schedule

classmethod once()

(experimental) The canary will be executed once.

Stability

experimental

Return type

Schedule

classmethod rate(interval)

(experimental) Construct a schedule from an interval.

Allowed values: 0 (for a single run) or between 1 and 60 minutes. To specify a single run, you can use Schedule.once().

Parameters

interval (Duration) – The interval at which to run the canary.

Stability

experimental

Return type

Schedule