

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::Pipes::Pipe BatchContainerOverrides
<a name="aws-properties-pipes-pipe-batchcontaineroverrides"></a>

The overrides that are sent to a container.

## Syntax
<a name="aws-properties-pipes-pipe-batchcontaineroverrides-syntax"></a>

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

### JSON
<a name="aws-properties-pipes-pipe-batchcontaineroverrides-syntax.json"></a>

```
{
  "[Command](#cfn-pipes-pipe-batchcontaineroverrides-command)" : [ String, ... ],
  "[Environment](#cfn-pipes-pipe-batchcontaineroverrides-environment)" : [ BatchEnvironmentVariable, ... ],
  "[InstanceType](#cfn-pipes-pipe-batchcontaineroverrides-instancetype)" : String,
  "[ResourceRequirements](#cfn-pipes-pipe-batchcontaineroverrides-resourcerequirements)" : [ BatchResourceRequirement, ... ]
}
```

### YAML
<a name="aws-properties-pipes-pipe-batchcontaineroverrides-syntax.yaml"></a>

```
  [Command](#cfn-pipes-pipe-batchcontaineroverrides-command): 
    - String
  [Environment](#cfn-pipes-pipe-batchcontaineroverrides-environment): 
    - BatchEnvironmentVariable
  [InstanceType](#cfn-pipes-pipe-batchcontaineroverrides-instancetype): String
  [ResourceRequirements](#cfn-pipes-pipe-batchcontaineroverrides-resourcerequirements): 
    - BatchResourceRequirement
```

## Properties
<a name="aws-properties-pipes-pipe-batchcontaineroverrides-properties"></a>

`Command`  <a name="cfn-pipes-pipe-batchcontaineroverrides-command"></a>
The command to send to the container that overrides the default command from the Docker image or the task definition.  
*Required*: No  
*Type*: Array of String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Environment`  <a name="cfn-pipes-pipe-batchcontaineroverrides-environment"></a>
The environment variables to send to the container. You can add new environment variables, which are added to the container at launch, or you can override the existing environment variables from the Docker image or the task definition.  
Environment variables cannot start with "` AWS Batch `". This naming convention is reserved for variables that AWS Batch sets.
*Required*: No  
*Type*: Array of [BatchEnvironmentVariable](aws-properties-pipes-pipe-batchenvironmentvariable.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`InstanceType`  <a name="cfn-pipes-pipe-batchcontaineroverrides-instancetype"></a>
The instance type to use for a multi-node parallel job.  
This parameter isn't applicable to single-node container jobs or jobs that run on Fargate resources, and shouldn't be provided.
*Required*: No  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`ResourceRequirements`  <a name="cfn-pipes-pipe-batchcontaineroverrides-resourcerequirements"></a>
The type and amount of resources to assign to a container. This overrides the settings in the job definition. The supported resources include `GPU`, `MEMORY`, and `VCPU`.  
*Required*: No  
*Type*: Array of [BatchResourceRequirement](aws-properties-pipes-pipe-batchresourcerequirement.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)