interface CfnStepProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.EMR.CfnStepProps |
Java | software.amazon.awscdk.services.emr.CfnStepProps |
Python | aws_cdk.aws_emr.CfnStepProps |
TypeScript | @aws-cdk/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 * as emr from '@aws-cdk/aws-emr';
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
Name | Type | Description |
---|---|---|
action | string | This specifies what action to take when the cluster step fails. |
hadoop | IResolvable | Hadoop | The HadoopJarStepConfig property type specifies a job flow step consisting of a JAR file whose main function will be executed. |
job | string | A string that uniquely identifies the cluster (job flow). |
name | string | The 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
|
Hadoop
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.