# StepConfigProperty

`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.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_emr as emr } from 'aws-cdk-lib';
const stepConfigProperty: emr.CfnCluster.StepConfigProperty = {
  hadoopJarStep: {
    jar: 'jar',

    // the properties below are optional
    args: ['args'],
    mainClass: 'mainClass',
    stepProperties: [{
      key: 'key',
      value: 'value',
    }],
  },
  name: 'name',

  // the properties below are optional
  actionOnFailure: 'actionOnFailure',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_emr as emr

step_config_property = emr.CfnCluster.StepConfigProperty(
    hadoop_jar_step=emr.CfnCluster.HadoopJarStepConfigProperty(
        jar="jar",

        # the properties below are optional
        args=["args"],
        main_class="mainClass",
        step_properties=[emr.CfnCluster.KeyValueProperty(
            key="key",
            value="value"
        )]
    ),
    name="name",

    # the properties below are optional
    action_on_failure="actionOnFailure"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.emr.*;

StepConfigProperty stepConfigProperty = StepConfigProperty.builder()
        .hadoopJarStep(HadoopJarStepConfigProperty.builder()
                .jar("jar")

                // the properties below are optional
                .args(List.of("args"))
                .mainClass("mainClass")
                .stepProperties(List.of(KeyValueProperty.builder()
                        .key("key")
                        .value("value")
                        .build()))
                .build())
        .name("name")

        // the properties below are optional
        .actionOnFailure("actionOnFailure")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EMR;

var stepConfigProperty = new StepConfigProperty {
    HadoopJarStep = new HadoopJarStepConfigProperty {
        Jar = "jar",

        // the properties below are optional
        Args = new [] { "args" },
        MainClass = "mainClass",
        StepProperties = new [] { new KeyValueProperty {
            Key = "key",
            Value = "value"
        } }
    },
    Name = "name",

    // the properties below are optional
    ActionOnFailure = "actionOnFailure"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

stepConfigProperty := &StepConfigProperty{
	HadoopJarStep: &HadoopJarStepConfigProperty{
		Jar: jsii.String("jar"),

		// the properties below are optional
		Args: []*string{
			jsii.String("args"),
		},
		MainClass: jsii.String("mainClass"),
		StepProperties: []interface{}{
			&KeyValueProperty{
				Key: jsii.String("key"),
				Value: jsii.String("value"),
			},
		},
	},
	Name: jsii.String("name"),

	// the properties below are optional
	ActionOnFailure: jsii.String("actionOnFailure"),
}
```

## Properties

- `actionOnFailure`: string — The action to take when the cluster step fails.

  Possible values are `CANCEL_AND_WAIT` and `CONTINUE` .

- `hadoopJarStep`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCluster.HadoopJarStepConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_emr.CfnCluster.HadoopJarStepConfigProperty.html) (required) — The JAR file used for the step.

- `name`: string (required) — The name of the step.
