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 |
Performs a manual search against the specified assistant. To retrieve recommendations for an assistant, use GetRecommendations.
This operation returns paginated results.
Synopsis
- data QueryAssistant = QueryAssistant' {}
- newQueryAssistant :: Text -> Text -> QueryAssistant
- queryAssistant_nextToken :: Lens' QueryAssistant (Maybe Text)
- queryAssistant_maxResults :: Lens' QueryAssistant (Maybe Natural)
- queryAssistant_assistantId :: Lens' QueryAssistant Text
- queryAssistant_queryText :: Lens' QueryAssistant Text
- data QueryAssistantResponse = QueryAssistantResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- results :: [ResultData]
- newQueryAssistantResponse :: Int -> QueryAssistantResponse
- queryAssistantResponse_nextToken :: Lens' QueryAssistantResponse (Maybe Text)
- queryAssistantResponse_httpStatus :: Lens' QueryAssistantResponse Int
- queryAssistantResponse_results :: Lens' QueryAssistantResponse [ResultData]
Creating a Request
data QueryAssistant Source #
See: newQueryAssistant
smart constructor.
QueryAssistant' | |
|
Instances
Create a value of QueryAssistant
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:QueryAssistant'
, queryAssistant_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:QueryAssistant'
, queryAssistant_maxResults
- The maximum number of results to return per page.
$sel:assistantId:QueryAssistant'
, queryAssistant_assistantId
- The identifier of the Wisdom assistant. Can be either the ID or the ARN.
URLs cannot contain the ARN.
$sel:queryText:QueryAssistant'
, queryAssistant_queryText
- The text to search for.
Request Lenses
queryAssistant_nextToken :: Lens' QueryAssistant (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.
queryAssistant_maxResults :: Lens' QueryAssistant (Maybe Natural) Source #
The maximum number of results to return per page.
queryAssistant_assistantId :: Lens' QueryAssistant Text Source #
The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
queryAssistant_queryText :: Lens' QueryAssistant Text Source #
The text to search for.
Destructuring the Response
data QueryAssistantResponse Source #
See: newQueryAssistantResponse
smart constructor.
QueryAssistantResponse' | |
|
Instances
newQueryAssistantResponse Source #
Create a value of QueryAssistantResponse
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:QueryAssistant'
, queryAssistantResponse_nextToken
- If there are additional results, this is the token for the next set of
results.
$sel:httpStatus:QueryAssistantResponse'
, queryAssistantResponse_httpStatus
- The response's http status code.
$sel:results:QueryAssistantResponse'
, queryAssistantResponse_results
- The results of the query.
Response Lenses
queryAssistantResponse_nextToken :: Lens' QueryAssistantResponse (Maybe Text) Source #
If there are additional results, this is the token for the next set of results.
queryAssistantResponse_httpStatus :: Lens' QueryAssistantResponse Int Source #
The response's http status code.
queryAssistantResponse_results :: Lens' QueryAssistantResponse [ResultData] Source #
The results of the query.