interface EksVolumeOptions
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Batch.EksVolumeOptions |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsbatch#EksVolumeOptions |
Java | software.amazon.awscdk.services.batch.EksVolumeOptions |
Python | aws_cdk.aws_batch.EksVolumeOptions |
TypeScript (source) | aws-cdk-lib » aws_batch » EksVolumeOptions |
Options to configure an EksVolume.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_batch as batch } from 'aws-cdk-lib';
const eksVolumeOptions: batch.EksVolumeOptions = {
name: 'name',
// the properties below are optional
mountPath: 'mountPath',
readonly: false,
};
Properties
Name | Type | Description |
---|---|---|
name | string | The name of this volume. |
mount | string | The path on the container where the volume is mounted. |
readonly? | boolean | If specified, the container has readonly access to the volume. |
name
Type:
string
The name of this volume.
The name must be a valid DNS subdomain name.
See also: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#dns-subdomain-names
mountPath?
Type:
string
(optional, default: the volume is not mounted)
The path on the container where the volume is mounted.
readonly?
Type:
boolean
(optional, default: false)
If specified, the container has readonly access to the volume.
Otherwise, the container has read/write access.