lex:GetBot

Read

lex:GetBot is a Read access-level action in the lex service. Returns information for a specific bot. In addition to the bot name, the bot version or alias is required

Resource types

ARNs that lex:GetBot can be scoped to in an IAM policy.

arn:${Partition}:lex:${Region}:${Account}:bot:${BotName}:${BotAlias}
bot alias
arn:${Partition}:lex:${Region}:${Account}:bot:${BotName}:${BotVersion}
bot version

Condition keys

Keys you can use in the Condition block of a policy that grants lex:GetBot.

aws:ResourceTag/${TagKey} String

Filters access by the tags attached to a Lex resource

Example IAM policy

A minimal policy that allows lex:GetBot. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowLexGetBot",
      "Effect": "Allow",
      "Action": "lex:GetBot",
      "Resource": "*"
    }
  ]
}

Related actions in lex

View all lex actions →