Class: AWSCDK::EC2::CfnSpotFleet::TotalLocalStorageGBRequestProperty

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

Overview

The minimum and maximum amount of total local storage, in GB.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of TotalLocalStorageGBRequestProperty.

Parameters:

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

    The maximum amount of total local storage, in GB.

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

    The minimum amount of total local storage, in GB.



3159
3160
3161
3162
3163
3164
# File 'ec2/cfn_spot_fleet.rb', line 3159

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 amount of total local storage, in GB.

To specify no maximum limit, omit this parameter.



3172
3173
3174
# File 'ec2/cfn_spot_fleet.rb', line 3172

def max
  @max
end

#minNumeric? (readonly)

The minimum amount of total local storage, in GB.

To specify no minimum limit, omit this parameter.



3179
3180
3181
# File 'ec2/cfn_spot_fleet.rb', line 3179

def min
  @min
end

Class Method Details

.jsii_propertiesObject



3181
3182
3183
3184
3185
3186
# File 'ec2/cfn_spot_fleet.rb', line 3181

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

Instance Method Details

#to_jsiiObject



3188
3189
3190
3191
3192
3193
3194
3195
# File 'ec2/cfn_spot_fleet.rb', line 3188

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