Class: AWSCDK::StepFunctionsTasks::EMRCreateCluster::ScalingActionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::StepFunctionsTasks::EMRCreateCluster::ScalingActionProperty
- Defined in:
- step_functions_tasks/emr_create_cluster.rb
Overview
The type of adjustment the automatic scaling activity makes when triggered, and the periodicity of the adjustment.
And an automatic scaling configuration, which describes how the policy adds or removes instances, the cooldown period, and the number of EC2 instances that will be added each time the CloudWatch metric alarm condition is satisfied.
Instance Attribute Summary collapse
-
#market ⇒ AWSCDK::StepFunctionsTasks::EMRCreateCluster::InstanceMarket?
readonly
Not available for instance groups.
-
#simple_scaling_policy_configuration ⇒ AWSCDK::StepFunctionsTasks::EMRCreateCluster::SimpleScalingPolicyConfigurationProperty
readonly
The type of adjustment the automatic scaling activity makes when triggered, and the periodicity of the adjustment.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(simple_scaling_policy_configuration:, market: nil) ⇒ ScalingActionProperty
constructor
A new instance of ScalingActionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(simple_scaling_policy_configuration:, market: nil) ⇒ ScalingActionProperty
Returns a new instance of ScalingActionProperty.
2276 2277 2278 2279 2280 2281 |
# File 'step_functions_tasks/emr_create_cluster.rb', line 2276 def initialize(simple_scaling_policy_configuration:, market: nil) @simple_scaling_policy_configuration = simple_scaling_policy_configuration.is_a?(Hash) ? ::AWSCDK::StepFunctionsTasks::EMRCreateCluster::SimpleScalingPolicyConfigurationProperty.new(**simple_scaling_policy_configuration.transform_keys(&:to_sym)) : simple_scaling_policy_configuration Jsii::Type.check_type(@simple_scaling_policy_configuration, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9uc190YXNrcy5FbXJDcmVhdGVDbHVzdGVyLlNpbXBsZVNjYWxpbmdQb2xpY3lDb25maWd1cmF0aW9uUHJvcGVydHkifQ==")), "simpleScalingPolicyConfiguration") @market = market Jsii::Type.check_type(@market, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9uc190YXNrcy5FbXJDcmVhdGVDbHVzdGVyLkluc3RhbmNlTWFya2V0In0=")), "market") unless @market.nil? end |
Instance Attribute Details
#market ⇒ AWSCDK::StepFunctionsTasks::EMRCreateCluster::InstanceMarket? (readonly)
Default: - EMR selected default
Not available for instance groups.
Instance groups use the market type specified for the group.
2293 2294 2295 |
# File 'step_functions_tasks/emr_create_cluster.rb', line 2293 def market @market end |
#simple_scaling_policy_configuration ⇒ AWSCDK::StepFunctionsTasks::EMRCreateCluster::SimpleScalingPolicyConfigurationProperty (readonly)
The type of adjustment the automatic scaling activity makes when triggered, and the periodicity of the adjustment.
2286 2287 2288 |
# File 'step_functions_tasks/emr_create_cluster.rb', line 2286 def simple_scaling_policy_configuration @simple_scaling_policy_configuration end |
Class Method Details
.jsii_properties ⇒ Object
2295 2296 2297 2298 2299 2300 |
# File 'step_functions_tasks/emr_create_cluster.rb', line 2295 def self.jsii_properties { :simple_scaling_policy_configuration => "simpleScalingPolicyConfiguration", :market => "market", } end |
Instance Method Details
#to_jsii ⇒ Object
2302 2303 2304 2305 2306 2307 2308 2309 |
# File 'step_functions_tasks/emr_create_cluster.rb', line 2302 def to_jsii result = {} result.merge!({ "simpleScalingPolicyConfiguration" => @simple_scaling_policy_configuration, "market" => @market, }) result.compact end |