EcsMachineImageType

class aws_cdk.aws_batch.EcsMachineImageType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

Maps the image to instance types.

ExampleMetadata:

infused

Example:

# vpc: ec2.IVpc


batch.ManagedEc2EcsComputeEnvironment(self, "myEc2ComputeEnv",
    vpc=vpc,
    images=[batch.EcsMachineImage(
        image_type=batch.EcsMachineImageType.ECS_AL2023
    )
    ]
)

Attributes

ECS_AL2

Tells Batch that this machine image runs on non-GPU AL2 instances.

ECS_AL2023

Tells Batch that this machine image runs on non-GPU AL2023 instances.

Amazon Linux 2023 does not support A1 instances.

ECS_AL2_NVIDIA

Tells Batch that this machine image runs on GPU instances.