Class LinuxParameters
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.services.batch.LinuxParameters
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:05.799Z")
@Stability(Stable)
public class LinuxParameters
extends software.constructs.Construct
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;
LinuxParameters linuxParameters = LinuxParameters.Builder.create(this, "MyLinuxParameters")
.initProcessEnabled(false)
.maxSwap(size)
.sharedMemorySize(size)
.swappiness(123)
.build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLinuxParameters(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedLinuxParameters(software.amazon.jsii.JsiiObjectRef objRef) LinuxParameters(software.constructs.Construct scope, String id) Constructs a new instance of the LinuxParameters class.LinuxParameters(software.constructs.Construct scope, String id, LinuxParametersProps props) Constructs a new instance of the LinuxParameters class. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDevices(Device... device) Adds one or more host devices to a container.voidSpecifies the container path, mount options, and size (in MiB) of the tmpfs mount for a container.Device mounts.protected BooleanWhether the init process is enabled.protected SizeThe max swap memory.protected SizeThe shared memory size (in MiB).protected NumberThe swappiness behavior.getTmpfs()TmpFs mounts.Renders the Linux parameters to the Batch version of this resource, which does not have 'capabilities' and requires tmpfs.containerPath to be defined.Methods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
LinuxParameters
protected LinuxParameters(software.amazon.jsii.JsiiObjectRef objRef) -
LinuxParameters
protected LinuxParameters(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
LinuxParameters
@Stability(Stable) public LinuxParameters(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable LinuxParametersProps props) Constructs a new instance of the LinuxParameters class.- Parameters:
scope- This parameter is required.id- This parameter is required.props-
-
LinuxParameters
@Stability(Stable) public LinuxParameters(@NotNull software.constructs.Construct scope, @NotNull String id) Constructs a new instance of the LinuxParameters class.- Parameters:
scope- This parameter is required.id- This parameter is required.
-
-
Method Details
-
addDevices
Adds one or more host devices to a container.- Parameters:
device- This parameter is required.
-
addTmpfs
Specifies the container path, mount options, and size (in MiB) of the tmpfs mount for a container.Only works with EC2 launch type.
- Parameters:
tmpfs- This parameter is required.
-
renderLinuxParameters
Renders the Linux parameters to the Batch version of this resource, which does not have 'capabilities' and requires tmpfs.containerPath to be defined. -
getDevices
Device mounts. -
getTmpfs
TmpFs mounts. -
getInitProcessEnabled
Whether the init process is enabled. -
getMaxSwap
The max swap memory. -
getSwappiness
The swappiness behavior.
-