Class ResourcePolicyProps.Builder
java.lang.Object
software.amazon.awscdk.services.logs.ResourcePolicyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ResourcePolicyProps>
- Enclosing interface:
ResourcePolicyProps
@Stability(Stable)
public static final class ResourcePolicyProps.Builder
extends Object
implements software.amazon.jsii.Builder<ResourcePolicyProps>
A builder for
ResourcePolicyProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.policyStatements
(List<? extends PolicyStatement> policyStatements) Sets the value ofResourcePolicyProps.getPolicyStatements()
resourcePolicyName
(String resourcePolicyName) Sets the value ofResourcePolicyProps.getResourcePolicyName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
policyStatements
@Stability(Stable) public ResourcePolicyProps.Builder policyStatements(List<? extends PolicyStatement> policyStatements) Sets the value ofResourcePolicyProps.getPolicyStatements()
- Parameters:
policyStatements
- Initial statements to add to the resource policy.- Returns:
this
-
resourcePolicyName
Sets the value ofResourcePolicyProps.getResourcePolicyName()
- Parameters:
resourcePolicyName
- Name of the log group resource policy.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ResourcePolicyProps>
- Returns:
- a new instance of
ResourcePolicyProps
- Throws:
NullPointerException
- if any required attribute was not provided
-