Interface Ulimit

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
Ulimit.Jsii$Proxy

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-05T20:26:27.720Z") @Stability(Stable) public interface Ulimit extends software.amazon.jsii.JsiiSerializable
Sets limits for a resource with ulimit on linux systems.

Used by the Docker daemon.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.batch.*;
 Ulimit ulimit = Ulimit.builder()
         .hardLimit(123)
         .name(UlimitName.CORE)
         .softLimit(123)
         .build();
 
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    A builder for Ulimit
    static final class 
    An implementation for Ulimit
  • Method Summary

    Modifier and Type
    Method
    Description
     
    The hard limit for this resource.
    The resource to limit.
    The reservation for this resource.

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Method Details

    • getHardLimit

      @Stability(Stable) @NotNull Number getHardLimit()
      The hard limit for this resource.

      The container will be terminated if it exceeds this limit.

    • getName

      @Stability(Stable) @NotNull UlimitName getName()
      The resource to limit.
    • getSoftLimit

      @Stability(Stable) @NotNull Number getSoftLimit()
      The reservation for this resource.

      The container will not be terminated if it exceeds this limit.

    • builder

      @Stability(Stable) static Ulimit.Builder builder()
      Returns:
      a Ulimit.Builder of Ulimit