class OptimalInstanceType
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Batch.OptimalInstanceType |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsbatch#OptimalInstanceType |
![]() | software.amazon.awscdk.services.batch.OptimalInstanceType |
![]() | aws_cdk.aws_batch.OptimalInstanceType |
![]() | 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
Instance
Type
Returns
boolean
toString()
public toString(): string
Returns
string
Return the instance type as a dotted string.