ResourcePolicyArgs

data class ResourcePolicyArgs(val policy: Output<ResourcePolicyPolicyArgs>? = null, val resourceArn: Output<String>? = null) : ConvertibleToJava<ResourcePolicyArgs>

A resource policy with specified policy statements that attaches to a Lex bot or bot alias.

Constructors

Link copied to clipboard
constructor(policy: Output<ResourcePolicyPolicyArgs>? = null, resourceArn: Output<String>? = null)

Properties

Link copied to clipboard
val policy: Output<ResourcePolicyPolicyArgs>? = null

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.

Link copied to clipboard
val resourceArn: Output<String>? = null

The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.

Functions

Link copied to clipboard
open override fun toJava(): ResourcePolicyArgs