Interface IEcsEc2ContainerDefinition.Jsii$Default

All Superinterfaces:
software.constructs.IConstruct, software.constructs.IConstruct.Jsii$Default, software.constructs.IDependable, software.constructs.IDependable.Jsii$Default, IEcsContainerDefinition, IEcsContainerDefinition.Jsii$Default, IEcsEc2ContainerDefinition, software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
IEcsEc2ContainerDefinition.Jsii$Proxy
Enclosing interface:
IEcsEc2ContainerDefinition

@Internal public static interface IEcsEc2ContainerDefinition.Jsii$Default extends IEcsEc2ContainerDefinition, IEcsContainerDefinition.Jsii$Default
Internal default implementation for IEcsEc2ContainerDefinition.
  • Method Details

    • getUlimits

      @Stability(Stable) @NotNull default List<Ulimit> getUlimits()
      Limits to set for the user this docker container will run as.
      Specified by:
      getUlimits in interface IEcsEc2ContainerDefinition
    • 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

      Specified by:
      getGpu in interface IEcsEc2ContainerDefinition
    • 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

      Specified by:
      getPrivileged in interface IEcsEc2ContainerDefinition
    • addUlimit

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

      Specified by:
      addUlimit in interface IEcsEc2ContainerDefinition
      Parameters:
      ulimit - This parameter is required.