CfnStepProps Struct
Properties for defining a CfnStep.
| Source | |
|---|---|
| Type last changed |
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',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_emr as emr
cfn_step_props = emr.CfnStepProps(
action_on_failure="actionOnFailure",
hadoop_jar_step=emr.CfnStep.HadoopJarStepConfigProperty(
jar="jar",
# the properties below are optional
args=["args"],
main_class="mainClass",
step_properties=[emr.CfnStep.KeyValueProperty(
key="key",
value="value"
)]
),
job_flow_id="jobFlowId",
name="name",
# the properties below are optional
encryption_key_arn="encryptionKeyArn",
log_uri="logUri"
)
java
// 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.*;
CfnStepProps cfnStepProps = CfnStepProps.builder()
.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")
// the properties below are optional
.encryptionKeyArn("encryptionKeyArn")
.logUri("logUri")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EMR;
var cfnStepProps = new CfnStepProps {
ActionOnFailure = "actionOnFailure",
HadoopJarStep = new HadoopJarStepConfigProperty {
Jar = "jar",
// the properties below are optional
Args = new [] { "args" },
MainClass = "mainClass",
StepProperties = new [] { new KeyValueProperty {
Key = "key",
Value = "value"
} }
},
JobFlowId = "jobFlowId",
Name = "name",
// the properties below are optional
EncryptionKeyArn = "encryptionKeyArn",
LogUri = "logUri"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnStepProps := &CfnStepProps{
ActionOnFailure: jsii.String("actionOnFailure"),
HadoopJarStep: &HadoopJarStepConfigProperty{
Jar: jsii.String("jar"),
// the properties below are optional
Args: []*string{
jsii.String("args"),
},
MainClass: jsii.String("mainClass"),
StepProperties: []interface{}{
&KeyValueProperty{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
},
JobFlowId: jsii.String("jobFlowId"),
Name: jsii.String("name"),
// the properties below are optional
EncryptionKeyArn: jsii.String("encryptionKeyArn"),
LogUri: jsii.String("logUri"),
}
Properties
actionOnFailurestringaction_on_failurestractionOnFailureStringActionOnFailurestringActionOnFailure*string required #This specifies what action to take when the cluster step fails.
Possible values are CANCEL_AND_WAIT and CONTINUE .
encryptionKeyArnoptionalstringencryption_key_arnoptionalstrencryptionKeyArnoptionalStringEncryptionKeyArnoptionalstringEncryptionKeyArnoptional*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.
hadoopJarStepIResolvable | CfnStep.hadoop_jar_steptyping.Union[IResolvable, HadoopJarStepConfigProperty]hadoopJarStepIResolvableHadoopJarStepIResolvableHadoopJarStepinterface{} 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.
A string that uniquely identifies the cluster (job flow).
logUrioptionalstringlog_urioptionalstrlogUrioptionalStringLogUrioptionalstringLogUrioptional*string #The Amazon S3 destination URI for log publishing.
When omitted, EMR falls back to cluster-level logging behavior.
The name of the cluster step.