BotState constructor

const BotState({
  1. Input<BotAbortStatement?>? abortStatement,
  2. Input<String?>? arn,
  3. Input<String?>? checksum,
  4. Input<bool?>? childDirected,
  5. Input<BotClarificationPrompt?>? clarificationPrompt,
  6. Input<bool?>? createVersion,
  7. Input<String?>? createdDate,
  8. Input<String?>? description,
  9. Input<bool?>? detectSentiment,
  10. Input<bool?>? enableModelImprovements,
  11. Input<String?>? failureReason,
  12. Input<int?>? idleSessionTtlInSeconds,
  13. Input<List<BotIntent>?>? intents,
  14. Input<String?>? lastUpdatedDate,
  15. Input<String?>? locale,
  16. Input<String?>? name,
  17. Input<double?>? nluIntentConfidenceThreshold,
  18. Input<String?>? processBehavior,
  19. Input<String?>? region,
  20. Input<String?>? status,
  21. Input<String?>? version,
  22. Input<String?>? voiceId,
})

Creates a new BotState. abortStatement The message that Amazon Lex uses to abort a conversation. Attributes are documented under statement. arn Optional. checksum Checksum identifying the version of the bot that was created. The checksum is not childDirected By specifying true, 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. For more information see the Amazon Lex FAQ and the Amazon Lex PutBot API Docs. clarificationPrompt The message that Amazon Lex uses when it doesn't understand the user's request. Attributes are documented under prompt. createVersion Determines if a new bot version is created when the initial resource is created and on each update. Defaults to false. createdDate The date when the bot version was created. description A description of the bot. Must be less than or equal to 200 characters in length. detectSentiment When set to true user utterances are sent to Amazon Comprehend for sentiment analysis. If you don't specify detectSentiment, the default is false. enableModelImprovements Set to true to enable access to natural language understanding improvements. When you set the enableModelImprovements parameter to true you can use the nluIntentConfidenceThreshold parameter to configure confidence scores. For more information, see Confidence Scores. You can only set the enableModelImprovements parameter in certain Regions. If you set the parameter to true, your bot has access to accuracy improvements. For more information see the Amazon Lex Bot PutBot API Docs. failureReason If status is FAILED, Amazon Lex provides the reason that it failed to build the bot. idleSessionTtlInSeconds The maximum time in seconds that Amazon Lex retains the data gathered in a conversation. Default is 300. Must be a number between 60 and 86400 (inclusive). intents A set of Intent objects. Each intent represents a command that a user can express. Attributes are documented under intent. Can have up to 250 Intent objects. lastUpdatedDate The date when the $LATEST version of this bot was updated. locale Specifies the target locale for the bot. Any intent used in the bot must be compatible with the locale of the bot. For available locales, see Amazon Lex Bot PutBot API Docs. Default is en-US. name The name of the bot that you want to create, case sensitive. Must be between 2 and 50 characters in length. nluIntentConfidenceThreshold Determines the threshold where Amazon Lex will insert the AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or both when returning alternative intents in a PostContent or PostText response. AMAZON.FallbackIntent and AMAZON.KendraSearchIntent are only inserted if they are configured for the bot. For more information see Amazon Lex Bot PutBot API Docs This value requires enableModelImprovements to be set to true and the default is 0. Must be a float between 0 and 1. processBehavior If you set the processBehavior element to BUILD, Amazon Lex builds the bot so that it can be run. If you set the element to SAVE Amazon Lex saves the bot, but doesn't build it. Default is SAVE. region Region where this resource will be managed. Defaults to the Region set in the provider configuration. status When you send a request to create or update a bot, Amazon Lex sets the status response version The version of the bot. voiceId The Amazon Polly voice ID that you want Amazon Lex to use for voice interactions with the user. The locale configured for the voice must match the locale of the bot. For more information, see Available Voices in the Amazon Polly Developer Guide.

Implementation

const BotState({
  this.abortStatement,
  this.arn,
  this.checksum,
  this.childDirected,
  this.clarificationPrompt,
  this.createVersion,
  this.createdDate,
  this.description,
  this.detectSentiment,
  this.enableModelImprovements,
  this.failureReason,
  this.idleSessionTtlInSeconds,
  this.intents,
  this.lastUpdatedDate,
  this.locale,
  this.name,
  this.nluIntentConfidenceThreshold,
  this.processBehavior,
  this.region,
  this.status,
  this.version,
  this.voiceId,
});