Interface ResourcePolicyProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ResourcePolicyProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:41.802Z")
@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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forResourcePolicyPropsstatic final classAn implementation forResourcePolicyProps -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourcePolicyProps.Builderbuilder()default List<PolicyStatement> Initial statements to add to the resource policy.default StringName of the log group resource policy.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPolicyStatements
Initial statements to add to the resource policy.Default: - No statements
-
getResourcePolicyName
Name of the log group resource policy.Default: - Uses a unique id based on the construct path
-
builder
- Returns:
- a
ResourcePolicyProps.BuilderofResourcePolicyProps
-