Class PidMode
The process namespace to use for the containers in the task.
Inheritance
System.Object
PidMode
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class PidMode : Enum
Syntax (vb)
Public NotInheritable Class PidMode
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
var fargateTaskDefinition = new FargateTaskDefinition(this, "TaskDef", new FargateTaskDefinitionProps {
RuntimePlatform = new RuntimePlatform {
OperatingSystemFamily = OperatingSystemFamily.LINUX,
CpuArchitecture = CpuArchitecture.ARM64
},
MemoryLimitMiB = 512,
Cpu = 256,
PidMode = PidMode.TASK
});
Synopsis
Fields
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 | If task is specified, all containers within the specified task share the same process namespace. |
value__ |
Fields
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.
public const PidMode HOST
Field Value
Type | Description |
---|---|
PidMode |
TASK
If task is specified, all containers within the specified task share the same process namespace.
public const PidMode TASK
Field Value
Type | Description |
---|---|
PidMode |
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |