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.127.0 (build 2117ad5)", date="2026-04-02T21:55:14.263Z") @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);
 
  • 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.
    • actions

      @Stability(Stable) @NotNull public Grant actions(@NotNull IGrantable grantee, @NotNull List<String> actions, @Nullable PermissionsOptions options)
      Grant the given identity custom permissions.

      Parameters:
      grantee - This parameter is required.
      actions - This parameter is required.
      options -
    • actions

      @Stability(Stable) @NotNull public Grant actions(@NotNull IGrantable grantee, @NotNull List<String> actions)
      Grant the given identity custom permissions.

      Parameters:
      grantee - This parameter is required.
      actions - This parameter is required.
    • read

      @Stability(Stable) @NotNull public Grant read(@NotNull IGrantable grantee)
      Give permissions to read and filter events from this log group.

      Parameters:
      grantee - This parameter is required.
    • write

      @Stability(Stable) @NotNull public Grant write(@NotNull IGrantable grantee)
      Give permissions to create and write to streams in this log group.

      Parameters:
      grantee - This parameter is required.
    • getResource

      @Stability(Stable) @NotNull protected ILogGroupRef getResource()
    • getPolicyResource

      @Stability(Stable) @Nullable protected IResourceWithPolicyV2 getPolicyResource()