Class: AWSCDK::Autoscaling::CfnAutoScalingGroup::AcceleratorTotalMemoryMiBRequestProperty

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

Overview

AcceleratorTotalMemoryMiBRequest is a property of the InstanceRequirements property of the AWS::AutoScaling::AutoScalingGroup LaunchTemplateOverrides property type that describes the minimum and maximum total memory size for the accelerators for an instance type, in MiB.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of AcceleratorTotalMemoryMiBRequestProperty.

Parameters:

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

    The memory maximum in MiB.

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

    The memory minimum in MiB.



1057
1058
1059
1060
1061
1062
# File 'autoscaling/cfn_auto_scaling_group.rb', line 1057

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 memory maximum in MiB.



1068
1069
1070
# File 'autoscaling/cfn_auto_scaling_group.rb', line 1068

def max
  @max
end

#minNumeric? (readonly)

The memory minimum in MiB.



1073
1074
1075
# File 'autoscaling/cfn_auto_scaling_group.rb', line 1073

def min
  @min
end

Class Method Details

.jsii_propertiesObject



1075
1076
1077
1078
1079
1080
# File 'autoscaling/cfn_auto_scaling_group.rb', line 1075

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

Instance Method Details

#to_jsiiObject



1082
1083
1084
1085
1086
1087
1088
1089
# File 'autoscaling/cfn_auto_scaling_group.rb', line 1082

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