OptimalInstanceType
- class aws_cdk.aws_batch.OptimalInstanceType
Bases:
InstanceType
Not a real instance type!
Indicates that Batch will choose one it determines to be optimal for the workload.
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_batch as batch optimal_instance_type = batch.OptimalInstanceType()
- Parameters:
instance_type_identifier –
Methods
- is_burstable()
Return whether this instance type is a burstable instance type.
- Return type:
bool
- same_instance_class_as(other)
- Parameters:
other (
InstanceType
) –- Return type:
bool
- to_string()
Return the instance type as a dotted string.
- Return type:
str
Attributes
- architecture
The instance’s CPU architecture.
Static Methods
- classmethod of(instance_class, instance_size)
Instance type for EC2 instances.
This class takes a combination of a class and size.
Be aware that not all combinations of class and size are available, and not all classes are available in all regions.
- Parameters:
instance_class (
InstanceClass
) –instance_size (
InstanceSize
) –
- Return type: