AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::Lex::ResourcePolicy

CfnResourcePolicy

> Amazon Lex V2 is the only supported version in CloudFormation . Specifies a new resource policy with the specified policy statements.

Import

import { CfnResourcePolicy } from 'aws-cdk-lib/aws-lex';

Or use the module namespace:

import * as lex from 'aws-cdk-lib/aws-lex';
// lex.CfnResourcePolicy

Properties

Configuration passed to the constructor as CfnResourcePolicyProps.

policyRequired
any

A resource policy to add to the resource. The policy is a JSON structure that contains one or more statements that define the policy. The policy must follow IAM syntax. If the policy isn't valid, Amazon Lex returns a validation exception.

resourceArnRequired
string

The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

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

LevelL1 (CloudFormation)
Moduleaws-lex
CFN TypeAWS::Lex::ResourcePolicy
Properties2

Related Constructs

External Links