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.103.1 (build bef2dea)",
date="2024-09-18T22:16:52.559Z")
@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/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
ModifierConstructorDescriptionHostPathVolume
(HostPathVolumeOptions options) protected
HostPathVolume
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
HostPathVolume
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
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
- Parameters:
options
- This parameter is required.
-
-
Method Details
-
isHostPathVolume
returnstrue
ifx
is a HostPathVolume,false
otherwise.- 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:
-