amazonka-lexv2-models-2.0: Amazon Lex Model Building V2 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.LexV2Models.Types.BotLocaleImportSpecification

Description

 
Synopsis

Documentation

data BotLocaleImportSpecification Source #

Provides the bot locale parameters required for importing a bot locale.

See: newBotLocaleImportSpecification smart constructor.

Constructors

BotLocaleImportSpecification' 

Fields

  • nluIntentConfidenceThreshold :: Maybe Double

    Determines the threshold where Amazon Lex will insert the AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or both when returning alternative intents. AMAZON.FallbackIntent and AMAZON.KendraSearchIntent are only inserted if they are configured for the bot.

    For example, suppose a bot is configured with the confidence threshold of 0.80 and the AMAZON.FallbackIntent. Amazon Lex returns three alternative intents with the following confidence scores: IntentA (0.70), IntentB (0.60), IntentC (0.50). The response from the PostText operation would be:

    • AMAZON.FallbackIntent
    • IntentA
    • IntentB
    • IntentC
  • voiceSettings :: Maybe VoiceSettings
     
  • botId :: Text

    The identifier of the bot to import the locale to.

  • botVersion :: Text

    The version of the bot to import the locale to. This can only be the DRAFT version of the bot.

  • localeId :: Text

    The identifier of the language and locale that the bot will be used in. The string must match one of the supported locales. All of the intents, slot types, and slots used in the bot must have the same locale. For more information, see Supported languages.

Instances

Instances details
FromJSON BotLocaleImportSpecification Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.BotLocaleImportSpecification

ToJSON BotLocaleImportSpecification Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.BotLocaleImportSpecification

Generic BotLocaleImportSpecification Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.BotLocaleImportSpecification

Associated Types

type Rep BotLocaleImportSpecification :: Type -> Type #

Read BotLocaleImportSpecification Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.BotLocaleImportSpecification

Show BotLocaleImportSpecification Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.BotLocaleImportSpecification

NFData BotLocaleImportSpecification Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.BotLocaleImportSpecification

Eq BotLocaleImportSpecification Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.BotLocaleImportSpecification

Hashable BotLocaleImportSpecification Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.BotLocaleImportSpecification

type Rep BotLocaleImportSpecification Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.BotLocaleImportSpecification

type Rep BotLocaleImportSpecification = D1 ('MetaData "BotLocaleImportSpecification" "Amazonka.LexV2Models.Types.BotLocaleImportSpecification" "amazonka-lexv2-models-2.0-5mExjJXBfuO6j0ascNcayE" 'False) (C1 ('MetaCons "BotLocaleImportSpecification'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nluIntentConfidenceThreshold") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "voiceSettings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe VoiceSettings))) :*: (S1 ('MetaSel ('Just "botId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "botVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "localeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newBotLocaleImportSpecification Source #

Create a value of BotLocaleImportSpecification 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:nluIntentConfidenceThreshold:BotLocaleImportSpecification', botLocaleImportSpecification_nluIntentConfidenceThreshold - Determines the threshold where Amazon Lex will insert the AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or both when returning alternative intents. AMAZON.FallbackIntent and AMAZON.KendraSearchIntent are only inserted if they are configured for the bot.

For example, suppose a bot is configured with the confidence threshold of 0.80 and the AMAZON.FallbackIntent. Amazon Lex returns three alternative intents with the following confidence scores: IntentA (0.70), IntentB (0.60), IntentC (0.50). The response from the PostText operation would be:

  • AMAZON.FallbackIntent
  • IntentA
  • IntentB
  • IntentC

$sel:voiceSettings:BotLocaleImportSpecification', botLocaleImportSpecification_voiceSettings - Undocumented member.

$sel:botId:BotLocaleImportSpecification', botLocaleImportSpecification_botId - The identifier of the bot to import the locale to.

$sel:botVersion:BotLocaleImportSpecification', botLocaleImportSpecification_botVersion - The version of the bot to import the locale to. This can only be the DRAFT version of the bot.

$sel:localeId:BotLocaleImportSpecification', botLocaleImportSpecification_localeId - The identifier of the language and locale that the bot will be used in. The string must match one of the supported locales. All of the intents, slot types, and slots used in the bot must have the same locale. For more information, see Supported languages.

botLocaleImportSpecification_nluIntentConfidenceThreshold :: Lens' BotLocaleImportSpecification (Maybe Double) Source #

Determines the threshold where Amazon Lex will insert the AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or both when returning alternative intents. AMAZON.FallbackIntent and AMAZON.KendraSearchIntent are only inserted if they are configured for the bot.

For example, suppose a bot is configured with the confidence threshold of 0.80 and the AMAZON.FallbackIntent. Amazon Lex returns three alternative intents with the following confidence scores: IntentA (0.70), IntentB (0.60), IntentC (0.50). The response from the PostText operation would be:

  • AMAZON.FallbackIntent
  • IntentA
  • IntentB
  • IntentC

botLocaleImportSpecification_botId :: Lens' BotLocaleImportSpecification Text Source #

The identifier of the bot to import the locale to.

botLocaleImportSpecification_botVersion :: Lens' BotLocaleImportSpecification Text Source #

The version of the bot to import the locale to. This can only be the DRAFT version of the bot.

botLocaleImportSpecification_localeId :: Lens' BotLocaleImportSpecification Text Source #

The identifier of the language and locale that the bot will be used in. The string must match one of the supported locales. All of the intents, slot types, and slots used in the bot must have the same locale. For more information, see Supported languages.