Class: AWSCDK::Autoscaling::CfnAutoScalingGroup::NetworkInterfaceCountRequestProperty

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

Overview

NetworkInterfaceCountRequest is a property of the InstanceRequirements property of the AWS::AutoScaling::AutoScalingGroup LaunchTemplateOverrides property type that describes the minimum and maximum number of network interfaces for an instance type.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of NetworkInterfaceCountRequestProperty.

Parameters:

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

    The maximum number of network interfaces.

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

    The minimum number of network interfaces.



2611
2612
2613
2614
2615
2616
# File 'autoscaling/cfn_auto_scaling_group.rb', line 2611

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 maximum number of network interfaces.



2622
2623
2624
# File 'autoscaling/cfn_auto_scaling_group.rb', line 2622

def max
  @max
end

#minNumeric? (readonly)

The minimum number of network interfaces.



2627
2628
2629
# File 'autoscaling/cfn_auto_scaling_group.rb', line 2627

def min
  @min
end

Class Method Details

.jsii_propertiesObject



2629
2630
2631
2632
2633
2634
# File 'autoscaling/cfn_auto_scaling_group.rb', line 2629

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

Instance Method Details

#to_jsiiObject



2636
2637
2638
2639
2640
2641
2642
2643
# File 'autoscaling/cfn_auto_scaling_group.rb', line 2636

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