Class CfnResourcePolicyPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.logs.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) policyDocument(String policyDocument) The details of the policy.policyName(String policyName) The name of the resource policy.
-
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.
-
policyDocument
The details of the policy.It must be formatted in JSON, and you must use backslashes to escape characters that need to be escaped in JSON strings, such as double quote marks.
- Parameters:
policyDocument- The details of the policy. This parameter is required.- Returns:
this- See Also:
-
policyName
The name of the resource policy.- Parameters:
policyName- The name of the resource policy. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnResourcePolicyPropsMixin>- Returns:
- a newly built instance of
CfnResourcePolicyPropsMixin.
-