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.120.0 (build 192dc88)",
date="2025-12-05T22:26:30.040Z")
@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 ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionHostPathVolume(HostPathVolumeOptions options) protectedHostPathVolume(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedHostPathVolume(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Methods inherited from class software.amazon.awscdk.services.batch.EksVolume
emptyDir, getContainerPath, getName, getReadonly, hostPath, secretMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
- Parameters:
options- This parameter is required.
-
-
Method Details
-
isHostPathVolume
returnstrueifxis a HostPathVolume,falseotherwise.- Parameters:
x- This parameter is required.
-
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:
-