@aws-cdk_aws-batch-alpha.EcsMachineImage
interface EcsMachineImage
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Batch.Alpha.EcsMachineImage |
![]() | github.com/aws/aws-cdk-go/awscdkbatchalpha/v2#EcsMachineImage |
![]() | software.amazon.awscdk.services.batch.alpha.EcsMachineImage |
![]() | aws_cdk.aws_batch_alpha.EcsMachineImage |
![]() | @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
Name | Type | Description |
---|---|---|
image? | IMachine | The machine image to use. |
image | Ecs | 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:
Ecs
(optional, default: 'ECS_AL2' for non-gpu instances, 'ECS_AL2_NVIDIA' for gpu instances)
Tells Batch which instance type to launch this image on.