Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
Documentation
A scheduling object using a cron
statement to schedule an event.
See: newSchedule
smart constructor.
Schedule' | |
|
Instances
Eq Schedule Source # | |
Read Schedule Source # | |
Show Schedule Source # | |
Generic Schedule Source # | |
NFData Schedule Source # | |
Defined in Amazonka.Glue.Types.Schedule | |
Hashable Schedule Source # | |
Defined in Amazonka.Glue.Types.Schedule | |
FromJSON Schedule Source # | |
type Rep Schedule Source # | |
Defined in Amazonka.Glue.Types.Schedule type Rep Schedule = D1 ('MetaData "Schedule" "Amazonka.Glue.Types.Schedule" "libZSservicesZSamazonka-glueZSamazonka-glue" 'False) (C1 ('MetaCons "Schedule'" 'PrefixI 'True) (S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ScheduleState)) :*: S1 ('MetaSel ('Just "scheduleExpression") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) |
newSchedule :: Schedule Source #
Create a value of Schedule
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:state:Schedule'
, schedule_state
- The state of the schedule.
$sel:scheduleExpression:Schedule'
, schedule_scheduleExpression
- A cron
expression used to specify the schedule (see
Time-Based Schedules for Jobs and Crawlers.
For example, to run something every day at 12:15 UTC, you would specify:
cron(15 12 * * ? *)
.
schedule_state :: Lens' Schedule (Maybe ScheduleState) Source #
The state of the schedule.
schedule_scheduleExpression :: Lens' Schedule (Maybe Text) Source #
A cron
expression used to specify the schedule (see
Time-Based Schedules for Jobs and Crawlers.
For example, to run something every day at 12:15 UTC, you would specify:
cron(15 12 * * ? *)
.