Class: AWSCDK::Batch::OptimalInstanceType
- Inherits:
-
EC2::InstanceType
- Object
- EC2::InstanceType
- AWSCDK::Batch::OptimalInstanceType
- Defined in:
- batch/optimal_instance_type.rb
Overview
Not a real instance type!
Indicates that Batch will choose one it determines to be optimal for the workload.
Class Method Summary collapse
Instance Method Summary collapse
-
#architecture ⇒ AWSCDK::EC2::InstanceArchitecture
The instance's CPU architecture.
-
#initialize ⇒ OptimalInstanceType
constructor
A new instance of OptimalInstanceType.
-
#is_burstable ⇒ Boolean
Return whether this instance type is a burstable instance type.
- #same_instance_class_as(other) ⇒ Boolean
-
#to_string ⇒ String
Return the instance type as a dotted string.
Constructor Details
#initialize ⇒ OptimalInstanceType
Returns a new instance of OptimalInstanceType.
11 12 13 |
# File 'batch/optimal_instance_type.rb', line 11 def initialize Jsii::Object.instance_method(:initialize).bind(self).call end |
Class Method Details
.jsii_overridable_methods ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'batch/optimal_instance_type.rb', line 15 def self.jsii_overridable_methods { :architecture => { kind: :property, name: "architecture", is_optional: false }, :is_burstable => { kind: :method, name: "isBurstable", is_optional: false }, :same_instance_class_as => { kind: :method, name: "sameInstanceClassAs", is_optional: false }, :to_string => { kind: :method, name: "toString", is_optional: false }, } end |
Instance Method Details
#architecture ⇒ AWSCDK::EC2::InstanceArchitecture
The instance's CPU architecture.
27 28 29 |
# File 'batch/optimal_instance_type.rb', line 27 def architecture() jsii_get_property("architecture") end |
#is_burstable ⇒ Boolean
Return whether this instance type is a burstable instance type.
34 35 36 |
# File 'batch/optimal_instance_type.rb', line 34 def is_burstable() jsii_call_method("isBurstable", []) end |
#same_instance_class_as(other) ⇒ Boolean
40 41 42 43 |
# File 'batch/optimal_instance_type.rb', line 40 def same_instance_class_as(other) Jsii::Type.check_type(other, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLkluc3RhbmNlVHlwZSJ9")), "other") jsii_call_method("sameInstanceClassAs", [other]) end |
#to_string ⇒ String
Return the instance type as a dotted string.
48 49 50 |
# File 'batch/optimal_instance_type.rb', line 48 def to_string() jsii_call_method("toString", []) end |