Interface SecretPathVolumeOptions
- All Superinterfaces:
EksVolumeOptions
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
SecretPathVolumeOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:23:57.767Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forSecretPathVolumeOptions
static final class
An implementation forSecretPathVolumeOptions
-
Method Summary
Methods inherited from interface software.amazon.awscdk.services.batch.EksVolumeOptions
getMountPath, getName, getReadonly
Methods 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.Builder
ofSecretPathVolumeOptions
-