| 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 |
Amazonka.Wisdom.ListContents
Description
Lists the content.
This operation returns paginated results.
Synopsis
- data ListContents = ListContents' {}
- newListContents :: Text -> ListContents
- listContents_maxResults :: Lens' ListContents (Maybe Natural)
- listContents_nextToken :: Lens' ListContents (Maybe Text)
- 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.
Constructors
| ListContents' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> ListContents |
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:maxResults:ListContents', listContents_maxResults - The maximum number of results to return per page.
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.
ListContents, listContents_knowledgeBaseId - The identifier of the knowledge base. Can be either the ID or the ARN.
URLs cannot contain the ARN.
Request Lenses
listContents_maxResults :: Lens' ListContents (Maybe Natural) Source #
The maximum number of results to return per page.
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_knowledgeBaseId :: Lens' ListContents Text Source #
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.
Constructors
| ListContentsResponse' | |
Fields
| |
Instances
newListContentsResponse Source #
Arguments
| :: Int | |
| -> ListContentsResponse |
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:
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.