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 |
Retrieves the names of all crawler resources in this Amazon Web Services account, or the resources with the specified tag. This operation allows you to see which resources are available in your account, and their names.
This operation takes the optional Tags
field, which you can use as a
filter on the response so that tagged resources can be retrieved as a
group. If you choose to use tags filtering, only resources with the tag
are retrieved.
Synopsis
- data ListCrawlers = ListCrawlers' {}
- newListCrawlers :: ListCrawlers
- listCrawlers_maxResults :: Lens' ListCrawlers (Maybe Natural)
- listCrawlers_nextToken :: Lens' ListCrawlers (Maybe Text)
- listCrawlers_tags :: Lens' ListCrawlers (Maybe (HashMap Text Text))
- data ListCrawlersResponse = ListCrawlersResponse' {
- crawlerNames :: Maybe [Text]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListCrawlersResponse :: Int -> ListCrawlersResponse
- listCrawlersResponse_crawlerNames :: Lens' ListCrawlersResponse (Maybe [Text])
- listCrawlersResponse_nextToken :: Lens' ListCrawlersResponse (Maybe Text)
- listCrawlersResponse_httpStatus :: Lens' ListCrawlersResponse Int
Creating a Request
data ListCrawlers Source #
See: newListCrawlers
smart constructor.
Instances
newListCrawlers :: ListCrawlers Source #
Create a value of ListCrawlers
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:maxResults:ListCrawlers'
, listCrawlers_maxResults
- The maximum size of a list to return.
ListCrawlers
, listCrawlers_nextToken
- A continuation token, if this is a continuation request.
$sel:tags:ListCrawlers'
, listCrawlers_tags
- Specifies to return only these tagged resources.
Request Lenses
listCrawlers_maxResults :: Lens' ListCrawlers (Maybe Natural) Source #
The maximum size of a list to return.
listCrawlers_nextToken :: Lens' ListCrawlers (Maybe Text) Source #
A continuation token, if this is a continuation request.
listCrawlers_tags :: Lens' ListCrawlers (Maybe (HashMap Text Text)) Source #
Specifies to return only these tagged resources.
Destructuring the Response
data ListCrawlersResponse Source #
See: newListCrawlersResponse
smart constructor.
ListCrawlersResponse' | |
|
Instances
newListCrawlersResponse Source #
Create a value of ListCrawlersResponse
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:crawlerNames:ListCrawlersResponse'
, listCrawlersResponse_crawlerNames
- The names of all crawlers in the account, or the crawlers with the
specified tags.
ListCrawlers
, listCrawlersResponse_nextToken
- A continuation token, if the returned list does not contain the last
metric available.
$sel:httpStatus:ListCrawlersResponse'
, listCrawlersResponse_httpStatus
- The response's http status code.
Response Lenses
listCrawlersResponse_crawlerNames :: Lens' ListCrawlersResponse (Maybe [Text]) Source #
The names of all crawlers in the account, or the crawlers with the specified tags.
listCrawlersResponse_nextToken :: Lens' ListCrawlersResponse (Maybe Text) Source #
A continuation token, if the returned list does not contain the last metric available.
listCrawlersResponse_httpStatus :: Lens' ListCrawlersResponse Int Source #
The response's http status code.