lex:PutSession

Write

lex:PutSession is a Write access-level action in the lex service. Grants permission to create a new session or modify an existing session for a bot alias and user ID

Resource types

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

arn:${Partition}:lex:${Region}:${Account}:bot-alias/${BotId}/${BotAliasId}
bot alias

Condition keys

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

aws:ResourceTag/${TagKey} String

Filters access by the tags attached to a Lex resource

Example IAM policy

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

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

Related actions in lex

View all lex actions →