| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
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
- data CreateBotVersion = CreateBotVersion' {}
- newCreateBotVersion :: Text -> CreateBotVersion
- createBotVersion_description :: Lens' CreateBotVersion (Maybe Text)
- createBotVersion_botId :: Lens' CreateBotVersion Text
- createBotVersion_botVersionLocaleSpecification :: Lens' CreateBotVersion (HashMap Text BotVersionLocaleDetails)
- data CreateBotVersionResponse = CreateBotVersionResponse' {}
- newCreateBotVersionResponse :: Int -> CreateBotVersionResponse
- createBotVersionResponse_botId :: Lens' CreateBotVersionResponse (Maybe Text)
- createBotVersionResponse_botStatus :: Lens' CreateBotVersionResponse (Maybe BotStatus)
- createBotVersionResponse_botVersion :: Lens' CreateBotVersionResponse (Maybe Text)
- createBotVersionResponse_botVersionLocaleSpecification :: Lens' CreateBotVersionResponse (Maybe (HashMap Text BotVersionLocaleDetails))
- createBotVersionResponse_creationDateTime :: Lens' CreateBotVersionResponse (Maybe UTCTime)
- createBotVersionResponse_description :: Lens' CreateBotVersionResponse (Maybe Text)
- createBotVersionResponse_httpStatus :: Lens' CreateBotVersionResponse Int
Creating a Request
data CreateBotVersion Source #
See: newCreateBotVersion smart constructor.
Constructors
| CreateBotVersion' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> CreateBotVersion |
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
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_botVersionLocaleSpecification :: Lens' CreateBotVersionResponse (Maybe (HashMap Text BotVersionLocaleDetails)) Source #
The source versions used for each locale in the new 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.
createBotVersionResponse_httpStatus :: Lens' CreateBotVersionResponse Int Source #
The response's http status code.