AWS Fundamentals Logo
AWS Fundamentals
AWS::Lex::Bot

Lex Bot

Resource Type definition for an Amazon Lex conversational bot performing automated tasks such as ordering a pizza, booking a hotel, and so on.

Properties

13 configurable properties. 4 required. Click a row to see details.

Filter:
PropertyTypeFlags
DataPrivacy
object
Required
IdleSessionTTLInSeconds
integer
Required
Name
string
Required
RoleArn
string
Required
AutoBuildBotLocales
boolean
Write-only
BotFileS3Location
S3Location
Write-only
BotLocales
Array<BotLocale>
Write-only
BotTags
Array<Tag>
Description
string
ErrorLogSettings
object
Replication
Replication
Write-only
TestBotAliasSettings
TestBotAliasSettings
Write-only
TestBotAliasTags
Array<Tag>
Write-only

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
Arnstring-
Idstring-

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::Lex::Bot

Resources:
  MyResource:
    Type: AWS::Lex::Bot
    Properties:
      Name: "my-name"
      RoleArn: "arn:aws:service:region:account:resource"
      DataPrivacy: {}
      IdleSessionTTLInSeconds: "my-idlesessionttlinseconds"
      Description: !Ref "AWS::StackName"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

iam:PassRolelex:DescribeBotlex:CreateUploadUrllex:StartImportlex:DescribeImportlex:ListTagsForResourcelex:TagResourcelex:UntagResource

read

lex:DescribeBotlex:ListTagsForResourcelex:DescribeBotReplicalex:ListBotAliaseslex:ListBotLocaleslex:ListIntentslex:ListSlotslex:ListSlotTypes

update

iam:PassRolelex:DescribeBotlex:CreateUploadUrllex:StartImportlex:DescribeImportlex:ListTagsForResourcelex:TagResourcelex:UntagResource

delete

lex:DeleteBotlex:BatchDeleteCustomVocabularyItemlex:DescribeBotlex:DescribeBotAliaslex:DeleteBotLocalelex:DeleteIntentlex:DeleteSlotTypelex:DeleteSlot

list

lex:ListBotslex:ListBotReplicaslex:ListBotAliaseslex:ListBotLocaleslex:ListIntentslex:ListSlotslex:ListSlotTypeslex:ListCustomVocabularies

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceLex
Properties15
Required4
TaggingSupported
Primary IDId

Supported Operations

CreateReadUpdateDeleteList

External Links