Class: AWSCDK::Autoscaling::CfnAutoScalingGroup::NetworkInterfaceCountRequestProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Autoscaling::CfnAutoScalingGroup::NetworkInterfaceCountRequestProperty
- 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
-
#max ⇒ Numeric?
readonly
The maximum number of network interfaces.
-
#min ⇒ Numeric?
readonly
The minimum number of network interfaces.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(max: nil, min: nil) ⇒ NetworkInterfaceCountRequestProperty
constructor
A new instance of NetworkInterfaceCountRequestProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(max: nil, min: nil) ⇒ NetworkInterfaceCountRequestProperty
Returns a new instance of NetworkInterfaceCountRequestProperty.
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
#max ⇒ Numeric? (readonly)
The maximum number of network interfaces.
2622 2623 2624 |
# File 'autoscaling/cfn_auto_scaling_group.rb', line 2622 def max @max end |
#min ⇒ Numeric? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |