Skip to content
v2.278.0

StepConfigProperty Struct ​

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.

Example ​

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
# 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
// 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();
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"
};
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 ​

actionOnFailureoptionalstringaction_on_failureoptionalstractionOnFailureoptionalStringActionOnFailureoptionalstringActionOnFailureoptional*string #
The action to take when the cluster step fails.

Possible values are CANCEL_AND_WAIT and CONTINUE .

hadoopJarStepIResolvable | CfnCluster.HadoopJarStepConfigPropertyhadoop_jar_steptyping.Union[IResolvable, HadoopJarStepConfigProperty]hadoopJarStepIResolvableHadoopJarStepIResolvableHadoopJarStepinterface{} required #
The JAR file used for the step.
namestringnamestrnameStringNamestringName*string required #
The name of the step.