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 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

      @Stability(Stable) public ResourcePolicy.Builder resourcePolicyName(String 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

      @Stability(Stable) public ResourcePolicy build()
      Specified by:
      build in interface software.amazon.jsii.Builder<ResourcePolicy>
      Returns:
      a newly built instance of ResourcePolicy.