interface EksMachineImage
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Batch.EksMachineImage |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsbatch#EksMachineImage |
Java | software.amazon.awscdk.services.batch.EksMachineImage |
Python | aws_cdk.aws_batch.EksMachineImage |
TypeScript (source) | aws-cdk-lib » aws_batch » EksMachineImage |
A Batch MachineImage that is compatible with EKS.
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';
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
declare const machineImage: ec2.IMachineImage;
const eksMachineImage: batch.EksMachineImage = {
image: machineImage,
imageType: batch.EksMachineImageType.EKS_AL2,
};
Properties
Name | Type | Description |
---|---|---|
image? | IMachine | The machine image to use. |
image | Eks | Tells Batch which instance type to launch this image on. |
image?
Type:
IMachine
(optional, default: chosen by batch)
The machine image to use.
imageType?
Type:
Eks
(optional, default: 'EKS_AL2' for non-gpu instances, 'EKS_AL2_NVIDIA' for gpu instances)
Tells Batch which instance type to launch this image on.