Cron

data class Cron(val value: String) : Schedule

The cron expression to use to schedule a recurring scheduled action. Schedule invocations must be separated by at least one hour.

Format of cron expressions is "cron(Minutes Hours Day-of-month Month Day-of-week Year)". For example, "cron(0 10 ? * MON *)". For more information, see Cron Expressions in the Amazon CloudWatch Events User Guide.

Constructors

Link copied to clipboard
constructor(value: String)

Properties

Link copied to clipboard

Inherited functions

Link copied to clipboard
fun asAt(): Instant

Casts this Schedule as a At and retrieves its aws.smithy.kotlin.runtime.time.Instant value. Throws an exception if the Schedule is not a At.

Link copied to clipboard

Casts this Schedule as a At and retrieves its aws.smithy.kotlin.runtime.time.Instant value. Returns null if the Schedule is not a At.

Link copied to clipboard
fun asCron(): String

Casts this Schedule as a Cron and retrieves its kotlin.String value. Throws an exception if the Schedule is not a Cron.

Link copied to clipboard

Casts this Schedule as a Cron and retrieves its kotlin.String value. Returns null if the Schedule is not a Cron.