interface EcsMachineImage
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Batch.EcsMachineImage |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsbatch#EcsMachineImage |
![]() | software.amazon.awscdk.services.batch.EcsMachineImage |
![]() | aws_cdk.aws_batch.EcsMachineImage |
![]() | aws-cdk-lib » aws_batch » 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 { aws_batch as batch } from 'aws-cdk-lib';
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
declare const machineImage: ec2.IMachineImage;
const ecsMachineImage: batch.EcsMachineImage = {
image: machineImage,
imageType: batch.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.