Class TaskDefinitionVolume


  • public final class TaskDefinitionVolume
    extends java.lang.Object
    • Method Detail

      • configureAtLaunch

        public java.util.Optional<java.lang.Boolean> configureAtLaunch()
        Returns:
        Whether the volume should be configured at launch time. This is used to create Amazon EBS volumes for standalone tasks or tasks created as part of a service. Each task definition revision may only have one volume configured at launch in the volume configuration.
      • hostPath

        public java.util.Optional<java.lang.String> hostPath()
        Returns:
        Path on the host container instance that is presented to the container. If not set, ECS will create a nonpersistent data volume that starts empty and is deleted after the task has finished.
      • name

        public java.lang.String name()
        Returns:
        Name of the volume. This name is referenced in the `sourceVolume` parameter of container definition in the `mountPoints` section.