@aws-cdk_aws-batch-alpha.EcsMachineImage

interface EcsMachineImage ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.Batch.Alpha.EcsMachineImage
Gogithub.com/aws/aws-cdk-go/awscdkbatchalpha/v2#EcsMachineImage
Javasoftware.amazon.awscdk.services.batch.alpha.EcsMachineImage
Pythonaws_cdk.aws_batch_alpha.EcsMachineImage
TypeScript (source)@aws-cdk/aws-batch-alpha ยป EcsMachineImage

A Batch MachineImage that is compatible with ECS.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as batch_alpha from '@aws-cdk/aws-batch-alpha';
import { aws_ec2 as ec2 } from 'aws-cdk-lib';

declare const machineImage: ec2.IMachineImage;
const ecsMachineImage: batch_alpha.EcsMachineImage = {
  image: machineImage,
  imageType: batch_alpha.EcsMachineImageType.ECS_AL2,
};

Properties

NameTypeDescription
image?๐Ÿ”นIMachineImageThe machine image to use.
imageType?๐Ÿ”นEcsMachineImageTypeTells Batch which instance type to launch this image on.

image?๐Ÿ”น

Type: IMachineImage (optional, default: chosen by batch)

The machine image to use.


imageType?๐Ÿ”น

Type: EcsMachineImageType (optional, default: 'ECS_AL2' for non-gpu instances, 'ECS_AL2_NVIDIA' for gpu instances)

Tells Batch which instance type to launch this image on.