Interface SecretPathVolumeOptions
- All Superinterfaces:
EksVolumeOptions,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
SecretPathVolumeOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:09:59.726Z")
@Stability(Stable)
public interface SecretPathVolumeOptions
extends software.amazon.jsii.JsiiSerializable, EksVolumeOptions
Options for a Kubernetes SecretPath Volume.
Example:
EksJobDefinition jobDefn;
jobDefn.container.addVolume(EksVolume.emptyDir(EmptyDirVolumeOptions.builder()
.name("emptyDir")
.mountPath("/Volumes/emptyDir")
.build()));
jobDefn.container.addVolume(EksVolume.hostPath(HostPathVolumeOptions.builder()
.name("hostPath")
.hostPath("/sys")
.mountPath("/Volumes/hostPath")
.build()));
jobDefn.container.addVolume(EksVolume.secret(SecretPathVolumeOptions.builder()
.name("secret")
.optional(true)
.mountPath("/Volumes/secret")
.secretName("mySecret")
.build()));
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forSecretPathVolumeOptionsstatic final classAn implementation forSecretPathVolumeOptions -
Method Summary
Methods inherited from interface software.amazon.awscdk.services.batch.EksVolumeOptions
getMountPath, getName, getReadonlyMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getSecretName
The name of the secret.Must be a valid DNS subdomain name.
- See Also:
-
getOptional
Specifies whether the secret or the secret's keys must be defined.Default: true
-
builder
- Returns:
- a
SecretPathVolumeOptions.BuilderofSecretPathVolumeOptions
-