Class: AWSCDK::EMR::CfnCluster::StepConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EMR::CfnCluster::StepConfigProperty
- Defined in:
- emr/cfn_cluster.rb
Overview
StepConfig is a property of the AWS::EMR::Cluster resource.
The StepConfig property type specifies a cluster (job flow) step, which runs only on the master node. Steps are used to submit data processing jobs to the cluster.
Instance Attribute Summary collapse
-
#action_on_failure ⇒ String?
readonly
The action to take when the cluster step fails.
-
#hadoop_jar_step ⇒ AWSCDK::IResolvable, AWSCDK::EMR::CfnCluster::HadoopJarStepConfigProperty
readonly
The JAR file used for the step.
-
#name ⇒ String
readonly
The name of the step.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(hadoop_jar_step:, name:, action_on_failure: nil) ⇒ StepConfigProperty
constructor
A new instance of StepConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(hadoop_jar_step:, name:, action_on_failure: nil) ⇒ StepConfigProperty
Returns a new instance of StepConfigProperty.
3080 3081 3082 3083 3084 3085 3086 3087 |
# File 'emr/cfn_cluster.rb', line 3080 def initialize(hadoop_jar_step:, name:, action_on_failure: nil) @hadoop_jar_step = hadoop_jar_step.is_a?(Hash) ? ::AWSCDK::EMR::CfnCluster::HadoopJarStepConfigProperty.new(**hadoop_jar_step.transform_keys(&:to_sym)) : hadoop_jar_step Jsii::Type.check_type(@hadoop_jar_step, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lbXIuQ2ZuQ2x1c3Rlci5IYWRvb3BKYXJTdGVwQ29uZmlnUHJvcGVydHkifV19fQ==")), "hadoopJarStep") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @action_on_failure = action_on_failure Jsii::Type.check_type(@action_on_failure, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "actionOnFailure") unless @action_on_failure.nil? end |
Instance Attribute Details
#action_on_failure ⇒ String? (readonly)
The action to take when the cluster step fails.
Possible values are CANCEL_AND_WAIT and CONTINUE .
3105 3106 3107 |
# File 'emr/cfn_cluster.rb', line 3105 def action_on_failure @action_on_failure end |
#hadoop_jar_step ⇒ AWSCDK::IResolvable, AWSCDK::EMR::CfnCluster::HadoopJarStepConfigProperty (readonly)
The JAR file used for the step.
3093 3094 3095 |
# File 'emr/cfn_cluster.rb', line 3093 def hadoop_jar_step @hadoop_jar_step end |
#name ⇒ String (readonly)
The name of the step.
3098 3099 3100 |
# File 'emr/cfn_cluster.rb', line 3098 def name @name end |
Class Method Details
.jsii_properties ⇒ Object
3107 3108 3109 3110 3111 3112 3113 |
# File 'emr/cfn_cluster.rb', line 3107 def self.jsii_properties { :hadoop_jar_step => "hadoopJarStep", :name => "name", :action_on_failure => "actionOnFailure", } end |
Instance Method Details
#to_jsii ⇒ Object
3115 3116 3117 3118 3119 3120 3121 3122 3123 |
# File 'emr/cfn_cluster.rb', line 3115 def to_jsii result = {} result.merge!({ "hadoopJarStep" => @hadoop_jar_step, "name" => @name, "actionOnFailure" => @action_on_failure, }) result.compact end |