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.103.1 (build bef2dea)",
date="2024-09-18T22:16:52.560Z")
@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/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
ModifierConstructorDescriptionHostVolume
(HostVolumeOptions options) protected
HostVolume
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
HostVolume
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe path on the host machine this container will have access to.static Boolean
returnstrue
ifx
is aHostVolume
,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
- Parameters:
options
- This parameter is required.
-
-
Method Details
-
isHostVolume
returnstrue
ifx
is aHostVolume
,false
otherwise.- Parameters:
x
- This parameter is required.
-
getHostPath
The path on the host machine this container will have access to.
-