Class LinuxParameters
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.services.ecs.LinuxParameters
- All Implemented Interfaces:
IConstruct,IDependable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:47.410Z")
@Stability(Stable)
public class LinuxParameters
extends 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.services.ecs.*;
LinuxParameters linuxParameters = LinuxParameters.Builder.create(this, "MyLinuxParameters")
.initProcessEnabled(false)
.sharedMemorySize(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.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default, IConstruct.Jsii$ProxyNested 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 TypeMethodDescriptionvoidaddCapabilities(@NotNull Capability... cap) Adds one or more Linux capabilities to the Docker configuration of a container.voidaddDevices(@NotNull 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.voiddropCapabilities(@NotNull Capability... cap) Removes one or more Linux capabilities to the Docker configuration of a container.Renders the Linux parameters to a CloudFormation object.Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.constructs.Construct
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
-
addCapabilities
Adds one or more Linux capabilities to the Docker configuration of a container.Only works with EC2 launch type.
- Parameters:
cap- This parameter is required.
-
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.
-
dropCapabilities
Removes one or more Linux capabilities to the Docker configuration of a container.Only works with EC2 launch type.
- Parameters:
cap- This parameter is required.
-
renderLinuxParameters
@Stability(Stable) @NotNull public CfnTaskDefinition.LinuxParametersProperty renderLinuxParameters()Renders the Linux parameters to a CloudFormation object.
-