Interface HostVolumeOptions

All Superinterfaces:
EcsVolumeOptions, software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
HostVolumeOptions.Jsii$Proxy

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:03.407Z") @Stability(Stable) public interface HostVolumeOptions extends software.amazon.jsii.JsiiSerializable, EcsVolumeOptions
Options for configuring an ECS HostVolume.

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.batch.*;
 HostVolumeOptions hostVolumeOptions = HostVolumeOptions.builder()
         .containerPath("containerPath")
         .name("name")
         // the properties below are optional
         .hostPath("hostPath")
         .readonly(false)
         .build();
 
  • Method Details

    • getHostPath

      @Stability(Stable) @Nullable default String getHostPath()
      The path on the host machine this container will have access to.

      Default: - Docker will choose the host path. The data may not persist after the containers that use it stop running.

    • builder

      @Stability(Stable) static HostVolumeOptions.Builder builder()
      Returns:
      a HostVolumeOptions.Builder of HostVolumeOptions