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 |
Starts a crawl using the specified crawler, regardless of what is scheduled. If the crawler is already running, returns a CrawlerRunningException.
Synopsis
- data StartCrawler = StartCrawler' {}
- newStartCrawler :: Text -> StartCrawler
- startCrawler_name :: Lens' StartCrawler Text
- data StartCrawlerResponse = StartCrawlerResponse' {
- httpStatus :: Int
- newStartCrawlerResponse :: Int -> StartCrawlerResponse
- startCrawlerResponse_httpStatus :: Lens' StartCrawlerResponse Int
Creating a Request
data StartCrawler Source #
See: newStartCrawler
smart constructor.
Instances
Create a value of StartCrawler
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:name:StartCrawler'
, startCrawler_name
- Name of the crawler to start.
Request Lenses
startCrawler_name :: Lens' StartCrawler Text Source #
Name of the crawler to start.
Destructuring the Response
data StartCrawlerResponse Source #
See: newStartCrawlerResponse
smart constructor.
StartCrawlerResponse' | |
|
Instances
newStartCrawlerResponse Source #
Create a value of StartCrawlerResponse
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:StartCrawlerResponse'
, startCrawlerResponse_httpStatus
- The response's http status code.
Response Lenses
startCrawlerResponse_httpStatus :: Lens' StartCrawlerResponse Int Source #
The response's http status code.