AWS::Lex::ResourcePolicy
Amazon Lex V2 is the only supported version in AWS CloudFormation.
Specifies a new resource policy with the specified policy statements.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::Lex::ResourcePolicy", "Properties" : { "Policy" :
Json
, "ResourceArn" :String
} }
YAML
Type: AWS::Lex::ResourcePolicy Properties: Policy:
Json
ResourceArn:String
Properties
Policy
-
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.
Required: Yes
Type: Json
Update requires: No interruption
ResourceArn
-
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
Required: Yes
Type: String
Update requires: No interruption