enum ConsumableResourceType
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Batch.ConsumableResourceType |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsbatch#ConsumableResourceType |
Java | software.amazon.awscdk.services.batch.ConsumableResourceType |
Python | aws_cdk.aws_batch.ConsumableResourceType |
TypeScript (source) | aws-cdk-lib » aws_batch » ConsumableResourceType |
The type of consumable resource.
Example
// Create a replenishable consumable resource (e.g., software licenses)
const licenseResource = new batch.ConsumableResource(this, 'LicenseResource', {
consumableResourceName: 'my-software-license',
resourceType: batch.ConsumableResourceType.REPLENISHABLE,
totalQuantity: 100,
});
// Create a non-replenishable consumable resource (e.g., API rate limits)
const apiRateLimitResource = new batch.ConsumableResource(this, 'ApiRateLimitResource', {
consumableResourceName: 'api-rate-limit',
resourceType: batch.ConsumableResourceType.NON_REPLENISHABLE,
totalQuantity: 1000,
});
Members
| Name | Description |
|---|---|
| REPLENISHABLE | Resource can be re-used after a job completes. |
| NON_REPLENISHABLE | Resource cannot be re-used after a job completes. |
REPLENISHABLE
Resource can be re-used after a job completes.
NON_REPLENISHABLE
Resource cannot be re-used after a job completes.

.NET
Go
Java
Python
TypeScript (