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 |
Gets a list of FAQ lists associated with an index.
Synopsis
- data ListFaqs = ListFaqs' {}
- newListFaqs :: Text -> ListFaqs
- listFaqs_maxResults :: Lens' ListFaqs (Maybe Natural)
- listFaqs_nextToken :: Lens' ListFaqs (Maybe Text)
- listFaqs_indexId :: Lens' ListFaqs Text
- data ListFaqsResponse = ListFaqsResponse' {
- faqSummaryItems :: Maybe [FaqSummary]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListFaqsResponse :: Int -> ListFaqsResponse
- listFaqsResponse_faqSummaryItems :: Lens' ListFaqsResponse (Maybe [FaqSummary])
- listFaqsResponse_nextToken :: Lens' ListFaqsResponse (Maybe Text)
- listFaqsResponse_httpStatus :: Lens' ListFaqsResponse Int
Creating a Request
See: newListFaqs
smart constructor.
ListFaqs' | |
|
Instances
Create a value of ListFaqs
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:
ListFaqs
, listFaqs_maxResults
- The maximum number of FAQs to return in the response. If there are fewer
results in the list, this response contains only the actual results.
ListFaqs
, listFaqs_nextToken
- If the previous response was incomplete (because there is more data to
retrieve), Amazon Kendra returns a pagination token in the response. You
can use this pagination token to retrieve the next set of FAQs.
$sel:indexId:ListFaqs'
, listFaqs_indexId
- The index that contains the FAQ lists.
Request Lenses
listFaqs_maxResults :: Lens' ListFaqs (Maybe Natural) Source #
The maximum number of FAQs to return in the response. If there are fewer results in the list, this response contains only the actual results.
listFaqs_nextToken :: Lens' ListFaqs (Maybe Text) Source #
If the previous response was incomplete (because there is more data to retrieve), Amazon Kendra returns a pagination token in the response. You can use this pagination token to retrieve the next set of FAQs.
Destructuring the Response
data ListFaqsResponse Source #
See: newListFaqsResponse
smart constructor.
ListFaqsResponse' | |
|
Instances
Create a value of ListFaqsResponse
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:faqSummaryItems:ListFaqsResponse'
, listFaqsResponse_faqSummaryItems
- information about the FAQs associated with the specified index.
ListFaqs
, listFaqsResponse_nextToken
- If the response is truncated, Amazon Kendra returns this token that you
can use in the subsequent request to retrieve the next set of FAQs.
$sel:httpStatus:ListFaqsResponse'
, listFaqsResponse_httpStatus
- The response's http status code.
Response Lenses
listFaqsResponse_faqSummaryItems :: Lens' ListFaqsResponse (Maybe [FaqSummary]) Source #
information about the FAQs associated with the specified index.
listFaqsResponse_nextToken :: Lens' ListFaqsResponse (Maybe Text) Source #
If the response is truncated, Amazon Kendra returns this token that you can use in the subsequent request to retrieve the next set of FAQs.
listFaqsResponse_httpStatus :: Lens' ListFaqsResponse Int Source #
The response's http status code.