Class CfnJobDefinition.EksContainerVolumeMountProperty
The volume mounts for a container for an Amazon EKS job.
Inheritance
System.Object
CfnJobDefinition.EksContainerVolumeMountProperty
Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.AWS.Batch.dll
Syntax (csharp)
public class EksContainerVolumeMountProperty : Object, CfnJobDefinition.IEksContainerVolumeMountProperty
Syntax (vb)
Public Class EksContainerVolumeMountProperty
Inherits Object
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
};
Synopsis
Constructors
EksContainerVolumeMountProperty() |
Properties
MountPath | The path on the container where the volume is mounted. |
Name | The name the volume mount. |
ReadOnly | If this value is |
Constructors
EksContainerVolumeMountProperty()
public EksContainerVolumeMountProperty()
Properties
MountPath
The path on the container where the volume is mounted.
public string MountPath { get; set; }
Property Value
System.String
Remarks
Name
The name the volume mount.
public string Name { get; set; }
Property Value
System.String
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
System.Object
Remarks
Otherwise, the container can write to the volume. The default value is false
.