Class: AWSCDK::StepFunctionsTasks::EMRCreateCluster::BootstrapActionConfigProperty

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

Overview

Configuration of a bootstrap action.

See the RunJobFlow API for complete documentation on input parameters

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, script_bootstrap_action:) ⇒ BootstrapActionConfigProperty

Returns a new instance of BootstrapActionConfigProperty.

Parameters:



792
793
794
795
796
797
# File 'step_functions_tasks/emr_create_cluster.rb', line 792

def initialize(name:, script_bootstrap_action:)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @script_bootstrap_action = script_bootstrap_action.is_a?(Hash) ? ::AWSCDK::StepFunctionsTasks::EMRCreateCluster::ScriptBootstrapActionConfigProperty.new(**script_bootstrap_action.transform_keys(&:to_sym)) : script_bootstrap_action
  Jsii::Type.check_type(@script_bootstrap_action, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9uc190YXNrcy5FbXJDcmVhdGVDbHVzdGVyLlNjcmlwdEJvb3RzdHJhcEFjdGlvbkNvbmZpZ1Byb3BlcnR5In0=")), "scriptBootstrapAction")
end

Instance Attribute Details

#nameString (readonly)

The name of the bootstrap action.

Returns:

  • (String)


802
803
804
# File 'step_functions_tasks/emr_create_cluster.rb', line 802

def name
  @name
end

#script_bootstrap_actionAWSCDK::StepFunctionsTasks::EMRCreateCluster::ScriptBootstrapActionConfigProperty (readonly)

The script run by the bootstrap action.



806
807
808
# File 'step_functions_tasks/emr_create_cluster.rb', line 806

def script_bootstrap_action
  @script_bootstrap_action
end

Class Method Details

.jsii_propertiesObject



808
809
810
811
812
813
# File 'step_functions_tasks/emr_create_cluster.rb', line 808

def self.jsii_properties
  {
    :name => "name",
    :script_bootstrap_action => "scriptBootstrapAction",
  }
end

Instance Method Details

#to_jsiiObject



815
816
817
818
819
820
821
822
# File 'step_functions_tasks/emr_create_cluster.rb', line 815

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "scriptBootstrapAction" => @script_bootstrap_action,
  })
  result.compact
end