Class CfnResourcePolicyPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lex.CfnResourcePolicyPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResourcePolicyPropsMixin>
- Enclosing class:
CfnResourcePolicyPropsMixin
@Stability(Stable)
public static final class CfnResourcePolicyPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResourcePolicyPropsMixin>
A fluent builder for
CfnResourcePolicyPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()create()create(CfnPropertyMixinOptions options) A 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
@Stability(Stable) public static CfnResourcePolicyPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnResourcePolicyPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnResourcePolicyPropsMixin.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- See Also:
-
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- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnResourcePolicyPropsMixin>- Returns:
- a newly built instance of
CfnResourcePolicyPropsMixin.
-