AWS::Lex::ResourcePolicy - AWS CloudFormation

AWS::Lex::ResourcePolicy

Note

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

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.