Class: AWSCDK::EMR::CfnStep::HadoopJarStepConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EMR::CfnStep::HadoopJarStepConfigProperty
- 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
-
#args ⇒ Array<String>?
readonly
A list of command line arguments passed to the JAR file's main function when executed.
-
#jar ⇒ String
readonly
A path to a JAR file run during the step.
-
#main_class ⇒ String?
readonly
The name of the main class in the specified Java file.
-
#step_properties ⇒ AWSCDK::IResolvable, ...
readonly
A list of Java properties that are set when the step runs.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(jar:, args: nil, main_class: nil, step_properties: nil) ⇒ HadoopJarStepConfigProperty
constructor
A new instance of HadoopJarStepConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(jar:, args: nil, main_class: nil, step_properties: nil) ⇒ HadoopJarStepConfigProperty
Returns a new instance of HadoopJarStepConfigProperty.
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
#args ⇒ Array<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 |
#jar ⇒ String (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_class ⇒ String? (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_properties ⇒ AWSCDK::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_properties ⇒ Object
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_jsii ⇒ Object
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 |