Class ConsumableResourceGrants

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.batch.ConsumableResourceGrants
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)", date="2026-10-08T16:59:48.460Z") @Stability(Stable) public class ConsumableResourceGrants extends software.amazon.jsii.JsiiObject
Collection of grant methods for a IConsumableResourceRef.

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.batch.*;
 import software.amazon.awscdk.interfaces.batch.*;
 IConsumableResourceRef consumableResourceRef;
 ConsumableResourceGrants consumableResourceGrants = ConsumableResourceGrants.fromConsumableResource(consumableResourceRef);
 
  • Constructor Details

    • ConsumableResourceGrants

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

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

    • fromConsumableResource

      @Stability(Stable) @NotNull public static ConsumableResourceGrants fromConsumableResource(@NotNull IConsumableResourceRef resource)
      Creates grants for ConsumableResourceGrants.

      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)
      Grant permission to describe this consumable resource and list the jobs that use it.

      This will grant the following permissions:

      • batch:DescribeConsumableResource
      • batch:ListJobsByConsumableResource

      Parameters:
      grantee - This parameter is required.
    • update

      @Stability(Stable) @NotNull public Grant update(@NotNull IGrantable grantee)
      Grant permission to change the total quantity of this consumable resource.

      This will grant the following permissions:

      • batch:UpdateConsumableResource

      Parameters:
      grantee - This parameter is required.
    • getResource

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