

This is the new *CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [AWS CloudFormation User Guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::Batch::JobDefinition ConsumableResourceRequirement
<a name="aws-properties-batch-jobdefinition-consumableresourcerequirement"></a>

Information about a consumable resource required to run a job.

## Syntax
<a name="aws-properties-batch-jobdefinition-consumableresourcerequirement-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-batch-jobdefinition-consumableresourcerequirement-syntax.json"></a>

```
{
  "[ConsumableResource](#cfn-batch-jobdefinition-consumableresourcerequirement-consumableresource)" : String,
  "[Quantity](#cfn-batch-jobdefinition-consumableresourcerequirement-quantity)" : Integer
}
```

### YAML
<a name="aws-properties-batch-jobdefinition-consumableresourcerequirement-syntax.yaml"></a>

```
  [ConsumableResource](#cfn-batch-jobdefinition-consumableresourcerequirement-consumableresource): String
  [Quantity](#cfn-batch-jobdefinition-consumableresourcerequirement-quantity): Integer
```

## Properties
<a name="aws-properties-batch-jobdefinition-consumableresourcerequirement-properties"></a>

`ConsumableResource`  <a name="cfn-batch-jobdefinition-consumableresourcerequirement-consumableresource"></a>
The name or ARN of the consumable resource.  
*Required*: Yes  
*Type*: String  
*Pattern*: `arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[^/].{0,1023}`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Quantity`  <a name="cfn-batch-jobdefinition-consumableresourcerequirement-quantity"></a>
The quantity of the consumable resource that is needed.  
*Required*: Yes  
*Type*: Integer  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)