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 |
Lists the knowledge bases.
This operation returns paginated results.
Synopsis
- data ListKnowledgeBases = ListKnowledgeBases' {}
- newListKnowledgeBases :: ListKnowledgeBases
- listKnowledgeBases_nextToken :: Lens' ListKnowledgeBases (Maybe Text)
- listKnowledgeBases_maxResults :: Lens' ListKnowledgeBases (Maybe Natural)
- data ListKnowledgeBasesResponse = ListKnowledgeBasesResponse' {}
- newListKnowledgeBasesResponse :: Int -> ListKnowledgeBasesResponse
- listKnowledgeBasesResponse_nextToken :: Lens' ListKnowledgeBasesResponse (Maybe Text)
- listKnowledgeBasesResponse_httpStatus :: Lens' ListKnowledgeBasesResponse Int
- listKnowledgeBasesResponse_knowledgeBaseSummaries :: Lens' ListKnowledgeBasesResponse [KnowledgeBaseSummary]
Creating a Request
data ListKnowledgeBases Source #
See: newListKnowledgeBases
smart constructor.
Instances
newListKnowledgeBases :: ListKnowledgeBases Source #
Create a value of ListKnowledgeBases
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:ListKnowledgeBases'
, listKnowledgeBases_nextToken
- The token for the next set of results. Use the value returned in the
previous response in the next request to retrieve the next set of
results.
$sel:maxResults:ListKnowledgeBases'
, listKnowledgeBases_maxResults
- The maximum number of results to return per page.
Request Lenses
listKnowledgeBases_nextToken :: Lens' ListKnowledgeBases (Maybe Text) Source #
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
listKnowledgeBases_maxResults :: Lens' ListKnowledgeBases (Maybe Natural) Source #
The maximum number of results to return per page.
Destructuring the Response
data ListKnowledgeBasesResponse Source #
See: newListKnowledgeBasesResponse
smart constructor.
ListKnowledgeBasesResponse' | |
|
Instances
newListKnowledgeBasesResponse Source #
Create a value of ListKnowledgeBasesResponse
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:ListKnowledgeBases'
, listKnowledgeBasesResponse_nextToken
- If there are additional results, this is the token for the next set of
results.
$sel:httpStatus:ListKnowledgeBasesResponse'
, listKnowledgeBasesResponse_httpStatus
- The response's http status code.
$sel:knowledgeBaseSummaries:ListKnowledgeBasesResponse'
, listKnowledgeBasesResponse_knowledgeBaseSummaries
- Information about the knowledge bases.
Response Lenses
listKnowledgeBasesResponse_nextToken :: Lens' ListKnowledgeBasesResponse (Maybe Text) Source #
If there are additional results, this is the token for the next set of results.
listKnowledgeBasesResponse_httpStatus :: Lens' ListKnowledgeBasesResponse Int Source #
The response's http status code.
listKnowledgeBasesResponse_knowledgeBaseSummaries :: Lens' ListKnowledgeBasesResponse [KnowledgeBaseSummary] Source #
Information about the knowledge bases.