AWS::Lex::ResourcePolicy - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AWS::Lex::ResourcePolicy

Note

Amazon Lex V2 is the only supported version in Amazon CloudFormation.

Specifies a new resource policy with the specified policy statements.

Syntax

To declare this entity in your Amazon 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

Minimum: 1

Maximum: 1011

Update requires: No interruption

Return values

Fn::GetAtt

The Fn::GetAtt intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

For more information about using the Fn::GetAtt intrinsic function, see Fn::GetAtt.

Id

The identifier of the resource policy.

RevisionId

Specifies the current revision of a resource policy.