# ConsumableResourceType

The type of consumable resource.

- Source: [`aws-batch/lib/consumable-resource.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-batch/lib/consumable-resource.ts#L39)
- Type last changed: v2.273.0 · 8 Oct 2026

## Example

```ts
// 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

| Member | Description |
| --- | --- |
| `REPLENISHABLE` | Resource can be re-used after a job completes. |
| `NON_REPLENISHABLE` | Resource cannot be re-used after a job completes. |

## Referenced by

- [`ConsumableResourceProps`](/v2/docs/aws-cdk-lib.aws_batch.ConsumableResourceProps).resourceType
