@Stability(value=Stable) public static final class LinuxParametersProps.Builder extends Object implements software.amazon.jsii.Builder<LinuxParametersProps>
LinuxParametersProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
LinuxParametersProps |
build()
Builds the configured instance.
|
LinuxParametersProps.Builder |
initProcessEnabled(Boolean initProcessEnabled)
Sets the value of
LinuxParametersProps.getInitProcessEnabled() |
LinuxParametersProps.Builder |
maxSwap(Size maxSwap)
Sets the value of
LinuxParametersProps.getMaxSwap() |
LinuxParametersProps.Builder |
sharedMemorySize(Number sharedMemorySize)
Sets the value of
LinuxParametersProps.getSharedMemorySize() |
LinuxParametersProps.Builder |
swappiness(Number swappiness)
Sets the value of
LinuxParametersProps.getSwappiness() |
@Stability(value=Stable) public LinuxParametersProps.Builder initProcessEnabled(Boolean initProcessEnabled)
LinuxParametersProps.getInitProcessEnabled()initProcessEnabled - Specifies whether to run an init process inside the container that forwards signals and reaps processes.this@Stability(value=Stable) public LinuxParametersProps.Builder maxSwap(Size maxSwap)
LinuxParametersProps.getMaxSwap()maxSwap - The total amount of swap memory a container can use.
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.
this@Stability(value=Stable) public LinuxParametersProps.Builder sharedMemorySize(Number sharedMemorySize)
LinuxParametersProps.getSharedMemorySize()sharedMemorySize - The value for the size of the /dev/shm volume.this@Stability(value=Stable) public LinuxParametersProps.Builder swappiness(Number swappiness)
LinuxParametersProps.getSwappiness()swappiness - This allows you to tune a container's memory swappiness behavior.
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.
this@Stability(value=Stable) public LinuxParametersProps build()
build in interface software.amazon.jsii.Builder<LinuxParametersProps>LinuxParametersPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.