

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 EcsProperties
<a name="aws-properties-batch-jobdefinition-ecsproperties"></a>

An object that contains the properties for the Amazon ECS resources of a job.

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

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

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

```
{
  "[TaskProperties](#cfn-batch-jobdefinition-ecsproperties-taskproperties)" : [ EcsTaskProperties, ... ]
}
```

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

```
  [TaskProperties](#cfn-batch-jobdefinition-ecsproperties-taskproperties): 
    - EcsTaskProperties
```

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

`TaskProperties`  <a name="cfn-batch-jobdefinition-ecsproperties-taskproperties"></a>
An object that contains the properties for the Amazon ECS task definition of a job.  
This object is currently limited to one task element. However, the task element can run up to 10 containers.
*Required*: Yes  
*Type*: Array of [EcsTaskProperties](aws-properties-batch-jobdefinition-ecstaskproperties.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)