AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::EMR::Step

CfnStep

Use `Step` to specify a cluster (job flow) step, which runs only on the master node. Steps are used to submit data processing jobs to a cluster.

Import

import { CfnStep } from 'aws-cdk-lib/aws-emr';

Or use the module namespace:

import * as emr from 'aws-cdk-lib/aws-emr';
// emr.CfnStep

Properties

Configuration passed to the constructor as CfnStepProps.

actionOnFailureRequired
string

This specifies what action to take when the cluster step fails. Possible values are `CANCEL_AND_WAIT` and `CONTINUE` .

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

jobFlowIdRequired
string

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

nameRequired
string

The name of the cluster step.

encryptionKeyArnOptional
string

The KMS key ARN to encrypt the logs published to the given Amazon S3 destination. When omitted, EMR falls back to cluster-level logging behavior.

logUriOptional
string

The Amazon S3 destination URI for log publishing. When omitted, EMR falls back to cluster-level logging behavior.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter