lex:PostContent

Write

lex:PostContent is a Write access-level action in the lex service. Sends user input (text or speech) to Amazon Lex

Resource types

ARNs that lex:PostContent 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:PostContent.

aws:ResourceTag/${TagKey} String

Filters access by the tags attached to a Lex resource

Example IAM policy

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

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

Related actions in lex

View all lex actions →