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.101.0 (build b95fe5d)", date="2024-08-02T00:29:07.193Z") @Stability(Stable) public interface IEcsEc2ContainerDefinition extends software.amazon.jsii.JsiiSerializable, IEcsContainerDefinition
A container orchestrated by ECS that uses EC2 resources.
  • Method Details

    • getUlimits

      @Stability(Stable) @NotNull List<Ulimit> getUlimits()
      Limits to set for the user this docker container will run as.
    • getGpu

      @Stability(Stable) @Nullable default Number 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

      @Stability(Stable) @Nullable default Boolean 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

      @Stability(Stable) void addUlimit(@NotNull Ulimit ulimit)
      Add a ulimit to this container.

      Parameters:
      ulimit - This parameter is required.