amazonka-kendra-2.0: Amazon KendraFrontendService SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Kendra.ListFaqs

Description

Gets a list of FAQ lists associated with an index.

Synopsis

Creating a Request

data ListFaqs Source #

See: newListFaqs smart constructor.

Constructors

ListFaqs' 

Fields

  • maxResults :: Maybe Natural

    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.

  • nextToken :: Maybe Text

    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.

  • indexId :: Text

    The index that contains the FAQ lists.

Instances

Instances details
ToJSON ListFaqs Source # 
Instance details

Defined in Amazonka.Kendra.ListFaqs

ToHeaders ListFaqs Source # 
Instance details

Defined in Amazonka.Kendra.ListFaqs

Methods

toHeaders :: ListFaqs -> [Header] #

ToPath ListFaqs Source # 
Instance details

Defined in Amazonka.Kendra.ListFaqs

ToQuery ListFaqs Source # 
Instance details

Defined in Amazonka.Kendra.ListFaqs

AWSRequest ListFaqs Source # 
Instance details

Defined in Amazonka.Kendra.ListFaqs

Associated Types

type AWSResponse ListFaqs #

Generic ListFaqs Source # 
Instance details

Defined in Amazonka.Kendra.ListFaqs

Associated Types

type Rep ListFaqs :: Type -> Type #

Methods

from :: ListFaqs -> Rep ListFaqs x #

to :: Rep ListFaqs x -> ListFaqs #

Read ListFaqs Source # 
Instance details

Defined in Amazonka.Kendra.ListFaqs

Show ListFaqs Source # 
Instance details

Defined in Amazonka.Kendra.ListFaqs

NFData ListFaqs Source # 
Instance details

Defined in Amazonka.Kendra.ListFaqs

Methods

rnf :: ListFaqs -> () #

Eq ListFaqs Source # 
Instance details

Defined in Amazonka.Kendra.ListFaqs

Hashable ListFaqs Source # 
Instance details

Defined in Amazonka.Kendra.ListFaqs

Methods

hashWithSalt :: Int -> ListFaqs -> Int #

hash :: ListFaqs -> Int #

type AWSResponse ListFaqs Source # 
Instance details

Defined in Amazonka.Kendra.ListFaqs

type Rep ListFaqs Source # 
Instance details

Defined in Amazonka.Kendra.ListFaqs

type Rep ListFaqs = D1 ('MetaData "ListFaqs" "Amazonka.Kendra.ListFaqs" "amazonka-kendra-2.0-IHloXAWlYIS8YTp1gXe6J" 'False) (C1 ('MetaCons "ListFaqs'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "indexId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newListFaqs Source #

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.

listFaqs_indexId :: Lens' ListFaqs Text Source #

The index that contains the FAQ lists.

Destructuring the Response

data ListFaqsResponse Source #

See: newListFaqsResponse smart constructor.

Constructors

ListFaqsResponse' 

Fields

  • faqSummaryItems :: Maybe [FaqSummary]

    information about the FAQs associated with the specified index.

  • nextToken :: Maybe Text

    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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListFaqsResponse Source # 
Instance details

Defined in Amazonka.Kendra.ListFaqs

Associated Types

type Rep ListFaqsResponse :: Type -> Type #

Read ListFaqsResponse Source # 
Instance details

Defined in Amazonka.Kendra.ListFaqs

Show ListFaqsResponse Source # 
Instance details

Defined in Amazonka.Kendra.ListFaqs

NFData ListFaqsResponse Source # 
Instance details

Defined in Amazonka.Kendra.ListFaqs

Methods

rnf :: ListFaqsResponse -> () #

Eq ListFaqsResponse Source # 
Instance details

Defined in Amazonka.Kendra.ListFaqs

type Rep ListFaqsResponse Source # 
Instance details

Defined in Amazonka.Kendra.ListFaqs

type Rep ListFaqsResponse = D1 ('MetaData "ListFaqsResponse" "Amazonka.Kendra.ListFaqs" "amazonka-kendra-2.0-IHloXAWlYIS8YTp1gXe6J" 'False) (C1 ('MetaCons "ListFaqsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "faqSummaryItems") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [FaqSummary])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListFaqsResponse Source #

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.