Class: AWSCDK::EC2::CfnLaunchTemplate::NetworkInterfaceCountProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnLaunchTemplate::NetworkInterfaceCountProperty
- Defined in:
- ec2/cfn_launch_template.rb
Overview
The minimum and maximum number of network interfaces.
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) ⇒ NetworkInterfaceCountProperty
constructor
A new instance of NetworkInterfaceCountProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(max: nil, min: nil) ⇒ NetworkInterfaceCountProperty
Returns a new instance of NetworkInterfaceCountProperty.
2983 2984 2985 2986 2987 2988 |
# File 'ec2/cfn_launch_template.rb', line 2983 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.
To specify no maximum limit, omit this parameter.
2996 2997 2998 |
# File 'ec2/cfn_launch_template.rb', line 2996 def max @max end |
#min ⇒ Numeric? (readonly)
The minimum number of network interfaces.
To specify no minimum limit, omit this parameter.
3003 3004 3005 |
# File 'ec2/cfn_launch_template.rb', line 3003 def min @min end |
Class Method Details
.jsii_properties ⇒ Object
3005 3006 3007 3008 3009 3010 |
# File 'ec2/cfn_launch_template.rb', line 3005 def self.jsii_properties { :max => "max", :min => "min", } end |
Instance Method Details
#to_jsii ⇒ Object
3012 3013 3014 3015 3016 3017 3018 3019 |
# File 'ec2/cfn_launch_template.rb', line 3012 def to_jsii result = {} result.merge!({ "max" => @max, "min" => @min, }) result.compact end |