Skip to content
v2.275.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',
};

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*stringrequired#
The name of the step.