| 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.SearchContent
Description
Searches for content in a specified knowledge base. Can be used to get a specific content resource by its name.
This operation returns paginated results.
Synopsis
- data SearchContent = SearchContent' {}
- newSearchContent :: Text -> SearchExpression -> SearchContent
- searchContent_maxResults :: Lens' SearchContent (Maybe Natural)
- searchContent_nextToken :: Lens' SearchContent (Maybe Text)
- searchContent_knowledgeBaseId :: Lens' SearchContent Text
- searchContent_searchExpression :: Lens' SearchContent SearchExpression
- data SearchContentResponse = SearchContentResponse' {}
- newSearchContentResponse :: Int -> SearchContentResponse
- searchContentResponse_nextToken :: Lens' SearchContentResponse (Maybe Text)
- searchContentResponse_httpStatus :: Lens' SearchContentResponse Int
- searchContentResponse_contentSummaries :: Lens' SearchContentResponse [ContentSummary]
Creating a Request
data SearchContent Source #
See: newSearchContent smart constructor.
Constructors
| SearchContent' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> SearchExpression | |
| -> SearchContent |
Create a value of SearchContent 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:SearchContent', searchContent_maxResults - The maximum number of results to return per page.
SearchContent, searchContent_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.
SearchContent, searchContent_knowledgeBaseId - The identifier of the knowledge base. Can be either the ID or the ARN.
URLs cannot contain the ARN.
$sel:searchExpression:SearchContent', searchContent_searchExpression - The search expression to filter results.
Request Lenses
searchContent_maxResults :: Lens' SearchContent (Maybe Natural) Source #
The maximum number of results to return per page.
searchContent_nextToken :: Lens' SearchContent (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.
searchContent_knowledgeBaseId :: Lens' SearchContent Text Source #
The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
searchContent_searchExpression :: Lens' SearchContent SearchExpression Source #
The search expression to filter results.
Destructuring the Response
data SearchContentResponse Source #
See: newSearchContentResponse smart constructor.
Constructors
| SearchContentResponse' | |
Fields
| |
Instances
newSearchContentResponse Source #
Create a value of SearchContentResponse 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:
SearchContent, searchContentResponse_nextToken - If there are additional results, this is the token for the next set of
results.
$sel:httpStatus:SearchContentResponse', searchContentResponse_httpStatus - The response's http status code.
$sel:contentSummaries:SearchContentResponse', searchContentResponse_contentSummaries - Summary information about the content.
Response Lenses
searchContentResponse_nextToken :: Lens' SearchContentResponse (Maybe Text) Source #
If there are additional results, this is the token for the next set of results.
searchContentResponse_httpStatus :: Lens' SearchContentResponse Int Source #
The response's http status code.
searchContentResponse_contentSummaries :: Lens' SearchContentResponse [ContentSummary] Source #
Summary information about the content.