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 |
Retrieves metadata for a specified crawler.
Synopsis
- data GetCrawler = GetCrawler' {}
- newGetCrawler :: Text -> GetCrawler
- getCrawler_name :: Lens' GetCrawler Text
- data GetCrawlerResponse = GetCrawlerResponse' {
- crawler :: Maybe Crawler
- httpStatus :: Int
- newGetCrawlerResponse :: Int -> GetCrawlerResponse
- getCrawlerResponse_crawler :: Lens' GetCrawlerResponse (Maybe Crawler)
- getCrawlerResponse_httpStatus :: Lens' GetCrawlerResponse Int
Creating a Request
data GetCrawler Source #
See: newGetCrawler
smart constructor.
Instances
Create a value of GetCrawler
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:GetCrawler'
, getCrawler_name
- The name of the crawler to retrieve metadata for.
Request Lenses
getCrawler_name :: Lens' GetCrawler Text Source #
The name of the crawler to retrieve metadata for.
Destructuring the Response
data GetCrawlerResponse Source #
See: newGetCrawlerResponse
smart constructor.
GetCrawlerResponse' | |
|
Instances
newGetCrawlerResponse Source #
Create a value of GetCrawlerResponse
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:crawler:GetCrawlerResponse'
, getCrawlerResponse_crawler
- The metadata for the specified crawler.
$sel:httpStatus:GetCrawlerResponse'
, getCrawlerResponse_httpStatus
- The response's http status code.
Response Lenses
getCrawlerResponse_crawler :: Lens' GetCrawlerResponse (Maybe Crawler) Source #
The metadata for the specified crawler.
getCrawlerResponse_httpStatus :: Lens' GetCrawlerResponse Int Source #
The response's http status code.