aws-cdk-lib.aws_batch.CfnJobDefinition.EksContainerVolumeMountProperty

interface EksContainerVolumeMountProperty

LanguageType name
.NETAmazon.CDK.AWS.Batch.CfnJobDefinition.EksContainerVolumeMountProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsbatch#CfnJobDefinition_EksContainerVolumeMountProperty
Javasoftware.amazon.awscdk.services.batch.CfnJobDefinition.EksContainerVolumeMountProperty
Pythonaws_cdk.aws_batch.CfnJobDefinition.EksContainerVolumeMountProperty
TypeScript aws-cdk-lib » aws_batch » CfnJobDefinition » EksContainerVolumeMountProperty

The volume mounts for a container for an Amazon EKS job.

For more information about volumes and volume mounts in Kubernetes, see Volumes in the Kubernetes documentation .

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 eksContainerVolumeMountProperty: batch.CfnJobDefinition.EksContainerVolumeMountProperty = {
  mountPath: 'mountPath',
  name: 'name',
  readOnly: false,
};

Properties

NameTypeDescription
mountPath?stringThe path on the container where the volume is mounted.
name?stringThe name the volume mount.
readOnly?boolean | IResolvableIf this value is true , the container has read-only access to the volume.

mountPath?

Type: string (optional)

The path on the container where the volume is mounted.


name?

Type: string (optional)

The name the volume mount.

This must match the name of one of the volumes in the pod.


readOnly?

Type: boolean | IResolvable (optional)

If this value is true , the container has read-only access to the volume.

Otherwise, the container can write to the volume. The default value is false .