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

Description

Builds a bot, its intents, and its slot types into a specific locale. A bot can be built into multiple locales. At runtime the locale is used to choose a specific build of the bot.

Synopsis

Creating a Request

data BuildBotLocale Source #

See: newBuildBotLocale smart constructor.

Constructors

BuildBotLocale' 

Fields

  • botId :: Text

    The identifier of the bot to build. The identifier is returned in the response from the CreateBot operation.

  • botVersion :: Text

    The version of the bot to build. 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
ToJSON BuildBotLocale Source # 
Instance details

Defined in Amazonka.LexV2Models.BuildBotLocale

ToHeaders BuildBotLocale Source # 
Instance details

Defined in Amazonka.LexV2Models.BuildBotLocale

ToPath BuildBotLocale Source # 
Instance details

Defined in Amazonka.LexV2Models.BuildBotLocale

ToQuery BuildBotLocale Source # 
Instance details

Defined in Amazonka.LexV2Models.BuildBotLocale

AWSRequest BuildBotLocale Source # 
Instance details

Defined in Amazonka.LexV2Models.BuildBotLocale

Associated Types

type AWSResponse BuildBotLocale #

Generic BuildBotLocale Source # 
Instance details

Defined in Amazonka.LexV2Models.BuildBotLocale

Associated Types

type Rep BuildBotLocale :: Type -> Type #

Read BuildBotLocale Source # 
Instance details

Defined in Amazonka.LexV2Models.BuildBotLocale

Show BuildBotLocale Source # 
Instance details

Defined in Amazonka.LexV2Models.BuildBotLocale

NFData BuildBotLocale Source # 
Instance details

Defined in Amazonka.LexV2Models.BuildBotLocale

Methods

rnf :: BuildBotLocale -> () #

Eq BuildBotLocale Source # 
Instance details

Defined in Amazonka.LexV2Models.BuildBotLocale

Hashable BuildBotLocale Source # 
Instance details

Defined in Amazonka.LexV2Models.BuildBotLocale

type AWSResponse BuildBotLocale Source # 
Instance details

Defined in Amazonka.LexV2Models.BuildBotLocale

type Rep BuildBotLocale Source # 
Instance details

Defined in Amazonka.LexV2Models.BuildBotLocale

type Rep BuildBotLocale = D1 ('MetaData "BuildBotLocale" "Amazonka.LexV2Models.BuildBotLocale" "amazonka-lexv2-models-2.0-5mExjJXBfuO6j0ascNcayE" 'False) (C1 ('MetaCons "BuildBotLocale'" 'PrefixI 'True) (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))))

newBuildBotLocale Source #

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

BuildBotLocale, buildBotLocale_botId - The identifier of the bot to build. The identifier is returned in the response from the CreateBot operation.

BuildBotLocale, buildBotLocale_botVersion - The version of the bot to build. This can only be the draft version of the bot.

BuildBotLocale, buildBotLocale_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.

Request Lenses

buildBotLocale_botId :: Lens' BuildBotLocale Text Source #

The identifier of the bot to build. The identifier is returned in the response from the CreateBot operation.

buildBotLocale_botVersion :: Lens' BuildBotLocale Text Source #

The version of the bot to build. This can only be the draft version of the bot.

buildBotLocale_localeId :: Lens' BuildBotLocale 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.

Destructuring the Response

data BuildBotLocaleResponse Source #

See: newBuildBotLocaleResponse smart constructor.

Constructors

BuildBotLocaleResponse' 

Fields

  • botId :: Maybe Text

    The identifier of the specified bot.

  • botLocaleStatus :: Maybe BotLocaleStatus

    The bot's build status. When the status is ReadyExpressTesting you can test the bot using the utterances defined for the intents and slot types. When the status is Built, the bot is ready for use and can be tested using any utterance.

  • botVersion :: Maybe Text

    The version of the bot that was built. This is only the draft version of the bot.

  • lastBuildSubmittedDateTime :: Maybe POSIX

    A timestamp indicating the date and time that the bot was last built for this locale.

  • localeId :: Maybe Text

    The language and locale specified of where the bot can be used.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic BuildBotLocaleResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.BuildBotLocale

Associated Types

type Rep BuildBotLocaleResponse :: Type -> Type #

Read BuildBotLocaleResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.BuildBotLocale

Show BuildBotLocaleResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.BuildBotLocale

NFData BuildBotLocaleResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.BuildBotLocale

Methods

rnf :: BuildBotLocaleResponse -> () #

Eq BuildBotLocaleResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.BuildBotLocale

type Rep BuildBotLocaleResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.BuildBotLocale

type Rep BuildBotLocaleResponse = D1 ('MetaData "BuildBotLocaleResponse" "Amazonka.LexV2Models.BuildBotLocale" "amazonka-lexv2-models-2.0-5mExjJXBfuO6j0ascNcayE" 'False) (C1 ('MetaCons "BuildBotLocaleResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "botId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "botLocaleStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe BotLocaleStatus)) :*: S1 ('MetaSel ('Just "botVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "lastBuildSubmittedDateTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "localeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newBuildBotLocaleResponse Source #

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

BuildBotLocale, buildBotLocaleResponse_botId - The identifier of the specified bot.

BuildBotLocaleResponse, buildBotLocaleResponse_botLocaleStatus - The bot's build status. When the status is ReadyExpressTesting you can test the bot using the utterances defined for the intents and slot types. When the status is Built, the bot is ready for use and can be tested using any utterance.

BuildBotLocale, buildBotLocaleResponse_botVersion - The version of the bot that was built. This is only the draft version of the bot.

BuildBotLocaleResponse, buildBotLocaleResponse_lastBuildSubmittedDateTime - A timestamp indicating the date and time that the bot was last built for this locale.

BuildBotLocale, buildBotLocaleResponse_localeId - The language and locale specified of where the bot can be used.

$sel:httpStatus:BuildBotLocaleResponse', buildBotLocaleResponse_httpStatus - The response's http status code.

Response Lenses

buildBotLocaleResponse_botLocaleStatus :: Lens' BuildBotLocaleResponse (Maybe BotLocaleStatus) Source #

The bot's build status. When the status is ReadyExpressTesting you can test the bot using the utterances defined for the intents and slot types. When the status is Built, the bot is ready for use and can be tested using any utterance.

buildBotLocaleResponse_botVersion :: Lens' BuildBotLocaleResponse (Maybe Text) Source #

The version of the bot that was built. This is only the draft version of the bot.

buildBotLocaleResponse_lastBuildSubmittedDateTime :: Lens' BuildBotLocaleResponse (Maybe UTCTime) Source #

A timestamp indicating the date and time that the bot was last built for this locale.

buildBotLocaleResponse_localeId :: Lens' BuildBotLocaleResponse (Maybe Text) Source #

The language and locale specified of where the bot can be used.