CfnStepProps
- class aws_cdk.aws_emr.CfnStepProps(*, action_on_failure, hadoop_jar_step, job_flow_id, name, encryption_key_arn=None, log_uri=None)
Bases:
objectProperties for defining a
CfnStep.- Parameters:
action_on_failure (
str) – This specifies what action to take when the cluster step fails. Possible values areCANCEL_AND_WAITandCONTINUE.hadoop_jar_step (
Union[IResolvable,HadoopJarStepConfigProperty,Dict[str,Any]]) – TheHadoopJarStepConfigproperty 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.job_flow_id (
str) – A string that uniquely identifies the cluster (job flow).name (
str) – The name of the cluster step.encryption_key_arn (
Optional[str]) – 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.log_uri (
Optional[str]) – The Amazon S3 destination URI for log publishing. When omitted, EMR falls back to cluster-level logging behavior.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-step.html
- ExampleMetadata:
fixture=_generated
Example:
# 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" )
Attributes
- action_on_failure
This specifies what action to take when the cluster step fails.
Possible values are
CANCEL_AND_WAITandCONTINUE.
- encryption_key_arn
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.
- hadoop_jar_step
The
HadoopJarStepConfigproperty 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.
- job_flow_id
A string that uniquely identifies the cluster (job flow).
- log_uri
The Amazon S3 destination URI for log publishing.
When omitted, EMR falls back to cluster-level logging behavior.
- name
The name of the cluster step.