AWS Chatbot Bot
This page shows how to write Terraform for Chatbot Bot and write them securely.
aws_lex_bot (Terraform)
The Bot in Chatbot can be configured in Terraform with the resource name aws_lex_bot. The following sections describe 5 examples of how to use the resource and its parameters.
Example Usage from GitHub
lex.tf#L3
resource "aws_lex_bot" "bge_lex_help_bot" {
name = "bge_lex_help_bot"
locale = "en-GB"
create_version = "true"
child_directed = false
enable_model_improvements = true
bot.tf#L1
resource "aws_lex_bot" "order_food_bot" {
depends_on = [
aws_lex_intent.get_food_order_intent
]
child_directed = false
create_version = false
lex_bot.tf#L1
resource "aws_lex_bot" "order_flowers_bot" {
abort_statement {
message {
content = "Sorry, I am not able to assist at this time"
content_type = "PlainText"
}
lex-bot.tf#L1
resource "aws_lex_bot" "medical_help" {
abort_statement {
message {
content = "Sorry, I am not able to assist at this timez"
content_type = "PlainText"
bot.tf#L1
resource "aws_lex_bot" "multi_demo" {
abort_statement {
message {
content_type = "PlainText"
content = "Sorry, I am not able to assist at this time"
}
Parameters
-
arnoptional computed - string -
checksumoptional computed - string -
child_directedrequired - bool -
create_versionoptional - bool -
created_dateoptional computed - string -
descriptionoptional - string -
detect_sentimentoptional - bool -
enable_model_improvementsoptional - bool -
failure_reasonoptional computed - string -
idoptional computed - string -
idle_session_ttl_in_secondsoptional - number -
last_updated_dateoptional computed - string -
localeoptional - string -
namerequired - string -
nlu_intent_confidence_thresholdoptional - number -
process_behavioroptional - string -
statusoptional computed - string -
versionoptional computed - string -
voice_idoptional computed - string -
abort_statementlist block-
response_cardoptional - string -
messageset block-
contentrequired - string -
content_typerequired - string -
group_numberoptional - number
-
-
-
clarification_promptlist block-
max_attemptsrequired - number -
response_cardoptional - string -
messageset block-
contentrequired - string -
content_typerequired - string -
group_numberoptional - number
-
-
-
intentset block-
intent_namerequired - string -
intent_versionrequired - string
-
-
timeoutssingle block
Explanation in Terraform Registry
Provides an Amazon Lex Bot resource. For more information see Amazon Lex: How It Works
CloudFormation Example
CloudFormation code does not have the related resource.
Frequently asked questions
What is AWS Chatbot Bot?
AWS Chatbot Bot is a resource for Chatbot of Amazon Web Service. Settings can be wrote in Terraform.
Where can I find the example code for the AWS Chatbot Bot?
For Terraform, the DarekB-repos/example-lexbot, tpwidman-vf/restaurant-connect and pjangam/SongsSearch source code examples are useful. See the Terraform Example section for further details.