@Stability(value=Stable) public static final class CfnResourcePolicy.Builder extends Object implements software.amazon.jsii.Builder<CfnResourcePolicy>
CfnResourcePolicy.| Modifier and Type | Method and Description |
|---|---|
CfnResourcePolicy |
build() |
static CfnResourcePolicy.Builder |
create(software.constructs.Construct scope,
String id) |
CfnResourcePolicy.Builder |
policy(Object policy)
A resource policy to add to the resource.
|
CfnResourcePolicy.Builder |
resourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
|
@Stability(value=Stable) public static CfnResourcePolicy.Builder create(software.constructs.Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnResourcePolicy.Builder.@Stability(value=Stable) public CfnResourcePolicy.Builder policy(Object policy)
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.
policy - A resource policy to add to the resource. This parameter is required.this@Stability(value=Stable) public CfnResourcePolicy.Builder resourceArn(String resourceArn)
resourceArn - The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to. This parameter is required.this@Stability(value=Stable) public CfnResourcePolicy build()
build in interface software.amazon.jsii.Builder<CfnResourcePolicy>Copyright © 2022. All rights reserved.