Class: AWSCDK::Deadline::CfnFleet::CustomerManagedWorkerCapabilitiesProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Deadline::CfnFleet::CustomerManagedWorkerCapabilitiesProperty
- Defined in:
- deadline/cfn_fleet.rb
Overview
The worker capabilities for a customer managed workflow.
Instance Attribute Summary collapse
-
#accelerator_count ⇒ AWSCDK::IResolvable, ...
readonly
The range of the accelerator.
-
#accelerator_total_memory_mib ⇒ AWSCDK::IResolvable, ...
readonly
The total memory (MiB) for the customer managed worker capabilities.
-
#accelerator_types ⇒ Array<String>?
readonly
The accelerator types for the customer managed worker capabilities.
-
#cpu_architecture_type ⇒ String
readonly
The CPU architecture type for the customer managed worker capabilities.
-
#custom_amounts ⇒ AWSCDK::IResolvable, ...
readonly
Custom requirement ranges for customer managed worker capabilities.
-
#custom_attributes ⇒ AWSCDK::IResolvable, ...
readonly
Custom attributes for the customer manged worker capabilities.
-
#memory_mib ⇒ AWSCDK::IResolvable, AWSCDK::Deadline::CfnFleet::MemoryMiBRangeProperty
readonly
The memory (MiB).
-
#os_family ⇒ String
readonly
The operating system (OS) family.
-
#v_cpu_count ⇒ AWSCDK::IResolvable, AWSCDK::Deadline::CfnFleet::VCpuCountRangeProperty
readonly
The vCPU count for the customer manged worker capabilities.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cpu_architecture_type:, memory_mib:, os_family:, v_cpu_count:, accelerator_count: nil, accelerator_total_memory_mib: nil, accelerator_types: nil, custom_amounts: nil, custom_attributes: nil) ⇒ CustomerManagedWorkerCapabilitiesProperty
constructor
A new instance of CustomerManagedWorkerCapabilitiesProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cpu_architecture_type:, memory_mib:, os_family:, v_cpu_count:, accelerator_count: nil, accelerator_total_memory_mib: nil, accelerator_types: nil, custom_amounts: nil, custom_attributes: nil) ⇒ CustomerManagedWorkerCapabilitiesProperty
Returns a new instance of CustomerManagedWorkerCapabilitiesProperty.
998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 |
# File 'deadline/cfn_fleet.rb', line 998 def initialize(cpu_architecture_type:, memory_mib:, os_family:, v_cpu_count:, accelerator_count: nil, accelerator_total_memory_mib: nil, accelerator_types: nil, custom_amounts: nil, custom_attributes: nil) @cpu_architecture_type = cpu_architecture_type Jsii::Type.check_type(@cpu_architecture_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cpuArchitectureType") @memory_mib = memory_mib.is_a?(Hash) ? ::AWSCDK::Deadline::CfnFleet::MemoryMiBRangeProperty.new(**memory_mib.transform_keys(&:to_sym)) : memory_mib Jsii::Type.check_type(@memory_mib, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kZWFkbGluZS5DZm5GbGVldC5NZW1vcnlNaUJSYW5nZVByb3BlcnR5In1dfX0=")), "memoryMiB") @os_family = os_family Jsii::Type.check_type(@os_family, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "osFamily") @v_cpu_count = v_cpu_count.is_a?(Hash) ? ::AWSCDK::Deadline::CfnFleet::VCpuCountRangeProperty.new(**v_cpu_count.transform_keys(&:to_sym)) : v_cpu_count Jsii::Type.check_type(@v_cpu_count, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kZWFkbGluZS5DZm5GbGVldC5WQ3B1Q291bnRSYW5nZVByb3BlcnR5In1dfX0=")), "vCpuCount") @accelerator_count = accelerator_count.is_a?(Hash) ? ::AWSCDK::Deadline::CfnFleet::AcceleratorCountRangeProperty.new(**accelerator_count.transform_keys(&:to_sym)) : accelerator_count Jsii::Type.check_type(@accelerator_count, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kZWFkbGluZS5DZm5GbGVldC5BY2NlbGVyYXRvckNvdW50UmFuZ2VQcm9wZXJ0eSJ9XX19")), "acceleratorCount") unless @accelerator_count.nil? @accelerator_total_memory_mib = accelerator_total_memory_mib.is_a?(Hash) ? ::AWSCDK::Deadline::CfnFleet::AcceleratorTotalMemoryMiBRangeProperty.new(**accelerator_total_memory_mib.transform_keys(&:to_sym)) : accelerator_total_memory_mib Jsii::Type.check_type(@accelerator_total_memory_mib, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kZWFkbGluZS5DZm5GbGVldC5BY2NlbGVyYXRvclRvdGFsTWVtb3J5TWlCUmFuZ2VQcm9wZXJ0eSJ9XX19")), "acceleratorTotalMemoryMiB") unless @accelerator_total_memory_mib.nil? @accelerator_types = accelerator_types Jsii::Type.check_type(@accelerator_types, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "acceleratorTypes") unless @accelerator_types.nil? @custom_amounts = custom_amounts Jsii::Type.check_type(@custom_amounts, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZGVhZGxpbmUuQ2ZuRmxlZXQuRmxlZXRBbW91bnRDYXBhYmlsaXR5UHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "customAmounts") unless @custom_amounts.nil? @custom_attributes = custom_attributes Jsii::Type.check_type(@custom_attributes, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZGVhZGxpbmUuQ2ZuRmxlZXQuRmxlZXRBdHRyaWJ1dGVDYXBhYmlsaXR5UHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "customAttributes") unless @custom_attributes.nil? end |
Instance Attribute Details
#accelerator_count ⇒ AWSCDK::IResolvable, ... (readonly)
The range of the accelerator.
1043 1044 1045 |
# File 'deadline/cfn_fleet.rb', line 1043 def accelerator_count @accelerator_count end |
#accelerator_total_memory_mib ⇒ AWSCDK::IResolvable, ... (readonly)
The total memory (MiB) for the customer managed worker capabilities.
1048 1049 1050 |
# File 'deadline/cfn_fleet.rb', line 1048 def accelerator_total_memory_mib @accelerator_total_memory_mib end |
#accelerator_types ⇒ Array<String>? (readonly)
The accelerator types for the customer managed worker capabilities.
1053 1054 1055 |
# File 'deadline/cfn_fleet.rb', line 1053 def accelerator_types @accelerator_types end |
#cpu_architecture_type ⇒ String (readonly)
The CPU architecture type for the customer managed worker capabilities.
1023 1024 1025 |
# File 'deadline/cfn_fleet.rb', line 1023 def cpu_architecture_type @cpu_architecture_type end |
#custom_amounts ⇒ AWSCDK::IResolvable, ... (readonly)
Custom requirement ranges for customer managed worker capabilities.
1058 1059 1060 |
# File 'deadline/cfn_fleet.rb', line 1058 def custom_amounts @custom_amounts end |
#custom_attributes ⇒ AWSCDK::IResolvable, ... (readonly)
Custom attributes for the customer manged worker capabilities.
1063 1064 1065 |
# File 'deadline/cfn_fleet.rb', line 1063 def custom_attributes @custom_attributes end |
#memory_mib ⇒ AWSCDK::IResolvable, AWSCDK::Deadline::CfnFleet::MemoryMiBRangeProperty (readonly)
The memory (MiB).
1028 1029 1030 |
# File 'deadline/cfn_fleet.rb', line 1028 def memory_mib @memory_mib end |
#os_family ⇒ String (readonly)
The operating system (OS) family.
1033 1034 1035 |
# File 'deadline/cfn_fleet.rb', line 1033 def os_family @os_family end |
#v_cpu_count ⇒ AWSCDK::IResolvable, AWSCDK::Deadline::CfnFleet::VCpuCountRangeProperty (readonly)
The vCPU count for the customer manged worker capabilities.
1038 1039 1040 |
# File 'deadline/cfn_fleet.rb', line 1038 def v_cpu_count @v_cpu_count end |
Class Method Details
.jsii_properties ⇒ Object
1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 |
# File 'deadline/cfn_fleet.rb', line 1065 def self.jsii_properties { :cpu_architecture_type => "cpuArchitectureType", :memory_mib => "memoryMiB", :os_family => "osFamily", :v_cpu_count => "vCpuCount", :accelerator_count => "acceleratorCount", :accelerator_total_memory_mib => "acceleratorTotalMemoryMiB", :accelerator_types => "acceleratorTypes", :custom_amounts => "customAmounts", :custom_attributes => "customAttributes", } end |
Instance Method Details
#to_jsii ⇒ Object
1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 |
# File 'deadline/cfn_fleet.rb', line 1079 def to_jsii result = {} result.merge!({ "cpuArchitectureType" => @cpu_architecture_type, "memoryMiB" => @memory_mib, "osFamily" => @os_family, "vCpuCount" => @v_cpu_count, "acceleratorCount" => @accelerator_count, "acceleratorTotalMemoryMiB" => @accelerator_total_memory_mib, "acceleratorTypes" => @accelerator_types, "customAmounts" => @custom_amounts, "customAttributes" => @custom_attributes, }) result.compact end |