Class: AWSCDK::Deadline::CfnFleet::FleetAmountCapabilityProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Deadline::CfnFleet::FleetAmountCapabilityProperty
- Defined in:
- deadline/cfn_fleet.rb
Overview
The fleet amount and attribute capabilities.
Instance Attribute Summary collapse
-
#max ⇒ Numeric?
readonly
The maximum amount of the fleet worker capability.
-
#min ⇒ Numeric
readonly
The minimum amount of fleet worker capability.
-
#name ⇒ String
readonly
The name of the fleet capability.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(min:, name:, max: nil) ⇒ FleetAmountCapabilityProperty
constructor
A new instance of FleetAmountCapabilityProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(min:, name:, max: nil) ⇒ FleetAmountCapabilityProperty
Returns a new instance of FleetAmountCapabilityProperty.
1161 1162 1163 1164 1165 1166 1167 1168 |
# File 'deadline/cfn_fleet.rb', line 1161 def initialize(min:, name:, max: nil) @min = min Jsii::Type.check_type(@min, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "min") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @max = max Jsii::Type.check_type(@max, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "max") unless @max.nil? end |
Instance Attribute Details
#max ⇒ Numeric? (readonly)
The maximum amount of the fleet worker capability.
1184 1185 1186 |
# File 'deadline/cfn_fleet.rb', line 1184 def max @max end |
#min ⇒ Numeric (readonly)
The minimum amount of fleet worker capability.
1174 1175 1176 |
# File 'deadline/cfn_fleet.rb', line 1174 def min @min end |
#name ⇒ String (readonly)
The name of the fleet capability.
1179 1180 1181 |
# File 'deadline/cfn_fleet.rb', line 1179 def name @name end |
Class Method Details
.jsii_properties ⇒ Object
1186 1187 1188 1189 1190 1191 1192 |
# File 'deadline/cfn_fleet.rb', line 1186 def self.jsii_properties { :min => "min", :name => "name", :max => "max", } end |
Instance Method Details
#to_jsii ⇒ Object
1194 1195 1196 1197 1198 1199 1200 1201 1202 |
# File 'deadline/cfn_fleet.rb', line 1194 def to_jsii result = {} result.merge!({ "min" => @min, "name" => @name, "max" => @max, }) result.compact end |