EksVolumeOptions

class aws_cdk.aws_batch.EksVolumeOptions(*, name, mount_path=None, readonly=None)

Bases: object

Options to configure an EksVolume.

Parameters:
  • name (str) – The name of this volume. The name must be a valid DNS subdomain name.

  • mount_path (Optional[str]) – The path on the container where the volume is mounted. Default: - the volume is not mounted

  • readonly (Optional[bool]) – If specified, the container has readonly access to the volume. Otherwise, the container has read/write access. Default: false

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_batch as batch

eks_volume_options = batch.EksVolumeOptions(
    name="name",

    # the properties below are optional
    mount_path="mountPath",
    readonly=False
)

Attributes

mount_path

The path on the container where the volume is mounted.

Default:
  • the volume is not mounted

name

The name of this volume.

The name must be a valid DNS subdomain name.

See:

https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#dns-subdomain-names

readonly

If specified, the container has readonly access to the volume.

Otherwise, the container has read/write access.

Default:

false