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 content.
This operation returns paginated results.
Synopsis
- data ListContents = ListContents' {}
- newListContents :: Text -> ListContents
- listContents_nextToken :: Lens' ListContents (Maybe Text)
- listContents_maxResults :: Lens' ListContents (Maybe Natural)
- listContents_knowledgeBaseId :: Lens' ListContents Text
- data ListContentsResponse = ListContentsResponse' {}
- newListContentsResponse :: Int -> ListContentsResponse
- listContentsResponse_nextToken :: Lens' ListContentsResponse (Maybe Text)
- listContentsResponse_httpStatus :: Lens' ListContentsResponse Int
- listContentsResponse_contentSummaries :: Lens' ListContentsResponse [ContentSummary]
Creating a Request
data ListContents Source #
See: newListContents
smart constructor.
ListContents' | |
|
Instances
Create a value of ListContents
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:ListContents'
, listContents_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:ListContents'
, listContents_maxResults
- The maximum number of results to return per page.
$sel:knowledgeBaseId:ListContents'
, listContents_knowledgeBaseId
- The the identifier of the knowledge base. Can be either the ID or the
ARN. URLs cannot contain the ARN.
Request Lenses
listContents_nextToken :: Lens' ListContents (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.
listContents_maxResults :: Lens' ListContents (Maybe Natural) Source #
The maximum number of results to return per page.
listContents_knowledgeBaseId :: Lens' ListContents Text Source #
The the identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
Destructuring the Response
data ListContentsResponse Source #
See: newListContentsResponse
smart constructor.
ListContentsResponse' | |
|
Instances
newListContentsResponse Source #
Create a value of ListContentsResponse
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:ListContents'
, listContentsResponse_nextToken
- If there are additional results, this is the token for the next set of
results.
$sel:httpStatus:ListContentsResponse'
, listContentsResponse_httpStatus
- The response's http status code.
$sel:contentSummaries:ListContentsResponse'
, listContentsResponse_contentSummaries
- Information about the content.
Response Lenses
listContentsResponse_nextToken :: Lens' ListContentsResponse (Maybe Text) Source #
If there are additional results, this is the token for the next set of results.
listContentsResponse_httpStatus :: Lens' ListContentsResponse Int Source #
The response's http status code.
listContentsResponse_contentSummaries :: Lens' ListContentsResponse [ContentSummary] Source #
Information about the content.