

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::EMR::Cluster StepConfig
<a name="aws-properties-emr-cluster-stepconfig"></a>

`StepConfig` is a property of the `AWS::EMR::Cluster` resource. The `StepConfig` property type specifies a cluster (job flow) step, which runs only on the master node. Steps are used to submit data processing jobs to the cluster.

## Syntax
<a name="aws-properties-emr-cluster-stepconfig-syntax"></a>

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

### JSON
<a name="aws-properties-emr-cluster-stepconfig-syntax.json"></a>

```
{
  "[ActionOnFailure](#cfn-emr-cluster-stepconfig-actiononfailure)" : String,
  "[HadoopJarStep](#cfn-emr-cluster-stepconfig-hadoopjarstep)" : HadoopJarStepConfig,
  "[Name](#cfn-emr-cluster-stepconfig-name)" : String
}
```

### YAML
<a name="aws-properties-emr-cluster-stepconfig-syntax.yaml"></a>

```
  [ActionOnFailure](#cfn-emr-cluster-stepconfig-actiononfailure): String
  [HadoopJarStep](#cfn-emr-cluster-stepconfig-hadoopjarstep): 
    HadoopJarStepConfig
  [Name](#cfn-emr-cluster-stepconfig-name): String
```

## Properties
<a name="aws-properties-emr-cluster-stepconfig-properties"></a>

`ActionOnFailure`  <a name="cfn-emr-cluster-stepconfig-actiononfailure"></a>
The action to take when the cluster step fails. Possible values are `CANCEL_AND_WAIT` and `CONTINUE`.  
*Required*: No  
*Type*: String  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`HadoopJarStep`  <a name="cfn-emr-cluster-stepconfig-hadoopjarstep"></a>
The JAR file used for the step.  
*Required*: Yes  
*Type*: [HadoopJarStepConfig](aws-properties-emr-cluster-hadoopjarstepconfig.md)  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`Name`  <a name="cfn-emr-cluster-stepconfig-name"></a>
The name of the step.  
*Required*: Yes  
*Type*: String  
*Pattern*: `[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*`  
*Minimum*: `0`  
*Maximum*: `256`  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)