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 |
Updates the schedule of a crawler using a cron
expression.
Synopsis
- data UpdateCrawlerSchedule = UpdateCrawlerSchedule' {
- schedule :: Maybe Text
- crawlerName :: Text
- newUpdateCrawlerSchedule :: Text -> UpdateCrawlerSchedule
- updateCrawlerSchedule_schedule :: Lens' UpdateCrawlerSchedule (Maybe Text)
- updateCrawlerSchedule_crawlerName :: Lens' UpdateCrawlerSchedule Text
- data UpdateCrawlerScheduleResponse = UpdateCrawlerScheduleResponse' {
- httpStatus :: Int
- newUpdateCrawlerScheduleResponse :: Int -> UpdateCrawlerScheduleResponse
- updateCrawlerScheduleResponse_httpStatus :: Lens' UpdateCrawlerScheduleResponse Int
Creating a Request
data UpdateCrawlerSchedule Source #
See: newUpdateCrawlerSchedule
smart constructor.
UpdateCrawlerSchedule' | |
|
Instances
newUpdateCrawlerSchedule Source #
Create a value of UpdateCrawlerSchedule
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:schedule:UpdateCrawlerSchedule'
, updateCrawlerSchedule_schedule
- The updated 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 * * ? *)
.
$sel:crawlerName:UpdateCrawlerSchedule'
, updateCrawlerSchedule_crawlerName
- The name of the crawler whose schedule to update.
Request Lenses
updateCrawlerSchedule_schedule :: Lens' UpdateCrawlerSchedule (Maybe Text) Source #
The updated 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 * * ? *)
.
updateCrawlerSchedule_crawlerName :: Lens' UpdateCrawlerSchedule Text Source #
The name of the crawler whose schedule to update.
Destructuring the Response
data UpdateCrawlerScheduleResponse Source #
See: newUpdateCrawlerScheduleResponse
smart constructor.
UpdateCrawlerScheduleResponse' | |
|
Instances
newUpdateCrawlerScheduleResponse Source #
Create a value of UpdateCrawlerScheduleResponse
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:httpStatus:UpdateCrawlerScheduleResponse'
, updateCrawlerScheduleResponse_httpStatus
- The response's http status code.
Response Lenses
updateCrawlerScheduleResponse_httpStatus :: Lens' UpdateCrawlerScheduleResponse Int Source #
The response's http status code.