Interface CfnJobDefinition.IEksVolumeProperty
Specifies an Amazon EKS volume for a job definition.
Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnJobDefinition.IEksVolumeProperty
Syntax (vb)
Public Interface CfnJobDefinition.IEksVolumeProperty
Remarks
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 eksVolumeProperty = new EksVolumeProperty {
Name = "name",
// the properties below are optional
EmptyDir = new EmptyDirProperty {
Medium = "medium",
SizeLimit = "sizeLimit"
},
HostPath = new HostPathProperty {
Path = "path"
},
PersistentVolumeClaim = new EksPersistentVolumeClaimProperty {
ClaimName = "claimName",
// the properties below are optional
ReadOnly = false
},
Secret = new EksSecretProperty {
SecretName = "secretName",
// the properties below are optional
Optional = false
}
};
Synopsis
Properties
| EmptyDir | Specifies the configuration of a Kubernetes |
| HostPath | Specifies the configuration of a Kubernetes |
| Name | The name of the volume. |
| PersistentVolumeClaim | Specifies the configuration of a Kubernetes |
| Secret | Specifies the configuration of a Kubernetes |
Properties
EmptyDir
Specifies the configuration of a Kubernetes emptyDir volume.
object? EmptyDir { get; }
Property Value
Remarks
For more information, see emptyDir in the Kubernetes documentation .
Type union: either IResolvable or CfnJobDefinition.IEmptyDirProperty
HostPath
Specifies the configuration of a Kubernetes hostPath volume.
object? HostPath { get; }
Property Value
Remarks
For more information, see hostPath in the Kubernetes documentation .
Type union: either IResolvable or CfnJobDefinition.IHostPathProperty
Name
The name of the volume.
string Name { get; }
Property Value
Remarks
The name must be allowed as a DNS subdomain name. For more information, see DNS subdomain names in the Kubernetes documentation .
PersistentVolumeClaim
Specifies the configuration of a Kubernetes persistentVolumeClaim bounded to a persistentVolume .
object? PersistentVolumeClaim { get; }
Property Value
Remarks
For more information, see Persistent Volume Claims in the Kubernetes documentation .
Type union: either IResolvable or CfnJobDefinition.IEksPersistentVolumeClaimProperty
Secret
Specifies the configuration of a Kubernetes secret volume.
object? Secret { get; }
Property Value
Remarks
For more information, see secret in the Kubernetes documentation .
Type union: either IResolvable or CfnJobDefinition.IEksSecretProperty