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 |
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_nextToken :: Lens' SearchContent (Maybe Text)
- searchContent_maxResults :: Lens' SearchContent (Maybe Natural)
- 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.
SearchContent' | |
|
Instances
:: 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:nextToken: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.
$sel:maxResults:SearchContent'
, searchContent_maxResults
- The maximum number of results to return per page.
$sel:knowledgeBaseId:SearchContent'
, searchContent_knowledgeBaseId
- The 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_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_maxResults :: Lens' SearchContent (Maybe Natural) Source #
The maximum number of results to return per page.
searchContent_knowledgeBaseId :: Lens' SearchContent Text Source #
The 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.
SearchContentResponse' | |
|
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:
$sel:nextToken: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.