Interface CfnDaemonTaskDefinition.LinuxParametersProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDaemonTaskDefinition.LinuxParametersProperty.Jsii$Proxy
- Enclosing class:
CfnDaemonTaskDefinition
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.*;
LinuxParametersProperty linuxParametersProperty = LinuxParametersProperty.builder()
.capabilities(KernelCapabilitiesProperty.builder()
.add(List.of("add"))
.drop(List.of("drop"))
.build())
.devices(List.of(DeviceProperty.builder()
.containerPath("containerPath")
.hostPath("hostPath")
.permissions(List.of("permissions"))
.build()))
.initProcessEnabled(false)
.tmpfs(List.of(TmpfsProperty.builder()
.size(123)
// the properties below are optional
.containerPath("containerPath")
.mountOptions(List.of("mountOptions"))
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDaemonTaskDefinition.LinuxParametersPropertystatic final classAn implementation forCfnDaemonTaskDefinition.LinuxParametersProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectThe Linux capabilities to add or remove from the default Docker configuration for a container defined in the task definition.default ObjectAny host devices to expose to the container.default ObjectRun aninitprocess inside the container that forwards signals and reaps processes.default ObjectgetTmpfs()The container path, mount options, and size (in MiB) of the tmpfs mount.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCapabilities
The Linux capabilities to add or remove from the default Docker configuration for a container defined in the task definition.For more detailed information about these Linux capabilities, see the capabilities(7) Linux manual page. The following describes how Docker processes the Linux capabilities specified in the
addanddroprequest parameters. For information about the latest behavior, see Docker Compose: order of cap_drop and cap_add in the Docker Community Forum.- When the container is a privleged container, the container capabilities are all of the default Docker capabilities. The capabilities specified in the
addrequest parameter, and thedroprequest parameter are ignored. - When the
addrequest parameter is set to ALL, the container capabilities are all of the default Docker capabilities, excluding those specified in thedroprequest parameter. - When the
droprequest parameter is set to ALL, the container capabilities are the capabilities specified in theaddrequest parameter. - When the
addrequest parameter and thedroprequest parameter are both empty, the capabilities the container capabilities are all of the default Docker capabilities. - The default is to first drop the capabilities specified in the
droprequest parameter, and then add the capabilities specified in theaddrequest parameter.
Returns union: either
IResolvableorCfnDaemonTaskDefinition.KernelCapabilitiesProperty- See Also:
- When the container is a privleged container, the container capabilities are all of the default Docker capabilities. The capabilities specified in the
-
getDevices
Any host devices to expose to the container.This parameter maps to
Devicesin the docker container create command and the--deviceoption to docker run. If you're using tasks that use the Fargate launch type, thedevicesparameter isn't supported.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDaemonTaskDefinition.DeviceProperty>- See Also:
-
getInitProcessEnabled
Run aninitprocess inside the container that forwards signals and reaps processes.This parameter maps to the
--initoption to docker run. This parameter requires version 1.25 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command:sudo docker version --format '{{.Server.APIVersion}}'Returns union: either
BooleanorIResolvable- See Also:
-
getTmpfs
The container path, mount options, and size (in MiB) of the tmpfs mount.This parameter maps to the
--tmpfsoption to docker run. If you're using tasks that use the Fargate launch type, thetmpfsparameter isn't supported.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDaemonTaskDefinition.TmpfsProperty>- See Also:
-
builder
-