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 SummaryConstructors
- 
Method SummaryModifier 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- 
Builderpublic 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
 
- 
resourcePolicyNameSets the value ofResourcePolicyProps.getResourcePolicyName()- Parameters:
- resourcePolicyName- Name of the log group resource policy.
- Returns:
- this
 
- 
buildBuilds the configured instance.- Specified by:
- buildin interface- software.amazon.jsii.Builder<ResourcePolicyProps>
- Returns:
- a new instance of ResourcePolicyProps
- Throws:
- NullPointerException- if any required attribute was not provided
 
 
-