Skip to content
v2.274.0

EksVolumeOptions Struct ​

Options to configure an EksVolume.

Example ​

ts
// 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 ​

mountPathstringmount_pathstrmountPathStringMountPathstringMountPath*string= the volume is not mounted#
The path on the container where the volume is mounted.
namestringnamestrnameStringNamestringName*stringrequired#
The name of this volume.

The name must be a valid DNS subdomain name.

readonlybooleanreadonlyboolreadonlyBooleanReadonlyboolReadonly*bool= false#
If specified, the container has readonly access to the volume.

Otherwise, the container has read/write access.