Class: AWSCDK::EC2::CfnLaunchTemplate::NetworkInterfaceCountProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ec2/cfn_launch_template.rb

Overview

The minimum and maximum number of network interfaces.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of NetworkInterfaceCountProperty.

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.



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

#maxNumeric? (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

#minNumeric? (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_propertiesObject



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_jsiiObject



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