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

Description

Creates a thesaurus for an index. The thesaurus contains a list of synonyms in Solr format.

For an example of adding a thesaurus file to an index, see Adding custom synonyms to an index.

Synopsis

Creating a Request

data CreateThesaurus Source #

See: newCreateThesaurus smart constructor.

Constructors

CreateThesaurus' 

Fields

  • clientToken :: Maybe Text

    A token that you provide to identify the request to create a thesaurus. Multiple calls to the CreateThesaurus API with the same client token will create only one thesaurus.

  • description :: Maybe Text

    A description for the thesaurus.

  • tags :: Maybe [Tag]

    A list of key-value pairs that identify the thesaurus. You can use the tags to identify and organize your resources and to control access to resources.

  • indexId :: Text

    The identifier of the index for the thesaurus.

  • name :: Text

    A name for the thesaurus.

  • roleArn :: Text

    An IAM role that gives Amazon Kendra permissions to access thesaurus file specified in SourceS3Path.

  • sourceS3Path :: S3Path

    The path to the thesaurus file in S3.

Instances

Instances details
ToJSON CreateThesaurus Source # 
Instance details

Defined in Amazonka.Kendra.CreateThesaurus

ToHeaders CreateThesaurus Source # 
Instance details

Defined in Amazonka.Kendra.CreateThesaurus

ToPath CreateThesaurus Source # 
Instance details

Defined in Amazonka.Kendra.CreateThesaurus

ToQuery CreateThesaurus Source # 
Instance details

Defined in Amazonka.Kendra.CreateThesaurus

AWSRequest CreateThesaurus Source # 
Instance details

Defined in Amazonka.Kendra.CreateThesaurus

Associated Types

type AWSResponse CreateThesaurus #

Generic CreateThesaurus Source # 
Instance details

Defined in Amazonka.Kendra.CreateThesaurus

Associated Types

type Rep CreateThesaurus :: Type -> Type #

Read CreateThesaurus Source # 
Instance details

Defined in Amazonka.Kendra.CreateThesaurus

Show CreateThesaurus Source # 
Instance details

Defined in Amazonka.Kendra.CreateThesaurus

NFData CreateThesaurus Source # 
Instance details

Defined in Amazonka.Kendra.CreateThesaurus

Methods

rnf :: CreateThesaurus -> () #

Eq CreateThesaurus Source # 
Instance details

Defined in Amazonka.Kendra.CreateThesaurus

Hashable CreateThesaurus Source # 
Instance details

Defined in Amazonka.Kendra.CreateThesaurus

type AWSResponse CreateThesaurus Source # 
Instance details

Defined in Amazonka.Kendra.CreateThesaurus

type Rep CreateThesaurus Source # 
Instance details

Defined in Amazonka.Kendra.CreateThesaurus

newCreateThesaurus Source #

Create a value of CreateThesaurus 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:clientToken:CreateThesaurus', createThesaurus_clientToken - A token that you provide to identify the request to create a thesaurus. Multiple calls to the CreateThesaurus API with the same client token will create only one thesaurus.

$sel:description:CreateThesaurus', createThesaurus_description - A description for the thesaurus.

$sel:tags:CreateThesaurus', createThesaurus_tags - A list of key-value pairs that identify the thesaurus. You can use the tags to identify and organize your resources and to control access to resources.

$sel:indexId:CreateThesaurus', createThesaurus_indexId - The identifier of the index for the thesaurus.

CreateThesaurus, createThesaurus_name - A name for the thesaurus.

CreateThesaurus, createThesaurus_roleArn - An IAM role that gives Amazon Kendra permissions to access thesaurus file specified in SourceS3Path.

$sel:sourceS3Path:CreateThesaurus', createThesaurus_sourceS3Path - The path to the thesaurus file in S3.

Request Lenses

createThesaurus_clientToken :: Lens' CreateThesaurus (Maybe Text) Source #

A token that you provide to identify the request to create a thesaurus. Multiple calls to the CreateThesaurus API with the same client token will create only one thesaurus.

createThesaurus_description :: Lens' CreateThesaurus (Maybe Text) Source #

A description for the thesaurus.

createThesaurus_tags :: Lens' CreateThesaurus (Maybe [Tag]) Source #

A list of key-value pairs that identify the thesaurus. You can use the tags to identify and organize your resources and to control access to resources.

createThesaurus_indexId :: Lens' CreateThesaurus Text Source #

The identifier of the index for the thesaurus.

createThesaurus_roleArn :: Lens' CreateThesaurus Text Source #

An IAM role that gives Amazon Kendra permissions to access thesaurus file specified in SourceS3Path.

createThesaurus_sourceS3Path :: Lens' CreateThesaurus S3Path Source #

The path to the thesaurus file in S3.

Destructuring the Response

data CreateThesaurusResponse Source #

See: newCreateThesaurusResponse smart constructor.

Constructors

CreateThesaurusResponse' 

Fields

Instances

Instances details
Generic CreateThesaurusResponse Source # 
Instance details

Defined in Amazonka.Kendra.CreateThesaurus

Associated Types

type Rep CreateThesaurusResponse :: Type -> Type #

Read CreateThesaurusResponse Source # 
Instance details

Defined in Amazonka.Kendra.CreateThesaurus

Show CreateThesaurusResponse Source # 
Instance details

Defined in Amazonka.Kendra.CreateThesaurus

NFData CreateThesaurusResponse Source # 
Instance details

Defined in Amazonka.Kendra.CreateThesaurus

Methods

rnf :: CreateThesaurusResponse -> () #

Eq CreateThesaurusResponse Source # 
Instance details

Defined in Amazonka.Kendra.CreateThesaurus

type Rep CreateThesaurusResponse Source # 
Instance details

Defined in Amazonka.Kendra.CreateThesaurus

type Rep CreateThesaurusResponse = D1 ('MetaData "CreateThesaurusResponse" "Amazonka.Kendra.CreateThesaurus" "amazonka-kendra-2.0-IHloXAWlYIS8YTp1gXe6J" 'False) (C1 ('MetaCons "CreateThesaurusResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateThesaurusResponse Source #

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

CreateThesaurusResponse, createThesaurusResponse_id - The identifier of the thesaurus.

$sel:httpStatus:CreateThesaurusResponse', createThesaurusResponse_httpStatus - The response's http status code.

Response Lenses