Class CfnDaemonTaskDefinition.LinuxParametersProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnDaemonTaskDefinition.LinuxParametersProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDaemonTaskDefinition.LinuxParametersProperty>
- Enclosing interface:
CfnDaemonTaskDefinition.LinuxParametersProperty
@Stability(Stable)
public static final class CfnDaemonTaskDefinition.LinuxParametersProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDaemonTaskDefinition.LinuxParametersProperty>
A builder for
CfnDaemonTaskDefinition.LinuxParametersProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.capabilities(IResolvable capabilities) Sets the value ofCfnDaemonTaskDefinition.LinuxParametersProperty.getCapabilities()Sets the value ofCfnDaemonTaskDefinition.LinuxParametersProperty.getCapabilities()Sets the value ofCfnDaemonTaskDefinition.LinuxParametersProperty.getDevices()devices(IResolvable devices) Sets the value ofCfnDaemonTaskDefinition.LinuxParametersProperty.getDevices()initProcessEnabled(Boolean initProcessEnabled) Sets the value ofCfnDaemonTaskDefinition.LinuxParametersProperty.getInitProcessEnabled()initProcessEnabled(IResolvable initProcessEnabled) Sets the value ofCfnDaemonTaskDefinition.LinuxParametersProperty.getInitProcessEnabled()Sets the value ofCfnDaemonTaskDefinition.LinuxParametersProperty.getTmpfs()tmpfs(IResolvable tmpfs) Sets the value ofCfnDaemonTaskDefinition.LinuxParametersProperty.getTmpfs()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
capabilities
@Stability(Stable) public CfnDaemonTaskDefinition.LinuxParametersProperty.Builder capabilities(IResolvable capabilities) Sets the value ofCfnDaemonTaskDefinition.LinuxParametersProperty.getCapabilities()- 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 CfnDaemonTaskDefinition.LinuxParametersProperty.Builder capabilities(CfnDaemonTaskDefinition.KernelCapabilitiesProperty capabilities) Sets the value ofCfnDaemonTaskDefinition.LinuxParametersProperty.getCapabilities()- 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 CfnDaemonTaskDefinition.LinuxParametersProperty.Builder devices(IResolvable devices) Sets the value ofCfnDaemonTaskDefinition.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 CfnDaemonTaskDefinition.LinuxParametersProperty.Builder devices(List<? extends Object> devices) Sets the value ofCfnDaemonTaskDefinition.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 CfnDaemonTaskDefinition.LinuxParametersProperty.Builder initProcessEnabled(Boolean initProcessEnabled) Sets the value ofCfnDaemonTaskDefinition.LinuxParametersProperty.getInitProcessEnabled()- 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 CfnDaemonTaskDefinition.LinuxParametersProperty.Builder initProcessEnabled(IResolvable initProcessEnabled) Sets the value ofCfnDaemonTaskDefinition.LinuxParametersProperty.getInitProcessEnabled()- 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 CfnDaemonTaskDefinition.LinuxParametersProperty.Builder tmpfs(IResolvable tmpfs) Sets the value ofCfnDaemonTaskDefinition.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 CfnDaemonTaskDefinition.LinuxParametersProperty.Builder tmpfs(List<? extends Object> tmpfs) Sets the value ofCfnDaemonTaskDefinition.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<CfnDaemonTaskDefinition.LinuxParametersProperty>- Returns:
- a new instance of
CfnDaemonTaskDefinition.LinuxParametersProperty - Throws:
NullPointerException- if any required attribute was not provided
-