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.ListThesauri

Description

Lists the thesauri for an index.

Synopsis

Creating a Request

data ListThesauri Source #

See: newListThesauri smart constructor.

Constructors

ListThesauri' 

Fields

  • maxResults :: Maybe Natural

    The maximum number of thesauri to return.

  • 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 thesauri (ThesaurusSummaryItems).

  • indexId :: Text

    The identifier of the index with one or more thesauri.

Instances

Instances details
ToJSON ListThesauri Source # 
Instance details

Defined in Amazonka.Kendra.ListThesauri

ToHeaders ListThesauri Source # 
Instance details

Defined in Amazonka.Kendra.ListThesauri

ToPath ListThesauri Source # 
Instance details

Defined in Amazonka.Kendra.ListThesauri

ToQuery ListThesauri Source # 
Instance details

Defined in Amazonka.Kendra.ListThesauri

AWSRequest ListThesauri Source # 
Instance details

Defined in Amazonka.Kendra.ListThesauri

Associated Types

type AWSResponse ListThesauri #

Generic ListThesauri Source # 
Instance details

Defined in Amazonka.Kendra.ListThesauri

Associated Types

type Rep ListThesauri :: Type -> Type #

Read ListThesauri Source # 
Instance details

Defined in Amazonka.Kendra.ListThesauri

Show ListThesauri Source # 
Instance details

Defined in Amazonka.Kendra.ListThesauri

NFData ListThesauri Source # 
Instance details

Defined in Amazonka.Kendra.ListThesauri

Methods

rnf :: ListThesauri -> () #

Eq ListThesauri Source # 
Instance details

Defined in Amazonka.Kendra.ListThesauri

Hashable ListThesauri Source # 
Instance details

Defined in Amazonka.Kendra.ListThesauri

type AWSResponse ListThesauri Source # 
Instance details

Defined in Amazonka.Kendra.ListThesauri

type Rep ListThesauri Source # 
Instance details

Defined in Amazonka.Kendra.ListThesauri

type Rep ListThesauri = D1 ('MetaData "ListThesauri" "Amazonka.Kendra.ListThesauri" "amazonka-kendra-2.0-IHloXAWlYIS8YTp1gXe6J" 'False) (C1 ('MetaCons "ListThesauri'" '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))))

newListThesauri Source #

Create a value of ListThesauri 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:

ListThesauri, listThesauri_maxResults - The maximum number of thesauri to return.

ListThesauri, listThesauri_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 thesauri (ThesaurusSummaryItems).

$sel:indexId:ListThesauri', listThesauri_indexId - The identifier of the index with one or more thesauri.

Request Lenses

listThesauri_maxResults :: Lens' ListThesauri (Maybe Natural) Source #

The maximum number of thesauri to return.

listThesauri_nextToken :: Lens' ListThesauri (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 thesauri (ThesaurusSummaryItems).

listThesauri_indexId :: Lens' ListThesauri Text Source #

The identifier of the index with one or more thesauri.

Destructuring the Response

data ListThesauriResponse Source #

See: newListThesauriResponse smart constructor.

Constructors

ListThesauriResponse' 

Fields

Instances

Instances details
Generic ListThesauriResponse Source # 
Instance details

Defined in Amazonka.Kendra.ListThesauri

Associated Types

type Rep ListThesauriResponse :: Type -> Type #

Read ListThesauriResponse Source # 
Instance details

Defined in Amazonka.Kendra.ListThesauri

Show ListThesauriResponse Source # 
Instance details

Defined in Amazonka.Kendra.ListThesauri

NFData ListThesauriResponse Source # 
Instance details

Defined in Amazonka.Kendra.ListThesauri

Methods

rnf :: ListThesauriResponse -> () #

Eq ListThesauriResponse Source # 
Instance details

Defined in Amazonka.Kendra.ListThesauri

type Rep ListThesauriResponse Source # 
Instance details

Defined in Amazonka.Kendra.ListThesauri

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

newListThesauriResponse Source #

Create a value of ListThesauriResponse 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:

ListThesauri, listThesauriResponse_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 thesauri.

$sel:thesaurusSummaryItems:ListThesauriResponse', listThesauriResponse_thesaurusSummaryItems - An array of summary information for a thesaurus or multiple thesauri.

$sel:httpStatus:ListThesauriResponse', listThesauriResponse_httpStatus - The response's http status code.

Response Lenses

listThesauriResponse_nextToken :: Lens' ListThesauriResponse (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 thesauri.

listThesauriResponse_thesaurusSummaryItems :: Lens' ListThesauriResponse (Maybe [ThesaurusSummary]) Source #

An array of summary information for a thesaurus or multiple thesauri.