Class: AWSCDK::Autoscaling::CfnAutoScalingGroup::MemoryGiBPerVCpuRequestProperty

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

Overview

MemoryGiBPerVCpuRequest is a property of the InstanceRequirements property of the AWS::AutoScaling::AutoScalingGroup LaunchTemplateOverrides property type that describes the minimum and maximum amount of memory per vCPU for an instance type, in GiB.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of MemoryGiBPerVCpuRequestProperty.

Parameters:

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

    The memory maximum in GiB.

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

    The memory minimum in GiB.



2350
2351
2352
2353
2354
2355
# File 'autoscaling/cfn_auto_scaling_group.rb', line 2350

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 GiB.



2361
2362
2363
# File 'autoscaling/cfn_auto_scaling_group.rb', line 2361

def max
  @max
end

#minNumeric? (readonly)

The memory minimum in GiB.



2366
2367
2368
# File 'autoscaling/cfn_auto_scaling_group.rb', line 2366

def min
  @min
end

Class Method Details

.jsii_propertiesObject



2368
2369
2370
2371
2372
2373
# File 'autoscaling/cfn_auto_scaling_group.rb', line 2368

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

Instance Method Details

#to_jsiiObject



2375
2376
2377
2378
2379
2380
2381
2382
# File 'autoscaling/cfn_auto_scaling_group.rb', line 2375

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