# ConsumableResourceGrants

Collection of grant methods for a IConsumableResourceRef.

- Source: Generated code
- Type last changed: v2.273.0 · 8 Oct 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_batch as batch } from 'aws-cdk-lib';
import { aws_batch as interfaces_batch } from 'aws-cdk-lib/interfaces';

declare const consumableResourceRef: interfaces_batch.IConsumableResourceRef;
const consumableResourceGrants = batch.ConsumableResourceGrants.fromConsumableResource(consumableResourceRef);
```

## Methods

- `actions(grantee: IGrantable, actions: string[], options?: PermissionsOptions): Grant` — Grant the given identity custom permissions.

- `fromConsumableResource(resource: IConsumableResourceRef): ConsumableResourceGrants // chainable` (static) — Creates grants for ConsumableResourceGrants.

- `read(grantee: IGrantable): Grant` — Grant permission to describe this consumable resource and list the jobs that use it.

  This will grant the following permissions:

   - batch:DescribeConsumableResource
   - batch:ListJobsByConsumableResource

- `update(grantee: IGrantable): Grant` — Grant permission to change the total quantity of this consumable resource.

  This will grant the following permissions:

   - batch:UpdateConsumableResource
