# CfnStepProps

Properties for defining a `CfnStep`.

Extends: CfnStepProps
Used as props by: CfnStep

- Source: Generated code
- Type last changed: v2.234.0 · 8 Jan 2026

## 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 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',

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

## Properties

- `actionOnFailure`: string (required) — This specifies what action to take when the cluster step fails.

  Possible values are `CANCEL_AND_WAIT` and `CONTINUE` .

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

- `hadoopJarStep`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnStep.HadoopJarStepConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_emr.CfnStep.HadoopJarStepConfigProperty.html) (required) — 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`: string (required) — A string that uniquely identifies the cluster (job flow).

- `logUri`: string — The Amazon S3 destination URI for log publishing.

  When omitted, EMR falls back to cluster-level logging behavior.

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