Class LogGroupGrants
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.logs.LogGroupGrants
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:24.845Z")
@Stability(Stable)
public class LogGroupGrants
extends software.amazon.jsii.JsiiObject
Collection of grant methods for a ILogGroupRef.
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.logs.*; import software.amazon.awscdk.interfaces.logs.*; ILogGroupRef logGroupRef; LogGroupGrants logGroupGrants = LogGroupGrants.fromLogGroup(logGroupRef);
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLogGroupGrants(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedLogGroupGrants(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic LogGroupGrantsfromLogGroup(ILogGroupRef resource) Creates grants for LogGroupGrants.protected IResourceWithPolicyV2protected ILogGroupRefread(IGrantable grantee) Give permissions to read and filter events from this log group.write(IGrantable grantee) Give permissions to create and write to streams in this log group.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
LogGroupGrants
protected LogGroupGrants(software.amazon.jsii.JsiiObjectRef objRef) -
LogGroupGrants
protected LogGroupGrants(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
fromLogGroup
@Stability(Stable) @NotNull public static LogGroupGrants fromLogGroup(@NotNull ILogGroupRef resource) Creates grants for LogGroupGrants.- Parameters:
resource- This parameter is required.
-
read
Give permissions to read and filter events from this log group.- Parameters:
grantee- This parameter is required.
-
write
Give permissions to create and write to streams in this log group.- Parameters:
grantee- This parameter is required.
-
getResource
-
getPolicyResource
-