Class: AWSCDK::EMR::CfnStep::HadoopJarStepConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
emr/cfn_step.rb

Overview

A job flow step consisting of a JAR file whose main function will be executed.

The main function submits a job for Hadoop to execute and waits for the job to finish or fail.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(jar:, args: nil, main_class: nil, step_properties: nil) ⇒ HadoopJarStepConfigProperty

Returns a new instance of HadoopJarStepConfigProperty.

Parameters:

  • jar (String)

    A path to a JAR file run during the step.

  • args (Array<String>, nil) (defaults to: nil)

    A list of command line arguments passed to the JAR file's main function when executed.

  • main_class (String, nil) (defaults to: nil)

    The name of the main class in the specified Java file.

  • step_properties (AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::EMR::CfnStep::KeyValueProperty>, nil) (defaults to: nil)

    A list of Java properties that are set when the step runs.



573
574
575
576
577
578
579
580
581
582
# File 'emr/cfn_step.rb', line 573

def initialize(jar:, args: nil, main_class: nil, step_properties: nil)
  @jar = jar
  Jsii::Type.check_type(@jar, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "jar")
  @args = args
  Jsii::Type.check_type(@args, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "args") unless @args.nil?
  @main_class = main_class
  Jsii::Type.check_type(@main_class, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "mainClass") unless @main_class.nil?
  @step_properties = step_properties
  Jsii::Type.check_type(@step_properties, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZW1yLkNmblN0ZXAuS2V5VmFsdWVQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "stepProperties") unless @step_properties.nil?
end

Instance Attribute Details

#argsArray<String>? (readonly)

A list of command line arguments passed to the JAR file's main function when executed.



593
594
595
# File 'emr/cfn_step.rb', line 593

def args
  @args
end

#jarString (readonly)

A path to a JAR file run during the step.



588
589
590
# File 'emr/cfn_step.rb', line 588

def jar
  @jar
end

#main_classString? (readonly)

The name of the main class in the specified Java file.

If not specified, the JAR file should specify a Main-Class in its manifest file.



600
601
602
# File 'emr/cfn_step.rb', line 600

def main_class
  @main_class
end

#step_propertiesAWSCDK::IResolvable, ... (readonly)

A list of Java properties that are set when the step runs.

You can use these properties to pass key value pairs to your main function.



607
608
609
# File 'emr/cfn_step.rb', line 607

def step_properties
  @step_properties
end

Class Method Details

.jsii_propertiesObject



609
610
611
612
613
614
615
616
# File 'emr/cfn_step.rb', line 609

def self.jsii_properties
  {
    :jar => "jar",
    :args => "args",
    :main_class => "mainClass",
    :step_properties => "stepProperties",
  }
end

Instance Method Details

#to_jsiiObject



618
619
620
621
622
623
624
625
626
627
# File 'emr/cfn_step.rb', line 618

def to_jsii
  result = {}
  result.merge!({
    "jar" => @jar,
    "args" => @args,
    "mainClass" => @main_class,
    "stepProperties" => @step_properties,
  })
  result.compact
end