Class CfnResourcePolicyMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lex.CfnResourcePolicyMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResourcePolicyMixinProps>
- Enclosing interface:
CfnResourcePolicyMixinProps
@Stability(Stable)
public static final class CfnResourcePolicyMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResourcePolicyMixinProps>
A builder for
CfnResourcePolicyMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnResourcePolicyMixinProps.getPolicy()resourceArn(String resourceArn) Sets the value ofCfnResourcePolicyMixinProps.getResourceArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
policy
Sets the value ofCfnResourcePolicyMixinProps.getPolicy()- Parameters:
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.- Returns:
this
-
resourceArn
Sets the value ofCfnResourcePolicyMixinProps.getResourceArn()- Parameters:
resourceArn- The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnResourcePolicyMixinProps>- Returns:
- a new instance of
CfnResourcePolicyMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-