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 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_nextToken :: Lens' ListCrawlers (Maybe Text)
- listCrawlers_maxResults :: Lens' ListCrawlers (Maybe Natural)
- listCrawlers_tags :: Lens' ListCrawlers (Maybe (HashMap Text Text))
- data ListCrawlersResponse = ListCrawlersResponse' {
- nextToken :: Maybe Text
- crawlerNames :: Maybe [Text]
- httpStatus :: Int
- newListCrawlersResponse :: Int -> ListCrawlersResponse
- listCrawlersResponse_nextToken :: Lens' ListCrawlersResponse (Maybe Text)
- listCrawlersResponse_crawlerNames :: 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:nextToken:ListCrawlers'
, listCrawlers_nextToken
- A continuation token, if this is a continuation request.
$sel:maxResults:ListCrawlers'
, listCrawlers_maxResults
- The maximum size of a list to return.
$sel:tags:ListCrawlers'
, listCrawlers_tags
- Specifies to return only these tagged resources.
Request Lenses
listCrawlers_nextToken :: Lens' ListCrawlers (Maybe Text) Source #
A continuation token, if this is a continuation request.
listCrawlers_maxResults :: Lens' ListCrawlers (Maybe Natural) Source #
The maximum size of a list to return.
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:nextToken:ListCrawlers'
, listCrawlersResponse_nextToken
- A continuation token, if the returned list does not contain the last
metric available.
$sel:crawlerNames:ListCrawlersResponse'
, listCrawlersResponse_crawlerNames
- The names of all crawlers in the account, or the crawlers with the
specified tags.
$sel:httpStatus:ListCrawlersResponse'
, listCrawlersResponse_httpStatus
- The response's http status code.
Response Lenses
listCrawlersResponse_nextToken :: Lens' ListCrawlersResponse (Maybe Text) Source #
A continuation token, if the returned list does not contain the last metric available.
listCrawlersResponse_crawlerNames :: Lens' ListCrawlersResponse (Maybe [Text]) Source #
The names of all crawlers in the account, or the crawlers with the specified tags.
listCrawlersResponse_httpStatus :: Lens' ListCrawlersResponse Int Source #
The response's http status code.