# EksPersistentVolumeClaimProperty

A `persistentVolumeClaim` volume is used to mount a [PersistentVolume](https://docs.aws.amazon.com/https://kubernetes.io/docs/concepts/storage/persistent-volumes/) into a Pod. PersistentVolumeClaims are a way for users to "claim" durable storage without knowing the details of the particular cloud environment. See the information about [PersistentVolumes](https://docs.aws.amazon.com/https://kubernetes.io/docs/concepts/storage/persistent-volumes/) in the *Kubernetes documentation* .

- Source: Generated at build time
- Type last changed: v2.178.0 · 6 Feb 2025

## Example

TypeScript:

```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 eksPersistentVolumeClaimProperty: batch.CfnJobDefinition.EksPersistentVolumeClaimProperty = {
  claimName: 'claimName',

  // the properties below are optional
  readOnly: false,
};
```

Python:

```python
# 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_persistent_volume_claim_property = batch.CfnJobDefinition.EksPersistentVolumeClaimProperty(
    claim_name="claimName",

    # the properties below are optional
    read_only=False
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.batch.*;

EksPersistentVolumeClaimProperty eksPersistentVolumeClaimProperty = EksPersistentVolumeClaimProperty.builder()
        .claimName("claimName")

        // the properties below are optional
        .readOnly(false)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 eksPersistentVolumeClaimProperty = new EksPersistentVolumeClaimProperty {
    ClaimName = "claimName",

    // the properties below are optional
    ReadOnly = false
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

eksPersistentVolumeClaimProperty := &EksPersistentVolumeClaimProperty{
	ClaimName: jsii.String("claimName"),

	// the properties below are optional
	ReadOnly: jsii.Boolean(false),
}
```

## Properties

- `claimName`: string (required) — The name of the `persistentVolumeClaim` bounded to a `persistentVolume` .

  For more information, see [Persistent Volume Claims](https://docs.aws.amazon.com/https://kubernetes.io/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims) in the *Kubernetes documentation* .

- `readOnly`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — An optional boolean value indicating if the mount is read only.

  Default is false. For more information, see [Read Only Mounts](https://docs.aws.amazon.com/https://kubernetes.io/docs/concepts/storage/volumes/#read-only-mounts) in the *Kubernetes documentation* .
