Class: AWSCDK::PCS::CfnComputeNodeGroup::ScalingConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pcs/cfn_compute_node_group.rb

Overview

Specifies the boundaries of the compute node group auto scaling.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(max_instance_count:, min_instance_count:) ⇒ ScalingConfigurationProperty

Returns a new instance of ScalingConfigurationProperty.

Parameters:

  • max_instance_count (Numeric)

    The upper bound of the number of instances allowed in the compute fleet.

  • min_instance_count (Numeric)

    The lower bound of the number of instances allowed in the compute fleet.



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_countNumeric (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_countNumeric (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_propertiesObject



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_jsiiObject



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