AWS::Lex::ResourcePolicy> Amazon Lex V2 is the only supported version in CloudFormation . Specifies a new resource policy with the specified policy statements.
import { CfnResourcePolicy } from 'aws-cdk-lib/aws-lex';Or use the module namespace:
import * as lex from 'aws-cdk-lib/aws-lex';
// lex.CfnResourcePolicyConfiguration passed to the constructor as CfnResourcePolicyProps.
policyRequiredanyA 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.
resourceArnRequiredstringThe Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-lexAWS::Lex::ResourcePolicy