Class: AWSCDK::Deadline::CfnFleet::FleetAttributeCapabilityProperty

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

Overview

Defines the fleet's capability name, minimum, and maximum.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, values:) ⇒ FleetAttributeCapabilityProperty

Returns a new instance of FleetAttributeCapabilityProperty.

Parameters:

  • name (String)

    The name of the fleet attribute capability for the worker.

  • values (Array<String>)

    The number of fleet attribute capabilities.



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

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

#valuesArray<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_propertiesObject



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_jsiiObject



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