Class: AWSCDK::Deadline::CfnFleet::FleetAttributeCapabilityProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Deadline::CfnFleet::FleetAttributeCapabilityProperty
- Defined in:
- deadline/cfn_fleet.rb
Overview
Defines the fleet's capability name, minimum, and maximum.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
The name of the fleet attribute capability for the worker.
-
#values ⇒ Array<String>
readonly
The number of fleet attribute capabilities.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, values:) ⇒ FleetAttributeCapabilityProperty
constructor
A new instance of FleetAttributeCapabilityProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, values:) ⇒ FleetAttributeCapabilityProperty
Returns a new instance of FleetAttributeCapabilityProperty.
1213 1214 1215 1216 1217 1218 |
# File 'deadline/cfn_fleet.rb', line 1213 def initialize(name:, values:) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @values = values Jsii::Type.check_type(@values, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "values") end |
Instance Attribute Details
#name ⇒ String (readonly)
The name of the fleet attribute capability for the worker.
1224 1225 1226 |
# File 'deadline/cfn_fleet.rb', line 1224 def name @name end |
#values ⇒ Array<String> (readonly)
The number of fleet attribute capabilities.
1229 1230 1231 |
# File 'deadline/cfn_fleet.rb', line 1229 def values @values end |
Class Method Details
.jsii_properties ⇒ Object
1231 1232 1233 1234 1235 1236 |
# File 'deadline/cfn_fleet.rb', line 1231 def self.jsii_properties { :name => "name", :values => "values", } end |
Instance Method Details
#to_jsii ⇒ Object
1238 1239 1240 1241 1242 1243 1244 1245 |
# File 'deadline/cfn_fleet.rb', line 1238 def to_jsii result = {} result.merge!({ "name" => @name, "values" => @values, }) result.compact end |