@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)", date="2022-08-02T20:25:25.412Z") 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.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnStep(Construct scope,
java.lang.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 |
---|---|
java.lang.String |
getActionOnFailure()
This specifies what action to take when the cluster step fails.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.Object |
getHadoopJarStep()
The `HadoopJarStepConfig` property type specifies a job flow step consisting of a JAR file whose main function will be executed.
|
java.lang.String |
getJobFlowId()
A string that uniquely identifies the cluster (job flow).
|
java.lang.String |
getName()
The name of the cluster step.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setActionOnFailure(java.lang.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(java.lang.String value)
A string that uniquely identifies the cluster (job flow).
|
void |
setName(java.lang.String value)
The name of the cluster step.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnStep(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnStep(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnStep(Construct scope, java.lang.String id, 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.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.String getActionOnFailure()
Possible values are CANCEL_AND_WAIT
and CONTINUE
.
public void setActionOnFailure(java.lang.String value)
Possible values are CANCEL_AND_WAIT
and CONTINUE
.
public java.lang.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.
public void setHadoopJarStep(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.
public void setHadoopJarStep(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.
public java.lang.String getJobFlowId()
public void setJobFlowId(java.lang.String value)
public java.lang.String getName()
public void setName(java.lang.String value)