Class: AWSCDK::EMR::CfnCluster::ScalingActionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EMR::CfnCluster::ScalingActionProperty
- Defined in:
- emr/cfn_cluster.rb
Overview
ScalingAction is a subproperty of the ScalingRule property type.
ScalingAction determines the type of adjustment the automatic scaling activity makes when triggered, and the periodicity of the adjustment.
Instance Attribute Summary collapse
-
#market ⇒ String?
readonly
Not available for instance groups.
-
#simple_scaling_policy_configuration ⇒ AWSCDK::IResolvable, AWSCDK::EMR::CfnCluster::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.
2647 2648 2649 2650 2651 2652 |
# File 'emr/cfn_cluster.rb', line 2647 def initialize(simple_scaling_policy_configuration:, market: nil) @simple_scaling_policy_configuration = simple_scaling_policy_configuration.is_a?(Hash) ? ::AWSCDK::EMR::CfnCluster::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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lbXIuQ2ZuQ2x1c3Rlci5TaW1wbGVTY2FsaW5nUG9saWN5Q29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "simpleScalingPolicyConfiguration") @market = market Jsii::Type.check_type(@market, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "market") unless @market.nil? end |
Instance Attribute Details
#market ⇒ String? (readonly)
Not available for instance groups.
Instance groups use the market type specified for the group.
2665 2666 2667 |
# File 'emr/cfn_cluster.rb', line 2665 def market @market end |
#simple_scaling_policy_configuration ⇒ AWSCDK::IResolvable, AWSCDK::EMR::CfnCluster::SimpleScalingPolicyConfigurationProperty (readonly)
The type of adjustment the automatic scaling activity makes when triggered, and the periodicity of the adjustment.
2658 2659 2660 |
# File 'emr/cfn_cluster.rb', line 2658 def simple_scaling_policy_configuration @simple_scaling_policy_configuration end |
Class Method Details
.jsii_properties ⇒ Object
2667 2668 2669 2670 2671 2672 |
# File 'emr/cfn_cluster.rb', line 2667 def self.jsii_properties { :simple_scaling_policy_configuration => "simpleScalingPolicyConfiguration", :market => "market", } end |
Instance Method Details
#to_jsii ⇒ Object
2674 2675 2676 2677 2678 2679 2680 2681 |
# File 'emr/cfn_cluster.rb', line 2674 def to_jsii result = {} result.merge!({ "simpleScalingPolicyConfiguration" => @simple_scaling_policy_configuration, "market" => @market, }) result.compact end |