Interface CfnJobDefinition.EksContainerVolumeMountProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnJobDefinition.EksContainerVolumeMountProperty.Jsii$Proxy
- Enclosing class:
CfnJobDefinition
@Stability(Stable)
public static interface CfnJobDefinition.EksContainerVolumeMountProperty
extends software.amazon.jsii.JsiiSerializable
The volume mounts for a container for an Amazon EKS job.
For more information about volumes and volume mounts in Kubernetes, see Volumes in the Kubernetes documentation .
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.*;
EksContainerVolumeMountProperty eksContainerVolumeMountProperty = EksContainerVolumeMountProperty.builder()
.mountPath("mountPath")
.name("name")
.readOnly(false)
.subPath("subPath")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnJobDefinition.EksContainerVolumeMountPropertystatic final classAn implementation forCfnJobDefinition.EksContainerVolumeMountProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe path on the container where the volume is mounted.default StringgetName()The name the volume mount.default ObjectIf this value istrue, the container has read-only access to the volume.default StringA sub-path inside the referenced volume instead of its root.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMountPath
The path on the container where the volume is mounted.- See Also:
-
getName
The name the volume mount.This must match the name of one of the volumes in the pod.
- See Also:
-
getReadOnly
If this value istrue, the container has read-only access to the volume.Otherwise, the container can write to the volume. The default value is
false.Returns union: either
BooleanorIResolvable- See Also:
-
getSubPath
A sub-path inside the referenced volume instead of its root.- See Also:
-
builder
-