Class HostPathVolume
A Kubernetes HostPath volume.
Inherited Members
Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class HostPathVolume : EksVolume
Syntax (vb)
Public Class HostPathVolume
Inherits EksVolume
Remarks
See: https://kubernetes.io/docs/concepts/storage/volumes/#hostpath
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 hostPathVolume = new HostPathVolume(new HostPathVolumeOptions {
HostPath = "hostPath",
Name = "name",
// the properties below are optional
MountPath = "mountPath",
Readonly = false
});
Synopsis
Constructors
HostPathVolume(IHostPathVolumeOptions) | |
HostPathVolume(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
HostPathVolume(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
Path | The path of the file or directory on the host to mount into containers on the pod. |
Methods
IsHostPathVolume(Object) | returns |
Constructors
HostPathVolume(IHostPathVolumeOptions)
HostPathVolume(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected HostPathVolume(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
HostPathVolume(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected HostPathVolume(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
Path
The path of the file or directory on the host to mount into containers on the pod.
public virtual string Path { get; }
Property Value
System.String
Remarks
Note: HothPath Volumes present many security risks, and should be avoided when possible.
See: https://kubernetes.io/docs/concepts/storage/volumes/#hostpath
Methods
IsHostPathVolume(Object)
returns true
if x
is a HostPathVolume, false
otherwise.
public static bool IsHostPathVolume(object x)
Parameters
- x System.Object
Returns
System.Boolean