Interface LinuxParametersProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
LinuxParametersProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-26T17:32:10.232Z")
@Stability(Stable)
public interface LinuxParametersProps
extends software.amazon.jsii.JsiiSerializable
The properties for defining Linux-specific options that are applied to the container.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.batch.*;
Size size;
LinuxParametersProps linuxParametersProps = LinuxParametersProps.builder()
.initProcessEnabled(false)
.maxSwap(size)
.sharedMemorySize(size)
.swappiness(123)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forLinuxParametersPropsstatic final classAn implementation forLinuxParametersProps -
Method Summary
Modifier and TypeMethodDescriptionstatic LinuxParametersProps.Builderbuilder()default BooleanSpecifies whether to run an init process inside the container that forwards signals and reaps processes.default SizeThe total amount of swap memory a container can use.default SizeThe value for the size of the /dev/shm volume.default NumberThis allows you to tune a container's memory swappiness behavior.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getInitProcessEnabled
Specifies whether to run an init process inside the container that forwards signals and reaps processes.Default: false
-
getMaxSwap
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.
Default: No swap.
-
getSwappiness
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.
Default: 60
-
builder
- Returns:
- a
LinuxParametersProps.BuilderofLinuxParametersProps
-