Class ConsumableResource

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.batch.ConsumableResource
All Implemented Interfaces:
IConsumableResourceRef, IEnvironmentAware, IResource, IConsumableResource, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)", date="2026-10-08T16:59:48.460Z") @Stability(Stable) public class ConsumableResource extends Resource implements IConsumableResource
A Batch Consumable Resource.

Consumable resources are finite resources that are consumed by jobs, such as third-party software licenses or API rate limits.

Example:

 ConsumableResource taggedResource = ConsumableResource.Builder.create(this, "TaggedResource")
         .totalQuantity(100)
         .tags(Map.of(
                 "Team", "batch"))
         .build();
 
  • Field Details

    • PROPERTY_INJECTION_ID

      @Stability(Stable) public static final String PROPERTY_INJECTION_ID
      Uniquely identifies this class.
  • Constructor Details

    • ConsumableResource

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

      protected ConsumableResource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • ConsumableResource

      @Stability(Stable) public ConsumableResource(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ConsumableResourceProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.
  • Method Details