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>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • capabilities

      @Stability(Stable) public CfnDaemonTaskDefinition.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 the add and drop request 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 add request parameter, and the drop request parameter are ignored.
      • When the add request parameter is set to ALL, the container capabilities are all of the default Docker capabilities, excluding those specified in the drop request parameter.
      • When the drop request parameter is set to ALL, the container capabilities are the capabilities specified in the add request parameter.
      • When the add request parameter and the drop request 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 drop request parameter, and then add the capabilities specified in the add request parameter.
      Returns:
      this
    • 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 the add and drop request 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 add request parameter, and the drop request parameter are ignored.
      • When the add request parameter is set to ALL, the container capabilities are all of the default Docker capabilities, excluding those specified in the drop request parameter.
      • When the drop request parameter is set to ALL, the container capabilities are the capabilities specified in the add request parameter.
      • When the add request parameter and the drop request 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 drop request parameter, and then add the capabilities specified in the add request parameter.
      Returns:
      this
    • devices

      @Stability(Stable) public CfnDaemonTaskDefinition.LinuxParametersProperty.Builder devices(IResolvable devices)
      Parameters:
      devices - Any host devices to expose to the container. This parameter maps to Devices in the docker container create command and the --device option to docker run. If you're using tasks that use the Fargate launch type, the devices parameter isn't supported.
      Returns:
      this
    • devices

      @Stability(Stable) public CfnDaemonTaskDefinition.LinuxParametersProperty.Builder devices(List<? extends Object> devices)
      Parameters:
      devices - Any host devices to expose to the container. This parameter maps to Devices in the docker container create command and the --device option to docker run. If you're using tasks that use the Fargate launch type, the devices parameter isn't supported.
      Returns:
      this
    • initProcessEnabled

      @Stability(Stable) public CfnDaemonTaskDefinition.LinuxParametersProperty.Builder initProcessEnabled(Boolean initProcessEnabled)
      Parameters:
      initProcessEnabled - Run an init process inside the container that forwards signals and reaps processes. This parameter maps to the --init option 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)
      Parameters:
      initProcessEnabled - Run an init process inside the container that forwards signals and reaps processes. This parameter maps to the --init option 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

      Parameters:
      tmpfs - The container path, mount options, and size (in MiB) of the tmpfs mount. This parameter maps to the --tmpfs option to docker run. If you're using tasks that use the Fargate launch type, the tmpfs parameter isn't supported.
      Returns:
      this
    • tmpfs

      @Stability(Stable) public CfnDaemonTaskDefinition.LinuxParametersProperty.Builder tmpfs(List<? extends Object> tmpfs)
      Parameters:
      tmpfs - The container path, mount options, and size (in MiB) of the tmpfs mount. This parameter maps to the --tmpfs option to docker run. If you're using tasks that use the Fargate launch type, the tmpfs parameter isn't supported.
      Returns:
      this
    • build

      @Stability(Stable) public CfnDaemonTaskDefinition.LinuxParametersProperty build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnDaemonTaskDefinition.LinuxParametersProperty>
      Returns:
      a new instance of CfnDaemonTaskDefinition.LinuxParametersProperty
      Throws:
      NullPointerException - if any required attribute was not provided