Class: AWSCDK::EMR::CfnCluster::BootstrapActionConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EMR::CfnCluster::BootstrapActionConfigProperty
- Defined in:
- emr/cfn_cluster.rb
Overview
BootstrapActionConfig is a property of AWS::EMR::Cluster that can be used to run bootstrap actions on EMR clusters.
You can use a bootstrap action to install software and configure EC2 instances for all cluster nodes before EMR installs and configures open-source big data applications on cluster instances. For more information, see Create Bootstrap Actions to Install Additional Software in the Amazon EMR Management Guide .
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
The name of the bootstrap action.
-
#script_bootstrap_action ⇒ AWSCDK::IResolvable, AWSCDK::EMR::CfnCluster::ScriptBootstrapActionConfigProperty
readonly
The script run by the bootstrap action.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, script_bootstrap_action:) ⇒ BootstrapActionConfigProperty
constructor
A new instance of BootstrapActionConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, script_bootstrap_action:) ⇒ BootstrapActionConfigProperty
Returns a new instance of BootstrapActionConfigProperty.
1040 1041 1042 1043 1044 1045 |
# File 'emr/cfn_cluster.rb', line 1040 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::EMR::CfnCluster::ScriptBootstrapActionConfigProperty.new(**script_bootstrap_action.transform_keys(&:to_sym)) : script_bootstrap_action Jsii::Type.check_type(@script_bootstrap_action, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lbXIuQ2ZuQ2x1c3Rlci5TY3JpcHRCb290c3RyYXBBY3Rpb25Db25maWdQcm9wZXJ0eSJ9XX19")), "scriptBootstrapAction") end |
Instance Attribute Details
#name ⇒ String (readonly)
The name of the bootstrap action.
1051 1052 1053 |
# File 'emr/cfn_cluster.rb', line 1051 def name @name end |
#script_bootstrap_action ⇒ AWSCDK::IResolvable, AWSCDK::EMR::CfnCluster::ScriptBootstrapActionConfigProperty (readonly)
The script run by the bootstrap action.
1056 1057 1058 |
# File 'emr/cfn_cluster.rb', line 1056 def script_bootstrap_action @script_bootstrap_action end |
Class Method Details
.jsii_properties ⇒ Object
1058 1059 1060 1061 1062 1063 |
# File 'emr/cfn_cluster.rb', line 1058 def self.jsii_properties { :name => "name", :script_bootstrap_action => "scriptBootstrapAction", } end |
Instance Method Details
#to_jsii ⇒ Object
1065 1066 1067 1068 1069 1070 1071 1072 |
# File 'emr/cfn_cluster.rb', line 1065 def to_jsii result = {} result.merge!({ "name" => @name, "scriptBootstrapAction" => @script_bootstrap_action, }) result.compact end |