aws-cdk-lib.aws_emr.CfnStepProps

interface CfnStepProps

LanguageType name
.NETAmazon.CDK.AWS.EMR.CfnStepProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsemr#CfnStepProps
Javasoftware.amazon.awscdk.services.emr.CfnStepProps
Pythonaws_cdk.aws_emr.CfnStepProps
TypeScript aws-cdk-lib » aws_emr » CfnStepProps

Properties for defining a CfnStep.

Example

// 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 cfnStepProps: emr.CfnStepProps = {
  actionOnFailure: 'actionOnFailure',
  hadoopJarStep: {
    jar: 'jar',

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

Properties

NameTypeDescription
actionOnFailurestringThis specifies what action to take when the cluster step fails.
hadoopJarStepIResolvable | HadoopJarStepConfigPropertyThe HadoopJarStepConfig property type specifies a job flow step consisting of a JAR file whose main function will be executed.
jobFlowIdstringA string that uniquely identifies the cluster (job flow).
namestringThe name of the cluster step.

actionOnFailure

Type: string

This specifies what action to take when the cluster step fails.

Possible values are CANCEL_AND_WAIT and CONTINUE .


hadoopJarStep

Type: IResolvable | HadoopJarStepConfigProperty

The HadoopJarStepConfig property type specifies a job flow step consisting of a JAR file whose main function will be executed.

The main function submits a job for the cluster to execute as a step on the master node, and then waits for the job to finish or fail before executing subsequent steps.


jobFlowId

Type: string

A string that uniquely identifies the cluster (job flow).


name

Type: string

The name of the cluster step.