@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.735Z") @Stability(value=Stable) public interface LinuxParametersProps extends software.amazon.jsii.JsiiSerializable
Example:
// Example automatically generated from non-compiling source. May contain errors.
TaskDefinition taskDefinition;
taskDefinition.addContainer("container", ContainerDefinitionOptions.builder()
.image(ContainerImage.fromRegistry("amazon/amazon-ecs-sample"))
.memoryLimitMiB(1024)
.linuxParameters(LinuxParameters.Builder.create(this, "LinuxParameters")
.initProcessEnabled(true)
.sharedMemorySize(1024)
.maxSwap(5000)
.swappiness(90)
.build())
.build());
| Modifier and Type | Interface and Description |
|---|---|
static class |
LinuxParametersProps.Builder
A builder for
LinuxParametersProps |
static class |
LinuxParametersProps.Jsii$Proxy
An implementation for
LinuxParametersProps |
| Modifier and Type | Method and Description |
|---|---|
static LinuxParametersProps.Builder |
builder() |
default Boolean |
getInitProcessEnabled()
Specifies whether to run an init process inside the container that forwards signals and reaps processes.
|
default Size |
getMaxSwap()
The total amount of swap memory a container can use.
|
default Number |
getSharedMemorySize()
The value for the size of the /dev/shm volume.
|
default Number |
getSwappiness()
This allows you to tune a container's memory swappiness behavior.
|
@Stability(value=Stable) @Nullable default Boolean getInitProcessEnabled()
Default: false
@Stability(value=Stable) @Nullable default Size getMaxSwap()
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.
@Stability(value=Stable) @Nullable default Number getSharedMemorySize()
Default: No shared memory.
@Stability(value=Stable) @Nullable default Number getSwappiness()
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
@Stability(value=Stable) static LinuxParametersProps.Builder builder()
LinuxParametersProps.Builder of LinuxParametersPropsCopyright © 2022. All rights reserved.