Class CfnResourcePolicyProps.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnResourcePolicyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResourcePolicyProps>
- Enclosing interface:
CfnResourcePolicyProps
@Stability(Stable)
public static final class CfnResourcePolicyProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResourcePolicyProps>
A builder for
CfnResourcePolicyProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnResourcePolicyProps.getPolicy()
resourceArn
(String resourceArn) Sets the value ofCfnResourcePolicyProps.getResourceArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
policy
Sets the value ofCfnResourcePolicyProps.getPolicy()
- Parameters:
policy
- A resource policy to add to the resource. This parameter is required. 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 ofCfnResourcePolicyProps.getResourceArn()
- 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
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnResourcePolicyProps>
- Returns:
- a new instance of
CfnResourcePolicyProps
- Throws:
NullPointerException
- if any required attribute was not provided
-