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();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.batch.IConsumableResource
IConsumableResource.Jsii$Default, IConsumableResource.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConsumableResource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedConsumableResource(software.amazon.jsii.JsiiObjectRef objRef) ConsumableResource(software.constructs.Construct scope, String id, ConsumableResourceProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IConsumableResourcefromConsumableResourceArn(software.constructs.Construct scope, String id, String consumableResourceArn) Import an existing consumable resource from its ARN.The ARN of this consumable resource.The name of this consumable resource.A reference to a ConsumableResource resource.Collection of grant methods for this consumable resource.Methods inherited from class software.amazon.awscdk.Resource
applyCrossStackReferenceStrength, applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource, withMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods 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, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
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
-
fromConsumableResourceArn
@Stability(Stable) @NotNull public static IConsumableResource fromConsumableResourceArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String consumableResourceArn) Import an existing consumable resource from its ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.consumableResourceArn- This parameter is required.
-
getConsumableResourceArn
The ARN of this consumable resource.- Specified by:
getConsumableResourceArnin interfaceIConsumableResource
-
getConsumableResourceName
The name of this consumable resource.- Specified by:
getConsumableResourceNamein interfaceIConsumableResource
-
getConsumableResourceRef
A reference to a ConsumableResource resource.- Specified by:
getConsumableResourceRefin interfaceIConsumableResourceRef
-
getGrants
Collection of grant methods for this consumable resource.- Specified by:
getGrantsin interfaceIConsumableResource
-