Enum PidMode

java.lang.Object
java.lang.Enum<PidMode>
software.amazon.awscdk.services.ecs.PidMode
All Implemented Interfaces:
Serializable, Comparable<PidMode>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-22T02:24:01.149Z") @Stability(Stable) public enum PidMode extends Enum<PidMode>
The process namespace to use for the containers in the task.

Example:

 FargateTaskDefinition fargateTaskDefinition = FargateTaskDefinition.Builder.create(this, "TaskDef")
         .runtimePlatform(RuntimePlatform.builder()
                 .operatingSystemFamily(OperatingSystemFamily.LINUX)
                 .cpuArchitecture(CpuArchitecture.ARM64)
                 .build())
         .memoryLimitMiB(512)
         .cpu(256)
         .pidMode(PidMode.TASK)
         .build();
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    If host is specified, then all containers within the tasks that specified the host PID mode on the same container instance share the same process namespace with the host Amazon EC2 instance.
    If task is specified, all containers within the specified task share the same process namespace.
  • Method Summary

    Modifier and Type
    Method
    Description
    static PidMode
    Returns the enum constant of this type with the specified name.
    static PidMode[]
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • HOST

      @Stability(Stable) public static final PidMode HOST
      If host is specified, then all containers within the tasks that specified the host PID mode on the same container instance share the same process namespace with the host Amazon EC2 instance.
    • TASK

      @Stability(Stable) public static final PidMode TASK
      If task is specified, all containers within the specified task share the same process namespace.
  • Method Details

    • values

      public static PidMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static PidMode valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null