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

Description

Creates a new version of the bot based on the DRAFT version. If the DRAFT version of this resource hasn't changed since you created the last version, Amazon Lex doesn't create a new version, it returns the last created version.

When you create the first version of a bot, Amazon Lex sets the version to 1. Subsequent versions increment by 1.

Synopsis

Creating a Request

data CreateBotVersion Source #

See: newCreateBotVersion smart constructor.

Constructors

CreateBotVersion' 

Fields

  • description :: Maybe Text

    A description of the version. Use the description to help identify the version in lists.

  • botId :: Text

    The identifier of the bot to create the version for.

  • botVersionLocaleSpecification :: HashMap Text BotVersionLocaleDetails

    Specifies the locales that Amazon Lex adds to this version. You can choose the Draft version or any other previously published version for each locale. When you specify a source version, the locale data is copied from the source version to the new version.

Instances

Instances details
ToJSON CreateBotVersion Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotVersion

ToHeaders CreateBotVersion Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotVersion

ToPath CreateBotVersion Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotVersion

ToQuery CreateBotVersion Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotVersion

AWSRequest CreateBotVersion Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotVersion

Associated Types

type AWSResponse CreateBotVersion #

Generic CreateBotVersion Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotVersion

Associated Types

type Rep CreateBotVersion :: Type -> Type #

Read CreateBotVersion Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotVersion

Show CreateBotVersion Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotVersion

NFData CreateBotVersion Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotVersion

Methods

rnf :: CreateBotVersion -> () #

Eq CreateBotVersion Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotVersion

Hashable CreateBotVersion Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotVersion

type AWSResponse CreateBotVersion Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotVersion

type Rep CreateBotVersion Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotVersion

type Rep CreateBotVersion = D1 ('MetaData "CreateBotVersion" "Amazonka.LexV2Models.CreateBotVersion" "amazonka-lexv2-models-2.0-5mExjJXBfuO6j0ascNcayE" 'False) (C1 ('MetaCons "CreateBotVersion'" 'PrefixI 'True) (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "botId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "botVersionLocaleSpecification") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashMap Text BotVersionLocaleDetails)))))

newCreateBotVersion Source #

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

CreateBotVersion, createBotVersion_description - A description of the version. Use the description to help identify the version in lists.

CreateBotVersion, createBotVersion_botId - The identifier of the bot to create the version for.

CreateBotVersion, createBotVersion_botVersionLocaleSpecification - Specifies the locales that Amazon Lex adds to this version. You can choose the Draft version or any other previously published version for each locale. When you specify a source version, the locale data is copied from the source version to the new version.

Request Lenses

createBotVersion_description :: Lens' CreateBotVersion (Maybe Text) Source #

A description of the version. Use the description to help identify the version in lists.

createBotVersion_botId :: Lens' CreateBotVersion Text Source #

The identifier of the bot to create the version for.

createBotVersion_botVersionLocaleSpecification :: Lens' CreateBotVersion (HashMap Text BotVersionLocaleDetails) Source #

Specifies the locales that Amazon Lex adds to this version. You can choose the Draft version or any other previously published version for each locale. When you specify a source version, the locale data is copied from the source version to the new version.

Destructuring the Response

data CreateBotVersionResponse Source #

See: newCreateBotVersionResponse smart constructor.

Constructors

CreateBotVersionResponse' 

Fields

Instances

Instances details
Generic CreateBotVersionResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotVersion

Associated Types

type Rep CreateBotVersionResponse :: Type -> Type #

Read CreateBotVersionResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotVersion

Show CreateBotVersionResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotVersion

NFData CreateBotVersionResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotVersion

Eq CreateBotVersionResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotVersion

type Rep CreateBotVersionResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotVersion

type Rep CreateBotVersionResponse = D1 ('MetaData "CreateBotVersionResponse" "Amazonka.LexV2Models.CreateBotVersion" "amazonka-lexv2-models-2.0-5mExjJXBfuO6j0ascNcayE" 'False) (C1 ('MetaCons "CreateBotVersionResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "botId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "botStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe BotStatus)) :*: S1 ('MetaSel ('Just "botVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "botVersionLocaleSpecification") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text BotVersionLocaleDetails))) :*: S1 ('MetaSel ('Just "creationDateTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newCreateBotVersionResponse Source #

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

CreateBotVersion, createBotVersionResponse_botId - The bot identifier specified in the request.

CreateBotVersionResponse, createBotVersionResponse_botStatus - When you send a request to create or update a bot, Amazon Lex sets the status response element to Creating. After Amazon Lex builds the bot, it sets status to Available. If Amazon Lex can't build the bot, it sets status to Failed.

CreateBotVersionResponse, createBotVersionResponse_botVersion - The version number assigned to the version.

CreateBotVersion, createBotVersionResponse_botVersionLocaleSpecification - The source versions used for each locale in the new version.

CreateBotVersionResponse, createBotVersionResponse_creationDateTime - A timestamp of the date and time that the version was created.

CreateBotVersion, createBotVersionResponse_description - The description of the version specified in the request.

$sel:httpStatus:CreateBotVersionResponse', createBotVersionResponse_httpStatus - The response's http status code.

Response Lenses

createBotVersionResponse_botId :: Lens' CreateBotVersionResponse (Maybe Text) Source #

The bot identifier specified in the request.

createBotVersionResponse_botStatus :: Lens' CreateBotVersionResponse (Maybe BotStatus) Source #

When you send a request to create or update a bot, Amazon Lex sets the status response element to Creating. After Amazon Lex builds the bot, it sets status to Available. If Amazon Lex can't build the bot, it sets status to Failed.

createBotVersionResponse_botVersion :: Lens' CreateBotVersionResponse (Maybe Text) Source #

The version number assigned to the version.

createBotVersionResponse_creationDateTime :: Lens' CreateBotVersionResponse (Maybe UTCTime) Source #

A timestamp of the date and time that the version was created.

createBotVersionResponse_description :: Lens' CreateBotVersionResponse (Maybe Text) Source #

The description of the version specified in the request.