# CfnConsumableResourceProps

Properties for defining a `CfnConsumableResource`.

Used as props by: [CfnConsumableResource](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_batch.CfnConsumableResource.html)

- 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 cfnConsumableResourceProps: batch.CfnConsumableResourceProps = {
  resourceType: 'resourceType',
  totalQuantity: 123,

  // the properties below are optional
  consumableResourceName: 'consumableResourceName',
  tags: {
    tagsKey: 'tags',
  },
};
```

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

cfn_consumable_resource_props = batch.CfnConsumableResourceProps(
    resource_type="resourceType",
    total_quantity=123,

    # the properties below are optional
    consumable_resource_name="consumableResourceName",
    tags={
        "tags_key": "tags"
    }
)
```

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.*;

CfnConsumableResourceProps cfnConsumableResourceProps = CfnConsumableResourceProps.builder()
        .resourceType("resourceType")
        .totalQuantity(123)

        // the properties below are optional
        .consumableResourceName("consumableResourceName")
        .tags(Map.of(
                "tagsKey", "tags"))
        .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 cfnConsumableResourceProps = new CfnConsumableResourceProps {
    ResourceType = "resourceType",
    TotalQuantity = 123,

    // the properties below are optional
    ConsumableResourceName = "consumableResourceName",
    Tags = new Dictionary<string, string> {
        { "tagsKey", "tags" }
    }
};
```

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"

cfnConsumableResourceProps := &CfnConsumableResourceProps{
	ResourceType: jsii.String("resourceType"),
	TotalQuantity: jsii.Number(123),

	// the properties below are optional
	ConsumableResourceName: jsii.String("consumableResourceName"),
	Tags: map[string]*string{
		"tagsKey": jsii.String("tags"),
	},
}
```

## Properties

- `consumableResourceName`: string — The name of the consumable resource.

- `resourceType`: string (required) — Indicates whether the resource is available to be re-used after a job completes. Can be one of:.

  - `REPLENISHABLE`
  - `NON_REPLENISHABLE`

- `tags`: { [key: string]: string } — The tags that you apply to the consumable resource to help you categorize and organize your resources.

  Each tag consists of a key and an optional value. For more information, see [Tagging your AWS Batch resources](https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html) .

- `totalQuantity`: number (required) — The total amount of the consumable resource that is available.
