Class: AWSCDK::Batch::OptimalInstanceType

Inherits:
EC2::InstanceType
  • Object
show all
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

Constructor Details

#initializeOptimalInstanceType

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_methodsObject



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

#architectureAWSCDK::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_burstableBoolean

Return whether this instance type is a burstable instance type.

Returns:

  • (Boolean)


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

Parameters:

Returns:

  • (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_stringString

Return the instance type as a dotted string.

Returns:

  • (String)


48
49
50
# File 'batch/optimal_instance_type.rb', line 48

def to_string()
  jsii_call_method("toString", [])
end