Class: AWSCDK::EMR::CfnCluster::ScriptBootstrapActionConfigProperty

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

Overview

ScriptBootstrapActionConfig is a subproperty of the BootstrapActionConfig property type.

ScriptBootstrapActionConfig specifies the arguments and location of the bootstrap script for EMR to run on all cluster nodes before it installs open-source big data applications on them.

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 in Amazon S3 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.



2847
2848
2849
2850
2851
2852
# File 'emr/cfn_cluster.rb', line 2847

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)

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



2863
2864
2865
# File 'emr/cfn_cluster.rb', line 2863

def args
  @args
end

#pathString (readonly)

Location in Amazon S3 of the script to run during a bootstrap action.



2858
2859
2860
# File 'emr/cfn_cluster.rb', line 2858

def path
  @path
end

Class Method Details

.jsii_propertiesObject



2865
2866
2867
2868
2869
2870
# File 'emr/cfn_cluster.rb', line 2865

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

Instance Method Details

#to_jsiiObject



2872
2873
2874
2875
2876
2877
2878
2879
# File 'emr/cfn_cluster.rb', line 2872

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