Interface EcsVolumeOptions

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

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-15T10:24:55.412Z") @Stability(Stable) public interface EcsVolumeOptions extends software.amazon.jsii.JsiiSerializable
Options to configure an EcsVolume.

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

    • getContainerPath

      @Stability(Stable) @NotNull String getContainerPath()
      the path on the container where this volume is mounted.
    • getName

      @Stability(Stable) @NotNull String getName()
      the name of this volume.
    • getReadonly

      @Stability(Stable) @Nullable default Boolean getReadonly()
      if set, the container will have readonly access to the volume.

      Default: false

    • builder

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