AWS Fundamentals Logo
AWS Fundamentals
AWS::Lex::ResourcePolicy

Lex ResourcePolicy

Resource Type definition for a resource policy with specified policy statements that attaches to a Lex bot or bot alias.

Properties

2 configurable properties. 2 required. Click a row to see details.

Filter:
PropertyTypeFlags
Policy
Policy
Required
ResourceArn
string
RequiredCreate-only

Return Values

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

AttributeTypeDescription
Idstring-
RevisionIdstring-

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::ResourcePolicy

Resources:
  MyResource:
    Type: AWS::Lex::ResourcePolicy
    Properties:
      Policy: "value"
      ResourceArn: "arn:aws:service:region:account:resource"

Required IAM Permissions

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

create

lex:CreateResourcePolicylex:DescribeResourcePolicylex:CreateResourcePolicyStatement

read

lex:DescribeResourcePolicy

update

lex:CreateResourcePolicylex:UpdateResourcePolicylex:DescribeResourcePolicylex:DeleteResourcePolicylex:CreateResourcePolicyStatementlex:DeleteResourcePolicyStatement

delete

lex:DeleteResourcePolicylex:DescribeResourcePolicylex:DeleteResourcePolicyStatement

list

lex:DescribeResourcePolicy

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
Properties4
Required2
TaggingNot supported
Primary IDId

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

ResourceArn

Related Resources

External Links