AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::Batch::ConsumableResource

CfnConsumableResource

The `AWS::Batch::ConsumableResource` resource specifies the parameters for an AWS Batch consumable resource. For more information, see [Resource-aware scheduling](https://docs.aws.amazon.com/batch/latest/userguide/resource-aware-scheduling.html) in the ** .

Import

import { CfnConsumableResource } from 'aws-cdk-lib/aws-batch';

Or use the module namespace:

import * as batch from 'aws-cdk-lib/aws-batch';
// batch.CfnConsumableResource

Properties

Configuration passed to the constructor as CfnConsumableResourceProps.

resourceTypeRequired
string

Indicates whether the resource is available to be re-used after a job completes. Can be one of:. - `REPLENISHABLE` - `NON_REPLENISHABLE`

totalQuantityRequired
number

The total amount of the consumable resource that is available.

consumableResourceNameOptional
string

The name of the consumable resource.

tagsOptional
{ [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) .

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter