Class CfnResourcePolicy.Builder
java.lang.Object
software.amazon.awscdk.services.logs.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.Builder
policyDocument
(String policyDocument) The details of the policy.policyName
(String policyName) The name of the resource policy.
-
Method Details
-
create
@Stability(Stable) public static CfnResourcePolicy.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnResourcePolicy.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:
build
in interfacesoftware.amazon.jsii.Builder<CfnResourcePolicy>
- Returns:
- a newly built instance of
CfnResourcePolicy
.
-