Class CfnDaemonTaskDefinitionPropsMixin.LinuxParametersProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ecs.CfnDaemonTaskDefinitionPropsMixin.LinuxParametersProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDaemonTaskDefinitionPropsMixin.LinuxParametersProperty>
- Enclosing interface:
CfnDaemonTaskDefinitionPropsMixin.LinuxParametersProperty
@Stability(Stable)
public static final class CfnDaemonTaskDefinitionPropsMixin.LinuxParametersProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDaemonTaskDefinitionPropsMixin.LinuxParametersProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.capabilities(IResolvable capabilities) Sets the value ofCfnDaemonTaskDefinitionPropsMixin.LinuxParametersProperty.getDevices()devices(IResolvable devices) Sets the value ofCfnDaemonTaskDefinitionPropsMixin.LinuxParametersProperty.getDevices()initProcessEnabled(Boolean initProcessEnabled) initProcessEnabled(IResolvable initProcessEnabled) Sets the value ofCfnDaemonTaskDefinitionPropsMixin.LinuxParametersProperty.getTmpfs()tmpfs(IResolvable tmpfs) Sets the value ofCfnDaemonTaskDefinitionPropsMixin.LinuxParametersProperty.getTmpfs()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
capabilities
@Stability(Stable) public CfnDaemonTaskDefinitionPropsMixin.LinuxParametersProperty.Builder capabilities(IResolvable capabilities) - Parameters:
capabilities- 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 theaddanddroprequest 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.
- When the container is a privleged container, the container capabilities are all of the default Docker capabilities. The capabilities specified in the
- Returns:
this
-
capabilities
@Stability(Stable) public CfnDaemonTaskDefinitionPropsMixin.LinuxParametersProperty.Builder capabilities(CfnDaemonTaskDefinitionPropsMixin.KernelCapabilitiesProperty capabilities) - Parameters:
capabilities- 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 theaddanddroprequest 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.
- When the container is a privleged container, the container capabilities are all of the default Docker capabilities. The capabilities specified in the
- Returns:
this
-
devices
@Stability(Stable) public CfnDaemonTaskDefinitionPropsMixin.LinuxParametersProperty.Builder devices(IResolvable devices) Sets the value ofCfnDaemonTaskDefinitionPropsMixin.LinuxParametersProperty.getDevices()- Parameters:
devices- Any host devices to expose to the container. This parameter maps toDevicesin 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:
this
-
devices
@Stability(Stable) public CfnDaemonTaskDefinitionPropsMixin.LinuxParametersProperty.Builder devices(List<? extends Object> devices) Sets the value ofCfnDaemonTaskDefinitionPropsMixin.LinuxParametersProperty.getDevices()- Parameters:
devices- Any host devices to expose to the container. This parameter maps toDevicesin 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:
this
-
initProcessEnabled
@Stability(Stable) public CfnDaemonTaskDefinitionPropsMixin.LinuxParametersProperty.Builder initProcessEnabled(Boolean initProcessEnabled) - Parameters:
initProcessEnabled- 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:
this
-
initProcessEnabled
@Stability(Stable) public CfnDaemonTaskDefinitionPropsMixin.LinuxParametersProperty.Builder initProcessEnabled(IResolvable initProcessEnabled) - Parameters:
initProcessEnabled- 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:
this
-
tmpfs
@Stability(Stable) public CfnDaemonTaskDefinitionPropsMixin.LinuxParametersProperty.Builder tmpfs(IResolvable tmpfs) Sets the value ofCfnDaemonTaskDefinitionPropsMixin.LinuxParametersProperty.getTmpfs()- Parameters:
tmpfs- 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:
this
-
tmpfs
@Stability(Stable) public CfnDaemonTaskDefinitionPropsMixin.LinuxParametersProperty.Builder tmpfs(List<? extends Object> tmpfs) Sets the value ofCfnDaemonTaskDefinitionPropsMixin.LinuxParametersProperty.getTmpfs()- Parameters:
tmpfs- 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:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDaemonTaskDefinitionPropsMixin.LinuxParametersProperty>- Returns:
- a new instance of
CfnDaemonTaskDefinitionPropsMixin.LinuxParametersProperty - Throws:
NullPointerException- if any required attribute was not provided
-