Class: AWSCDK::Deadline::CfnFleet::FleetAmountCapabilityProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
deadline/cfn_fleet.rb

Overview

The fleet amount and attribute capabilities.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(min:, name:, max: nil) ⇒ FleetAmountCapabilityProperty

Returns a new instance of FleetAmountCapabilityProperty.

Parameters:

  • min (Numeric)

    The minimum amount of fleet worker capability.

  • name (String)

    The name of the fleet capability.

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

    The maximum amount of the fleet worker capability.



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

#maxNumeric? (readonly)

The maximum amount of the fleet worker capability.



1184
1185
1186
# File 'deadline/cfn_fleet.rb', line 1184

def max
  @max
end

#minNumeric (readonly)

The minimum amount of fleet worker capability.



1174
1175
1176
# File 'deadline/cfn_fleet.rb', line 1174

def min
  @min
end

#nameString (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_propertiesObject



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_jsiiObject



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