Class: AWSCDK::StepFunctionsTasks::AcceleratorType
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::StepFunctionsTasks::AcceleratorType
- Defined in:
- step_functions_tasks/accelerator_type.rb
Overview
The size of the Elastic Inference (EI) instance to use for the production variant.
EI instances provide on-demand GPU computing for inference
Class Method Summary collapse
- .jsii_overridable_methods ⇒ Object
-
.of(accelerator_class, instance_size) ⇒ AWSCDK::StepFunctionsTasks::AcceleratorType
AcceleratorType.
Instance Method Summary collapse
-
#initialize(instance_type_identifier) ⇒ AcceleratorType
constructor
A new instance of AcceleratorType.
-
#to_string ⇒ String
Return the accelerator type as a dotted string.
Constructor Details
#initialize(instance_type_identifier) ⇒ AcceleratorType
Returns a new instance of AcceleratorType.
13 14 15 16 |
# File 'step_functions_tasks/accelerator_type.rb', line 13 def initialize(instance_type_identifier) Jsii::Type.check_type(instance_type_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "instanceTypeIdentifier") Jsii::Object.instance_method(:initialize).bind(self).call(instance_type_identifier) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
18 19 20 21 22 |
# File 'step_functions_tasks/accelerator_type.rb', line 18 def self.jsii_overridable_methods { :to_string => { kind: :method, name: "toString", is_optional: false }, } end |
.of(accelerator_class, instance_size) ⇒ AWSCDK::StepFunctionsTasks::AcceleratorType
AcceleratorType.
This class takes a combination of a class and size.
31 32 33 34 35 |
# File 'step_functions_tasks/accelerator_type.rb', line 31 def self.of(accelerator_class, instance_size) Jsii::Type.check_type(accelerator_class, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9uc190YXNrcy5BY2NlbGVyYXRvckNsYXNzIn0=")), "acceleratorClass") Jsii::Type.check_type(instance_size, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLkluc3RhbmNlU2l6ZSJ9")), "instanceSize") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_stepfunctions_tasks.AcceleratorType", "of", [accelerator_class, instance_size]) end |
Instance Method Details
#to_string ⇒ String
Return the accelerator type as a dotted string.
40 41 42 |
# File 'step_functions_tasks/accelerator_type.rb', line 40 def to_string() jsii_call_method("toString", []) end |