class OptimalInstanceType
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Batch.OptimalInstanceType |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsbatch#OptimalInstanceType |
Java | software.amazon.awscdk.services.batch.OptimalInstanceType |
Python | aws_cdk.aws_batch.OptimalInstanceType |
TypeScript (source) | aws-cdk-lib » aws_batch » OptimalInstanceType |
Extends
Instance
Not a real instance type!
Indicates that Batch will choose one it determines to be optimal for the workload.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_batch as batch } from 'aws-cdk-lib';
const optimalInstanceType = new batch.OptimalInstanceType();
Initializer
new OptimalInstanceType()
Properties
| Name | Type | Description |
|---|---|---|
| architecture | Instance | The instance's CPU architecture. |
architecture
Type:
Instance
The instance's CPU architecture.
Methods
| Name | Description |
|---|---|
| is | Return whether this instance type is a burstable instance type. |
| same | |
| to | Return the instance type as a dotted string. |
isBurstable()
public isBurstable(): boolean
Returns
boolean
Return whether this instance type is a burstable instance type.
sameInstanceClassAs(other)
public sameInstanceClassAs(other: InstanceType): boolean
Parameters
- other
InstanceType
Returns
boolean
toString()
public toString(): string
Returns
string
Return the instance type as a dotted string.

.NET
Go
Java
Python
TypeScript (