| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Glue.UpdateCrawlerSchedule
Description
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.
Constructors
| UpdateCrawlerSchedule' | |
Fields
| |
Instances
newUpdateCrawlerSchedule Source #
Arguments
| :: Text | |
| -> UpdateCrawlerSchedule |
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:
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 * * ? *).
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.
Constructors
| UpdateCrawlerScheduleResponse' | |
Fields
| |
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.