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 |
Lists the knowledge bases.
This operation returns paginated results.
Synopsis
- data ListKnowledgeBases = ListKnowledgeBases' {}
- newListKnowledgeBases :: ListKnowledgeBases
- listKnowledgeBases_maxResults :: Lens' ListKnowledgeBases (Maybe Natural)
- listKnowledgeBases_nextToken :: Lens' ListKnowledgeBases (Maybe Text)
- 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:maxResults:ListKnowledgeBases'
, listKnowledgeBases_maxResults
- The maximum number of results to return per page.
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.
Request Lenses
listKnowledgeBases_maxResults :: Lens' ListKnowledgeBases (Maybe Natural) Source #
The maximum number of results to return per page.
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.
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:
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.