amazonka-connect-2.0: Amazon Connect Service 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.Connect.CreateVocabulary

Description

Creates a custom vocabulary associated with your Amazon Connect instance. You can set a custom vocabulary to be your default vocabulary for a given language. Contact Lens for Amazon Connect uses the default vocabulary in post-call and real-time contact analysis sessions for that language.

Synopsis

Creating a Request

data CreateVocabulary Source #

See: newCreateVocabulary smart constructor.

Constructors

CreateVocabulary' 

Fields

  • clientToken :: Maybe Text

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. If a create request is received more than once with same client token, subsequent requests return the previous response without creating a vocabulary again.

  • tags :: Maybe (HashMap Text Text)

    The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

  • instanceId :: Text

    The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

  • vocabularyName :: Text

    A unique name of the custom vocabulary.

  • languageCode :: VocabularyLanguageCode

    The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see What is Amazon Transcribe?

  • content :: Text

    The content of the custom vocabulary in plain-text format with a table of values. Each row in the table represents a word or a phrase, described with Phrase, IPA, SoundsLike, and DisplayAs fields. Separate the fields with TAB characters. The size limit is 50KB. For more information, see Create a custom vocabulary using a table.

Instances

Instances details
ToJSON CreateVocabulary Source # 
Instance details

Defined in Amazonka.Connect.CreateVocabulary

ToHeaders CreateVocabulary Source # 
Instance details

Defined in Amazonka.Connect.CreateVocabulary

ToPath CreateVocabulary Source # 
Instance details

Defined in Amazonka.Connect.CreateVocabulary

ToQuery CreateVocabulary Source # 
Instance details

Defined in Amazonka.Connect.CreateVocabulary

AWSRequest CreateVocabulary Source # 
Instance details

Defined in Amazonka.Connect.CreateVocabulary

Associated Types

type AWSResponse CreateVocabulary #

Generic CreateVocabulary Source # 
Instance details

Defined in Amazonka.Connect.CreateVocabulary

Associated Types

type Rep CreateVocabulary :: Type -> Type #

Read CreateVocabulary Source # 
Instance details

Defined in Amazonka.Connect.CreateVocabulary

Show CreateVocabulary Source # 
Instance details

Defined in Amazonka.Connect.CreateVocabulary

NFData CreateVocabulary Source # 
Instance details

Defined in Amazonka.Connect.CreateVocabulary

Methods

rnf :: CreateVocabulary -> () #

Eq CreateVocabulary Source # 
Instance details

Defined in Amazonka.Connect.CreateVocabulary

Hashable CreateVocabulary Source # 
Instance details

Defined in Amazonka.Connect.CreateVocabulary

type AWSResponse CreateVocabulary Source # 
Instance details

Defined in Amazonka.Connect.CreateVocabulary

type Rep CreateVocabulary Source # 
Instance details

Defined in Amazonka.Connect.CreateVocabulary

type Rep CreateVocabulary = D1 ('MetaData "CreateVocabulary" "Amazonka.Connect.CreateVocabulary" "amazonka-connect-2.0-IAACrecRcUS5AABe9BOFyN" 'False) (C1 ('MetaCons "CreateVocabulary'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "instanceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) :*: (S1 ('MetaSel ('Just "vocabularyName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "languageCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 VocabularyLanguageCode) :*: S1 ('MetaSel ('Just "content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newCreateVocabulary Source #

Create a value of CreateVocabulary 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:CreateVocabulary', createVocabulary_clientToken - A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. If a create request is received more than once with same client token, subsequent requests return the previous response without creating a vocabulary again.

CreateVocabulary, createVocabulary_tags - The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

CreateVocabulary, createVocabulary_instanceId - The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

CreateVocabulary, createVocabulary_vocabularyName - A unique name of the custom vocabulary.

CreateVocabulary, createVocabulary_languageCode - The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see What is Amazon Transcribe?

CreateVocabulary, createVocabulary_content - The content of the custom vocabulary in plain-text format with a table of values. Each row in the table represents a word or a phrase, described with Phrase, IPA, SoundsLike, and DisplayAs fields. Separate the fields with TAB characters. The size limit is 50KB. For more information, see Create a custom vocabulary using a table.

Request Lenses

createVocabulary_clientToken :: Lens' CreateVocabulary (Maybe Text) Source #

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. If a create request is received more than once with same client token, subsequent requests return the previous response without creating a vocabulary again.

createVocabulary_tags :: Lens' CreateVocabulary (Maybe (HashMap Text Text)) Source #

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

createVocabulary_instanceId :: Lens' CreateVocabulary Text Source #

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

createVocabulary_vocabularyName :: Lens' CreateVocabulary Text Source #

A unique name of the custom vocabulary.

createVocabulary_languageCode :: Lens' CreateVocabulary VocabularyLanguageCode Source #

The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see What is Amazon Transcribe?

createVocabulary_content :: Lens' CreateVocabulary Text Source #

The content of the custom vocabulary in plain-text format with a table of values. Each row in the table represents a word or a phrase, described with Phrase, IPA, SoundsLike, and DisplayAs fields. Separate the fields with TAB characters. The size limit is 50KB. For more information, see Create a custom vocabulary using a table.

Destructuring the Response

data CreateVocabularyResponse Source #

See: newCreateVocabularyResponse smart constructor.

Constructors

CreateVocabularyResponse' 

Fields

Instances

Instances details
Generic CreateVocabularyResponse Source # 
Instance details

Defined in Amazonka.Connect.CreateVocabulary

Associated Types

type Rep CreateVocabularyResponse :: Type -> Type #

Read CreateVocabularyResponse Source # 
Instance details

Defined in Amazonka.Connect.CreateVocabulary

Show CreateVocabularyResponse Source # 
Instance details

Defined in Amazonka.Connect.CreateVocabulary

NFData CreateVocabularyResponse Source # 
Instance details

Defined in Amazonka.Connect.CreateVocabulary

Eq CreateVocabularyResponse Source # 
Instance details

Defined in Amazonka.Connect.CreateVocabulary

type Rep CreateVocabularyResponse Source # 
Instance details

Defined in Amazonka.Connect.CreateVocabulary

type Rep CreateVocabularyResponse = D1 ('MetaData "CreateVocabularyResponse" "Amazonka.Connect.CreateVocabulary" "amazonka-connect-2.0-IAACrecRcUS5AABe9BOFyN" 'False) (C1 ('MetaCons "CreateVocabularyResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "vocabularyArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "vocabularyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 VocabularyState))))

newCreateVocabularyResponse Source #

Create a value of CreateVocabularyResponse 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:httpStatus:CreateVocabularyResponse', createVocabularyResponse_httpStatus - The response's http status code.

$sel:vocabularyArn:CreateVocabularyResponse', createVocabularyResponse_vocabularyArn - The Amazon Resource Name (ARN) of the custom vocabulary.

CreateVocabularyResponse, createVocabularyResponse_vocabularyId - The identifier of the custom vocabulary.

CreateVocabularyResponse, createVocabularyResponse_state - The current state of the custom vocabulary.

Response Lenses

createVocabularyResponse_vocabularyArn :: Lens' CreateVocabularyResponse Text Source #

The Amazon Resource Name (ARN) of the custom vocabulary.