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.110.0 (build 336b265)",
date="2025-04-17T00:47:00.083Z")
@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 interface
Internal default implementation forIEcsEc2ContainerDefinition
.static final class
A proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a ulimit to this container.default Number
getGpu()
The number of physical GPUs to reserve for the container.default Boolean
When 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
getNode
Methods inherited from interface software.amazon.awscdk.services.batch.IEcsContainerDefinition
addVolume, getCommand, getCpu, getEnvironment, getExecutionRole, getImage, getJobRole, getLinuxParameters, getLogDriverConfig, getMemory, getReadonlyRootFilesystem, getSecrets, getUser, getVolumes
Methods 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.
-