Class SecretPathVolume
Specifies the configuration of a Kubernetes secret volume.
Inherited Members
Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class SecretPathVolume : EksVolume
Syntax (vb)
Public Class SecretPathVolume Inherits EksVolume
Remarks
See: https://kubernetes.io/docs/concepts/storage/volumes/#secret
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 secretPathVolume = new SecretPathVolume(new SecretPathVolumeOptions {
Name = "name",
SecretName = "secretName",
// the properties below are optional
MountPath = "mountPath",
Optional = false,
Readonly = false
});
Synopsis
Constructors
| SecretPathVolume(ISecretPathVolumeOptions) | Specifies the configuration of a Kubernetes secret volume. |
Properties
| Optional | Specifies whether the secret or the secret's keys must be defined. |
| SecretName | The name of the secret. |
Methods
| IsSecretPathVolume(object) | returns |
Constructors
SecretPathVolume(ISecretPathVolumeOptions)
Specifies the configuration of a Kubernetes secret volume.
public SecretPathVolume(ISecretPathVolumeOptions options)
Parameters
- options ISecretPathVolumeOptions
Remarks
See: https://kubernetes.io/docs/concepts/storage/volumes/#secret
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 secretPathVolume = new SecretPathVolume(new SecretPathVolumeOptions {
Name = "name",
SecretName = "secretName",
// the properties below are optional
MountPath = "mountPath",
Optional = false,
Readonly = false
});
Properties
Optional
Specifies whether the secret or the secret's keys must be defined.
public virtual bool? Optional { get; }
Property Value
bool?
Remarks
Default: true
SecretName
The name of the secret.
public virtual string SecretName { get; }
Property Value
Remarks
Must be a valid DNS subdomain name.
See: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#dns-subdomain-names
Methods
IsSecretPathVolume(object)
returns true if x is a SecretPathVolume and false otherwise.
public static bool IsSecretPathVolume(object x)
Parameters
- x object
Returns
Remarks
See: https://kubernetes.io/docs/concepts/storage/volumes/#secret
ExampleMetadata: fixture=_generated