Class ResourcePolicy.Builder
java.lang.Object
software.amazon.awscdk.services.logs.ResourcePolicy.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ResourcePolicy>
- Enclosing class:
ResourcePolicy
@Stability(Stable)
public static final class ResourcePolicy.Builder
extends Object
implements software.amazon.jsii.Builder<ResourcePolicy>
A fluent builder for
ResourcePolicy
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static ResourcePolicy.Builder
policyStatements
(List<? extends PolicyStatement> policyStatements) Initial statements to add to the resource policy.resourcePolicyName
(String resourcePolicyName) Name of the log group resource policy.
-
Method Details
-
create
@Stability(Stable) public static ResourcePolicy.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
ResourcePolicy.Builder
.
-
policyStatements
@Stability(Stable) public ResourcePolicy.Builder policyStatements(List<? extends PolicyStatement> policyStatements) Initial statements to add to the resource policy.Default: - No statements
- Parameters:
policyStatements
- Initial statements to add to the resource policy. This parameter is required.- Returns:
this
-
resourcePolicyName
Name of the log group resource policy.Default: - Uses a unique id based on the construct path
- Parameters:
resourcePolicyName
- Name of the log group resource policy. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ResourcePolicy>
- Returns:
- a newly built instance of
ResourcePolicy
.
-