@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.235Z") @Stability(value=Stable) public class CfnStep extends CfnResource implements IInspectable
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.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.emr.*;
CfnStep cfnStep = CfnStep.Builder.create(this, "MyCfnStep")
.actionOnFailure("actionOnFailure")
.hadoopJarStep(HadoopJarStepConfigProperty.builder()
.jar("jar")
// the properties below are optional
.args(List.of("args"))
.mainClass("mainClass")
.stepProperties(List.of(KeyValueProperty.builder()
.key("key")
.value("value")
.build()))
.build())
.jobFlowId("jobFlowId")
.name("name")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnStep.Builder
A fluent builder for
CfnStep. |
static interface |
CfnStep.HadoopJarStepConfigProperty
A job flow step consisting of a JAR file whose main function will be executed.
|
static interface |
CfnStep.KeyValueProperty
`KeyValue` is a subproperty of the `HadoopJarStepConfig` property type.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnStep(software.constructs.Construct scope,
String id,
CfnStepProps props)
Create a new `AWS::EMR::Step`.
|
protected |
CfnStep(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnStep(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getActionOnFailure()
This specifies what action to take when the cluster step fails.
|
protected Map<String,Object> |
getCfnProperties() |
Object |
getHadoopJarStep()
The `HadoopJarStepConfig` property type specifies a job flow step consisting of a JAR file whose main function will be executed.
|
String |
getJobFlowId()
A string that uniquely identifies the cluster (job flow).
|
String |
getName()
The name of the cluster step.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setActionOnFailure(String value)
This specifies what action to take when the cluster step fails.
|
void |
setHadoopJarStep(CfnStep.HadoopJarStepConfigProperty value)
The `HadoopJarStepConfig` property type specifies a job flow step consisting of a JAR file whose main function will be executed.
|
void |
setHadoopJarStep(IResolvable value)
The `HadoopJarStepConfig` property type specifies a job flow step consisting of a JAR file whose main function will be executed.
|
void |
setJobFlowId(String value)
A string that uniquely identifies the cluster (job flow).
|
void |
setName(String value)
The name of the cluster step.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnStep(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnStep(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnStep(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnStepProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getActionOnFailure()
Possible values are CANCEL_AND_WAIT and CONTINUE .
@Stability(value=Stable)
public void setActionOnFailure(@NotNull
String value)
Possible values are CANCEL_AND_WAIT and CONTINUE .
@Stability(value=Stable) @NotNull public Object getHadoopJarStep()
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.
@Stability(value=Stable)
public void setHadoopJarStep(@NotNull
CfnStep.HadoopJarStepConfigProperty value)
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.
@Stability(value=Stable)
public void setHadoopJarStep(@NotNull
IResolvable value)
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.
@Stability(value=Stable) @NotNull public String getJobFlowId()
@Stability(value=Stable)
public void setJobFlowId(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getName()
@Stability(value=Stable)
public void setName(@NotNull
String value)
Copyright © 2022. All rights reserved.