Class HostPathVolume

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

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-12T19:33:58.204Z") @Stability(Stable) public class HostPathVolume extends EksVolume
A Kubernetes HostPath volume.

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.*;
 HostPathVolume hostPathVolume = HostPathVolume.Builder.create()
         .hostPath("hostPath")
         .name("name")
         // the properties below are optional
         .mountPath("mountPath")
         .readonly(false)
         .build();
 

See Also:
  • Nested Class Summary

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

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

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

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

    Modifier and Type
    Method
    Description
    The path of the file or directory on the host to mount into containers on the pod.
    static Boolean
    returns true if x is a HostPathVolume, false otherwise.

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

    emptyDir, getContainerPath, getName, getReadonly, hostPath, secret

    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

    • HostPathVolume

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

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

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

    • isHostPathVolume

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

      Parameters:
      x - This parameter is required.
    • getPath

      @Stability(Stable) @NotNull public String getPath()
      The path of the file or directory on the host to mount into containers on the pod.

      Note: HothPath Volumes present many security risks, and should be avoided when possible.

      See Also: