Values.CreateBotVersionResponseSourceCreates a new version of the bot based on the $LATEST version. If the $LATEST 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. You can update only the $LATEST version of the bot. You can't update the numbered versions that you create with the CreateBotVersion operation. When you create the first version of a bot, Amazon Lex sets the version to 1. Subsequent versions increment by 1. For more information, see versioning-intro. This operation requires permission for the lex:CreateBotVersion action.
type nonrec t = {name : BotName.t option;The name of the bot.
*)description : Description.t option;A description of the bot.
*)intents : IntentList.t option;An array of Intent objects. For more information, see PutBot.
*)clarificationPrompt : Prompt.t option;The message that Amazon Lex uses when it doesn't understand the user's request. For more information, see PutBot.
*)abortStatement : Statement.t option;The message that Amazon Lex uses to cancel a conversation. For more information, see PutBot.
*)status : Status.t option;When you send a request to create or update a bot, Amazon Lex sets the status response element to BUILDING. After Amazon Lex builds the bot, it sets status to READY. If Amazon Lex can't build the bot, it sets status to FAILED. Amazon Lex returns the reason for the failure in the failureReason response element.
*)failureReason : String_.t option;If status is FAILED, Amazon Lex provides the reason that it failed to build the bot.
*)lastUpdatedDate : Timestamp.t option;The date when the $LATEST version of this bot was updated.
*)createdDate : Timestamp.t option;The date when the bot version was created.
*)idleSessionTTLInSeconds : SessionTTL.t option;The maximum time in seconds that Amazon Lex retains the data gathered in a conversation. For more information, see PutBot.
*)voiceId : String_.t option;The Amazon Polly voice ID that Amazon Lex uses for voice interactions with the user.
*)checksum : String_.t option;Checksum identifying the version of the bot that was created.
*)version : Version.t option;The version of the bot.
*)locale : Locale.t option;Specifies the target locale for the bot.
*)childDirected : Boolean.t option;For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must specify whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to the Children's Online Privacy Protection Act (COPPA) by specifying true or false in the childDirected field. By specifying true in the childDirected field, you confirm that your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA. By specifying false in the childDirected field, you confirm that your use of Amazon Lex is not related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA. You may not specify a default value for the childDirected field that does not accurately reflect whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA. If your use of Amazon Lex relates to a website, program, or other application that is directed in whole or in part, to children under age 13, you must obtain any required verifiable parental consent under COPPA. For information regarding the use of Amazon Lex in connection with websites, programs, or other applications that are directed or targeted, in whole or in part, to children under age 13, see the Amazon Lex FAQ.
*)enableModelImprovements : Boolean.t option;Indicates whether the bot uses accuracy improvements. true indicates that the bot is using the improvements, otherwise, false.
*)detectSentiment : Boolean.t option;Indicates whether utterances entered by the user should be sent to Amazon Comprehend for sentiment analysis.
*)}type nonrec error = [ | `BadRequestException of BadRequestException.t| `ConflictException of ConflictException.t| `InternalFailureException of InternalFailureException.t| `LimitExceededException of LimitExceededException.t| `NotFoundException of NotFoundException.t| `PreconditionFailedException of PreconditionFailedException.t| `Unknown_operation_error of string * string option ]val make :
?name:??? ->
?description:??? ->
?intents:??? ->
?clarificationPrompt:??? ->
?abortStatement:??? ->
?status:??? ->
?failureReason:??? ->
?lastUpdatedDate:??? ->
?createdDate:??? ->
?idleSessionTTLInSeconds:??? ->
?voiceId:??? ->
?checksum:??? ->
?version:??? ->
?locale:??? ->
?childDirected:??? ->
?enableModelImprovements:??? ->
?detectSentiment:??? ->
unit ->
tval error_of_json :
string ->
Yojson.Safe.t ->
[> `BadRequestException of BadRequestException.t
| `ConflictException of ConflictException.t
| `InternalFailureException of InternalFailureException.t
| `LimitExceededException of LimitExceededException.t
| `NotFoundException of NotFoundException.t
| `PreconditionFailedException of PreconditionFailedException.t
| `Unknown_operation_error of string * string option ]val error_of_xml :
string ->
Awso.Xml.t ->
[> `BadRequestException of BadRequestException.t
| `ConflictException of ConflictException.t
| `InternalFailureException of InternalFailureException.t
| `LimitExceededException of LimitExceededException.t
| `NotFoundException of NotFoundException.t
| `PreconditionFailedException of PreconditionFailedException.t
| `Unknown_operation_error of string * string option ]val to_value :
t ->
[> `Structure of
(string
* [> `Boolean of Boolean.t
| `Enum of string
| `Integer of SessionTTL.t
| `List of
[> `Structure of (string * [> `String of IntentName.t ]) list ]
list
| `String of BotName.t
| `Structure of
(string
* [> `Integer of PromptMaxAttempts.t
| `List of
[> `Structure of
(string
* [> `Enum of string
| `Integer of GroupNumber.t
| `String of ContentString.t ])
list ]
list
| `String of ResponseCard.t ])
list
| `Timestamp of Timestamp.t ])
list ]