Class HostVolume

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.batch.EcsVolume
software.amazon.awscdk.services.batch.HostVolume
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:03.407Z") @Stability(Stable) public class HostVolume extends EcsVolume
Creates a Host volume.

This volume will persist on the host at the specified hostPath. If the hostPath is not specified, Docker will choose the host path. In this case, the data may not persist after the containers that use it stop running.

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.*;
 HostVolume hostVolume = HostVolume.Builder.create()
         .containerPath("containerPath")
         .name("name")
         // the properties below are optional
         .hostPath("hostPath")
         .readonly(false)
         .build();
 
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    A fluent builder for HostVolume.

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
     
    protected
    HostVolume(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    HostVolume(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    The path on the host machine this container will have access to.
    static Boolean
    returns true if x is a HostVolume, false otherwise.

    Methods inherited from class software.amazon.awscdk.services.batch.EcsVolume

    efs, getContainerPath, getName, getReadonly, host

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • HostVolume

      protected HostVolume(software.amazon.jsii.JsiiObjectRef objRef)
    • HostVolume

      protected HostVolume(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • HostVolume

      @Stability(Stable) public HostVolume(@NotNull HostVolumeOptions options)
      Parameters:
      options - This parameter is required.
  • Method Details

    • isHostVolume

      @Stability(Stable) @NotNull public static Boolean isHostVolume(@NotNull Object x)
      returns true if x is a HostVolume, false otherwise.

      Parameters:
      x - This parameter is required.
    • getHostPath

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