Schedule

sealed class Schedule

The schedule of when Amazon Redshift Serverless should run the scheduled action.

Inheritors

Types

Link copied to clipboard
data class At(val value: Instant) : Schedule

The timestamp of when Amazon Redshift Serverless should run the scheduled action. Format of at expressions is "at(yyyy-mm-ddThh:mm:ss)". For example, "at(2016-03-04T17:27:00)".

Link copied to clipboard
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.

Link copied to clipboard

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.