Interface EcsMachineImage
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EcsMachineImage.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:23:57.680Z")
@Stability(Stable)
public interface EcsMachineImage
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.batch.*; import software.amazon.awscdk.services.ec2.*; IMachineImage machineImage; EcsMachineImage ecsMachineImage = EcsMachineImage.builder() .image(machineImage) .imageType(EcsMachineImageType.ECS_AL2) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forEcsMachineImage
static final class
An implementation forEcsMachineImage
-
Method Summary
Modifier and TypeMethodDescriptionstatic EcsMachineImage.Builder
builder()
default IMachineImage
getImage()
The machine image to use.default EcsMachineImageType
Tells Batch which instance type to launch this image on.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getImage
The machine image to use.Default: - chosen by batch
-
getImageType
Tells Batch which instance type to launch this image on.Default: - 'ECS_AL2' for non-gpu instances, 'ECS_AL2_NVIDIA' for gpu instances
-
builder
- Returns:
- a
EcsMachineImage.Builder
ofEcsMachineImage
-