Interface ResourcePolicyProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
ResourcePolicyProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.96.0 (build 921e240)", date="2024-04-10T22:22:30.391Z") @Stability(Stable) public interface ResourcePolicyProps extends software.amazon.jsii.JsiiSerializable
Properties to define Cloudwatch log group resource policy.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.iam.*;
 import software.amazon.awscdk.services.logs.*;
 PolicyStatement policyStatement;
 ResourcePolicyProps resourcePolicyProps = ResourcePolicyProps.builder()
         .policyStatements(List.of(policyStatement))
         .resourcePolicyName("resourcePolicyName")
         .build();
 
  • Method Details

    • getPolicyStatements

      @Stability(Stable) @Nullable default List<PolicyStatement> getPolicyStatements()
      Initial statements to add to the resource policy.

      Default: - No statements

    • getResourcePolicyName

      @Stability(Stable) @Nullable default String getResourcePolicyName()
      Name of the log group resource policy.

      Default: - Uses a unique id based on the construct path

    • builder

      @Stability(Stable) static ResourcePolicyProps.Builder builder()
      Returns:
      a ResourcePolicyProps.Builder of ResourcePolicyProps