Class: AWSCDK::PCS::CfnComputeNodeGroup::ScalingConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::PCS::CfnComputeNodeGroup::ScalingConfigurationProperty
- Defined in:
- pcs/cfn_compute_node_group.rb
Overview
Specifies the boundaries of the compute node group auto scaling.
Instance Attribute Summary collapse
-
#max_instance_count ⇒ Numeric
readonly
The upper bound of the number of instances allowed in the compute fleet.
-
#min_instance_count ⇒ Numeric
readonly
The lower bound of the number of instances allowed in the compute fleet.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(max_instance_count:, min_instance_count:) ⇒ ScalingConfigurationProperty
constructor
A new instance of ScalingConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(max_instance_count:, min_instance_count:) ⇒ ScalingConfigurationProperty
Returns a new instance of ScalingConfigurationProperty.
813 814 815 816 817 818 |
# File 'pcs/cfn_compute_node_group.rb', line 813 def initialize(max_instance_count:, min_instance_count:) @max_instance_count = max_instance_count Jsii::Type.check_type(@max_instance_count, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxInstanceCount") @min_instance_count = min_instance_count Jsii::Type.check_type(@min_instance_count, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "minInstanceCount") end |
Instance Attribute Details
#max_instance_count ⇒ Numeric (readonly)
The upper bound of the number of instances allowed in the compute fleet.
824 825 826 |
# File 'pcs/cfn_compute_node_group.rb', line 824 def max_instance_count @max_instance_count end |
#min_instance_count ⇒ Numeric (readonly)
The lower bound of the number of instances allowed in the compute fleet.
829 830 831 |
# File 'pcs/cfn_compute_node_group.rb', line 829 def min_instance_count @min_instance_count end |
Class Method Details
.jsii_properties ⇒ Object
831 832 833 834 835 836 |
# File 'pcs/cfn_compute_node_group.rb', line 831 def self.jsii_properties { :max_instance_count => "maxInstanceCount", :min_instance_count => "minInstanceCount", } end |
Instance Method Details
#to_jsii ⇒ Object
838 839 840 841 842 843 844 845 |
# File 'pcs/cfn_compute_node_group.rb', line 838 def to_jsii result = {} result.merge!({ "maxInstanceCount" => @max_instance_count, "minInstanceCount" => @min_instance_count, }) result.compact end |