Class ProfilingGroupGrants

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.codeguruprofiler.ProfilingGroupGrants
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-04-02T09:31:37.565Z") @Stability(Stable) public class ProfilingGroupGrants extends software.amazon.jsii.JsiiObject
Collection of grant methods for a IProfilingGroupRef.

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.codeguruprofiler.*;
 import software.amazon.awscdk.interfaces.codeguruprofiler.*;
 IProfilingGroupRef profilingGroupRef;
 ProfilingGroupGrants profilingGroupGrants = ProfilingGroupGrants.fromProfilingGroup(profilingGroupRef);
 
  • Constructor Details

    • ProfilingGroupGrants

      protected ProfilingGroupGrants(software.amazon.jsii.JsiiObjectRef objRef)
    • ProfilingGroupGrants

      protected ProfilingGroupGrants(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
  • Method Details

    • fromProfilingGroup

      @Stability(Stable) @NotNull public static ProfilingGroupGrants fromProfilingGroup(@NotNull IProfilingGroupRef resource)
      Creates grants for ProfilingGroupGrants.

      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.
    • publish

      @Stability(Stable) @NotNull public Grant publish(@NotNull IGrantable grantee)
      Grant access to publish profiling information to the Profiling Group to the given identity.

      This will grant the following permissions:

      • codeguru-profiler:ConfigureAgent
      • codeguru-profiler:PostAgentProfile

      Parameters:
      grantee - This parameter is required.
    • read

      @Stability(Stable) @NotNull public Grant read(@NotNull IGrantable grantee)
      Grant access to read profiling information from the Profiling Group to the given identity.

      This will grant the following permissions:

      • codeguru-profiler:GetProfile
      • codeguru-profiler:DescribeProfilingGroup

      Parameters:
      grantee - This parameter is required.
    • getResource

      @Stability(Stable) @NotNull protected IProfilingGroupRef getResource()