Class CfnResourcePolicy.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnResourcePolicy.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResourcePolicy>
- Enclosing class:
- CfnResourcePolicy
@Stability(Stable)
public static final class CfnResourcePolicy.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResourcePolicy>
A fluent builder for
CfnResourcePolicy.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnResourcePolicy.BuilderA resource policy to add to the resource.resourceArn(String resourceArn) The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
-
Method Details
-
create
- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
- Returns:
- a new instance of
CfnResourcePolicy.Builder.
-
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.
- Parameters:
policy- A resource policy to add to the resource. This parameter is required.- Returns:
this
-
resourceArn
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.- Parameters:
resourceArn- The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnResourcePolicy>- Returns:
- a newly built instance of
CfnResourcePolicy.
-