Class: AWSCDK::StepFunctionsTasks::EMRCreateCluster::ScriptBootstrapActionConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
step_functions_tasks/emr_create_cluster.rb

Overview

Configuration of the script to run during a bootstrap action.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path:, args: nil) ⇒ ScriptBootstrapActionConfigProperty

Returns a new instance of ScriptBootstrapActionConfigProperty.

Parameters:

  • path (String)

    Location of the script to run during a bootstrap action.

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

    A list of command line arguments to pass to the bootstrap action script.



2488
2489
2490
2491
2492
2493
# File 'step_functions_tasks/emr_create_cluster.rb', line 2488

def initialize(path:, args: nil)
  @path = path
  Jsii::Type.check_type(@path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "path")
  @args = args
  Jsii::Type.check_type(@args, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "args") unless @args.nil?
end

Instance Attribute Details

#argsArray<String>? (readonly)

Note:

Default: No args

A list of command line arguments to pass to the bootstrap action script.

Returns:

  • (Array<String>, nil)


2505
2506
2507
# File 'step_functions_tasks/emr_create_cluster.rb', line 2505

def args
  @args
end

#pathString (readonly)

Location of the script to run during a bootstrap action.

Can be either a location in Amazon S3 or on a local file system.

Returns:

  • (String)


2500
2501
2502
# File 'step_functions_tasks/emr_create_cluster.rb', line 2500

def path
  @path
end

Class Method Details

.jsii_propertiesObject



2507
2508
2509
2510
2511
2512
# File 'step_functions_tasks/emr_create_cluster.rb', line 2507

def self.jsii_properties
  {
    :path => "path",
    :args => "args",
  }
end

Instance Method Details

#to_jsiiObject



2514
2515
2516
2517
2518
2519
2520
2521
# File 'step_functions_tasks/emr_create_cluster.rb', line 2514

def to_jsii
  result = {}
  result.merge!({
    "path" => @path,
    "args" => @args,
  })
  result.compact
end