@Stability(value=Stable) public static final class LinuxParameters.Builder extends Object implements software.amazon.jsii.Builder<LinuxParameters>
LinuxParameters.| Modifier and Type | Method and Description |
|---|---|
LinuxParameters |
build() |
static LinuxParameters.Builder |
create(software.constructs.Construct scope,
String id) |
LinuxParameters.Builder |
initProcessEnabled(Boolean initProcessEnabled)
Specifies whether to run an init process inside the container that forwards signals and reaps processes.
|
LinuxParameters.Builder |
maxSwap(Size maxSwap)
The total amount of swap memory a container can use.
|
LinuxParameters.Builder |
sharedMemorySize(Number sharedMemorySize)
The value for the size of the /dev/shm volume.
|
LinuxParameters.Builder |
swappiness(Number swappiness)
This allows you to tune a container's memory swappiness behavior.
|
@Stability(value=Stable) public static LinuxParameters.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.LinuxParameters.Builder.@Stability(value=Stable) public LinuxParameters.Builder initProcessEnabled(Boolean initProcessEnabled)
Default: false
initProcessEnabled - Specifies whether to run an init process inside the container that forwards signals and reaps processes. This parameter is required.this@Stability(value=Stable) public LinuxParameters.Builder maxSwap(Size maxSwap)
This parameter will be translated to the --memory-swap option to docker run.
This parameter is only supported when you are using the EC2 launch type. Accepted values are positive integers.
Default: No swap.
maxSwap - The total amount of swap memory a container can use. This parameter is required.this@Stability(value=Stable) public LinuxParameters.Builder sharedMemorySize(Number sharedMemorySize)
Default: No shared memory.
sharedMemorySize - The value for the size of the /dev/shm volume. This parameter is required.this@Stability(value=Stable) public LinuxParameters.Builder swappiness(Number swappiness)
This parameter maps to the --memory-swappiness option to docker run. The swappiness relates to the kernel's tendency to swap memory. A value of 0 will cause swapping to not happen unless absolutely necessary. A value of 100 will cause pages to be swapped very aggressively.
This parameter is only supported when you are using the EC2 launch type. Accepted values are whole numbers between 0 and 100. If a value is not specified for maxSwap then this parameter is ignored.
Default: 60
swappiness - This allows you to tune a container's memory swappiness behavior. This parameter is required.this@Stability(value=Stable) public LinuxParameters build()
build in interface software.amazon.jsii.Builder<LinuxParameters>Copyright © 2022. All rights reserved.