Class SecretPathVolume.Builder
java.lang.Object
software.amazon.awscdk.services.batch.SecretPathVolume.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SecretPathVolume>
- Enclosing class:
SecretPathVolume
@Stability(Stable)
public static final class SecretPathVolume.Builder
extends Object
implements software.amazon.jsii.Builder<SecretPathVolume>
A fluent builder for
SecretPathVolume
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static SecretPathVolume.Builder
create()
The path on the container where the volume is mounted.The name of this volume.Specifies whether the secret or the secret's keys must be defined.If specified, the container has readonly access to the volume.secretName
(String secretName) The name of the secret.
-
Method Details
-
create
- Returns:
- a new instance of
SecretPathVolume.Builder
.
-
name
The name of this volume.The name must be a valid DNS subdomain name.
- Parameters:
name
- The name of this volume. This parameter is required.- Returns:
this
- See Also:
-
mountPath
The path on the container where the volume is mounted.Default: - the volume is not mounted
- Parameters:
mountPath
- The path on the container where the volume is mounted. This parameter is required.- Returns:
this
-
readonly
If specified, the container has readonly access to the volume.Otherwise, the container has read/write access.
Default: false
- Parameters:
readonly
- If specified, the container has readonly access to the volume. This parameter is required.- Returns:
this
-
secretName
The name of the secret.Must be a valid DNS subdomain name.
- Parameters:
secretName
- The name of the secret. This parameter is required.- Returns:
this
- See Also:
-
optional
Specifies whether the secret or the secret's keys must be defined.Default: true
- Parameters:
optional
- Specifies whether the secret or the secret's keys must be defined. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SecretPathVolume>
- Returns:
- a newly built instance of
SecretPathVolume
.
-