Class: AWSCDK::EMR::CfnCluster::StepConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hadoop_jar_step:, name:, action_on_failure: nil) ⇒ StepConfigProperty

Returns a new instance of StepConfigProperty.

Parameters:



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_failureString? (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

#nameString (readonly)

The name of the step.



3098
3099
3100
# File 'emr/cfn_cluster.rb', line 3098

def name
  @name
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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