Interface IEcsEc2ContainerDefinition
- All Superinterfaces:
software.constructs.IConstruct,software.constructs.IDependable,IEcsContainerDefinition,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IEcsEc2ContainerDefinition.Jsii$Default
- All Known Implementing Classes:
EcsEc2ContainerDefinition,IEcsEc2ContainerDefinition.Jsii$Proxy
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:05.757Z")
@Stability(Stable)
public interface IEcsEc2ContainerDefinition
extends software.amazon.jsii.JsiiSerializable, IEcsContainerDefinition
A container orchestrated by ECS that uses EC2 resources.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInternal default implementation forIEcsEc2ContainerDefinition.static final classA proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a ulimit to this container.default NumbergetGpu()The number of physical GPUs to reserve for the container.default BooleanWhen this parameter is true, the container is given elevated permissions on the host container instance (similar to the root user).Limits to set for the user this docker container will run as.Methods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.services.batch.IEcsContainerDefinition
addVolume, getCommand, getCpu, getEnableExecuteCommand, getEnvironment, getExecutionRole, getImage, getJobRole, getLinuxParameters, getLogDriverConfig, getMemory, getReadonlyRootFilesystem, getSecrets, getUser, getVolumesMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getUlimits
Limits to set for the user this docker container will run as. -
getGpu
The number of physical GPUs to reserve for the container.Make sure that the number of GPUs reserved for all containers in a job doesn't exceed the number of available GPUs on the compute resource that the job is launched on.
Default: - no gpus
-
getPrivileged
When this parameter is true, the container is given elevated permissions on the host container instance (similar to the root user).Default: false
-
addUlimit
Add a ulimit to this container.- Parameters:
ulimit- This parameter is required.
-