Class CfnJobDefinition.EksContainerVolumeMountProperty
The volume mounts for a container for an Amazon EKS job.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnJobDefinition.EksContainerVolumeMountProperty : CfnJobDefinition.IEksContainerVolumeMountProperty
Syntax (vb)
Public Class CfnJobDefinition.EksContainerVolumeMountProperty Implements CfnJobDefinition.IEksContainerVolumeMountProperty
Remarks
For more information about volumes and volume mounts in Kubernetes, see Volumes in the Kubernetes documentation .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Batch;
var eksContainerVolumeMountProperty = new EksContainerVolumeMountProperty {
MountPath = "mountPath",
Name = "name",
ReadOnly = false,
SubPath = "subPath"
};
Synopsis
Constructors
| EksContainerVolumeMountProperty() | The volume mounts for a container for an Amazon EKS job. |
Properties
| MountPath | The path on the container where the volume is mounted. |
| Name | The name the volume mount. |
| ReadOnly | If this value is |
| SubPath | A sub-path inside the referenced volume instead of its root. |
Constructors
EksContainerVolumeMountProperty()
The volume mounts for a container for an Amazon EKS job.
public EksContainerVolumeMountProperty()
Remarks
For more information about volumes and volume mounts in Kubernetes, see Volumes in the Kubernetes documentation .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Batch;
var eksContainerVolumeMountProperty = new EksContainerVolumeMountProperty {
MountPath = "mountPath",
Name = "name",
ReadOnly = false,
SubPath = "subPath"
};
Properties
MountPath
The path on the container where the volume is mounted.
public string? MountPath { get; set; }
Property Value
Remarks
Name
The name the volume mount.
public string? Name { get; set; }
Property Value
Remarks
This must match the name of one of the volumes in the pod.
ReadOnly
If this value is true , the container has read-only access to the volume.
public object? ReadOnly { get; set; }
Property Value
Remarks
Otherwise, the container can write to the volume. The default value is false .
Type union: either bool or IResolvable
SubPath
A sub-path inside the referenced volume instead of its root.
public string? SubPath { get; set; }