Class: AWSCDK::EC2::CfnLaunchTemplate::TotalLocalStorageGBProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnLaunchTemplate::TotalLocalStorageGBProperty
- Defined in:
- ec2/cfn_launch_template.rb
Overview
The minimum and maximum amount of total local storage, in GB.
Instance Attribute Summary collapse
-
#max ⇒ Numeric?
readonly
The maximum amount of total local storage, in GB.
-
#min ⇒ Numeric?
readonly
The minimum amount of total local storage, in GB.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(max: nil, min: nil) ⇒ TotalLocalStorageGBProperty
constructor
A new instance of TotalLocalStorageGBProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(max: nil, min: nil) ⇒ TotalLocalStorageGBProperty
Returns a new instance of TotalLocalStorageGBProperty.
3768 3769 3770 3771 3772 3773 |
# File 'ec2/cfn_launch_template.rb', line 3768 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 amount of total local storage, in GB.
To specify no maximum limit, omit this parameter.
3781 3782 3783 |
# File 'ec2/cfn_launch_template.rb', line 3781 def max @max end |
#min ⇒ Numeric? (readonly)
The minimum amount of total local storage, in GB.
To specify no minimum limit, omit this parameter.
3788 3789 3790 |
# File 'ec2/cfn_launch_template.rb', line 3788 def min @min end |
Class Method Details
.jsii_properties ⇒ Object
3790 3791 3792 3793 3794 3795 |
# File 'ec2/cfn_launch_template.rb', line 3790 def self.jsii_properties { :max => "max", :min => "min", } end |
Instance Method Details
#to_jsii ⇒ Object
3797 3798 3799 3800 3801 3802 3803 3804 |
# File 'ec2/cfn_launch_template.rb', line 3797 def to_jsii result = {} result.merge!({ "max" => @max, "min" => @min, }) result.compact end |