AWS::Lex::ResourcePolicy - AWS CloudFormation

AWS::Lex::ResourcePolicy

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" : Policy, "ResourceArn" : String } }

YAML

Type: AWS::Lex::ResourcePolicy Properties: Policy: Policy 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: Policy

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

Return values

Fn::GetAtt

Id

The identifier of the resource policy.

RevisionId

Specifies the current revision of a resource policy.