Class EcsMachineImage
A Batch MachineImage that is compatible with ECS.
Inheritance
System.Object
EcsMachineImage
Implements
Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class EcsMachineImage : Object, IEcsMachineImage
Syntax (vb)
Public Class EcsMachineImage
Inherits Object
Implements IEcsMachineImage
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Batch;
using Amazon.CDK.AWS.EC2;
IMachineImage machineImage;
var ecsMachineImage = new EcsMachineImage {
Image = machineImage,
ImageType = EcsMachineImageType.ECS_AL2
};
Synopsis
Constructors
EcsMachineImage() |
Properties
Image | The machine image to use. |
ImageType | Tells Batch which instance type to launch this image on. |
Constructors
EcsMachineImage()
public EcsMachineImage()
Properties
Image
The machine image to use.
public IMachineImage Image { get; set; }
Property Value
Remarks
Default: - chosen by batch
ImageType
Tells Batch which instance type to launch this image on.
public Nullable<EcsMachineImageType> ImageType { get; set; }
Property Value
System.Nullable<EcsMachineImageType>
Remarks
Default: - 'ECS_AL2' for non-gpu instances, 'ECS_AL2_NVIDIA' for gpu instances