Class: AWSCDK::Autoscaling::CfnAutoScalingGroup::TotalLocalStorageGBRequestProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
autoscaling/cfn_auto_scaling_group.rb

Overview

TotalLocalStorageGBRequest is a property of the InstanceRequirements property of the AWS::AutoScaling::AutoScalingGroup LaunchTemplateOverrides property type that describes the minimum and maximum total local storage size for an instance type, in GB.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(max: nil, min: nil) ⇒ TotalLocalStorageGBRequestProperty

Returns a new instance of TotalLocalStorageGBRequestProperty.

Parameters:

  • max (Numeric, nil) (defaults to: nil)

    The storage maximum in GB.

  • min (Numeric, nil) (defaults to: nil)

    The storage minimum in GB.



2865
2866
2867
2868
2869
2870
# File 'autoscaling/cfn_auto_scaling_group.rb', line 2865

def initialize(max: nil, min: nil)
  @max = max
  Jsii::Type.check_type(@max, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "max") unless @max.nil?
  @min = min
  Jsii::Type.check_type(@min, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "min") unless @min.nil?
end

Instance Attribute Details

#maxNumeric? (readonly)

The storage maximum in GB.



2876
2877
2878
# File 'autoscaling/cfn_auto_scaling_group.rb', line 2876

def max
  @max
end

#minNumeric? (readonly)

The storage minimum in GB.



2881
2882
2883
# File 'autoscaling/cfn_auto_scaling_group.rb', line 2881

def min
  @min
end

Class Method Details

.jsii_propertiesObject



2883
2884
2885
2886
2887
2888
# File 'autoscaling/cfn_auto_scaling_group.rb', line 2883

def self.jsii_properties
  {
    :max => "max",
    :min => "min",
  }
end

Instance Method Details

#to_jsiiObject



2890
2891
2892
2893
2894
2895
2896
2897
# File 'autoscaling/cfn_auto_scaling_group.rb', line 2890

def to_jsii
  result = {}
  result.merge!({
    "max" => @max,
    "min" => @min,
  })
  result.compact
end