# ConsumableResourceRequirementProperty

Information about a consumable resource required to run a job.

- Source: Generated at build time
- Type last changed: v2.182.0 · 5 Mar 2025

## Example

TypeScript:

```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';
const consumableResourceRequirementProperty: batch.CfnJobDefinition.ConsumableResourceRequirementProperty = {
  consumableResource: 'consumableResource',
  quantity: 123,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_batch as batch

consumable_resource_requirement_property = batch.CfnJobDefinition.ConsumableResourceRequirementProperty(
    consumable_resource="consumableResource",
    quantity=123
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.batch.*;

ConsumableResourceRequirementProperty consumableResourceRequirementProperty = ConsumableResourceRequirementProperty.builder()
        .consumableResource("consumableResource")
        .quantity(123)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Batch;

var consumableResourceRequirementProperty = new ConsumableResourceRequirementProperty {
    ConsumableResource = "consumableResource",
    Quantity = 123
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

consumableResourceRequirementProperty := &ConsumableResourceRequirementProperty{
	ConsumableResource: jsii.String("consumableResource"),
	Quantity: jsii.Number(123),
}
```

## Properties

- `consumableResource`: string (required) — The name or ARN of the consumable resource.

- `quantity`: number (required) — The quantity of the consumable resource that is needed.
