# PersistentVolumeClaimSpecV1

- Module: [Aspire.Hosting.Kubernetes](/reference/api/go/aspire.hosting.kubernetes.md)
- Version: `17.0.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

Represents the specification of a Kubernetes PersistentVolumeClaim resource.

## Remarks

A PersistentVolumeClaim (PVC) is a request for storage by a user.
It serves as an abstraction to request specific storage with desired attributes such as size and access modes.
This class defines the set of properties that can be configured for a PVC.

## Definition

```go
type PersistentVolumeClaimSpecV1 interface{}
```

## Properties

- `AccessModes`: `*List[string]` `get` -- Defines the access modes for a Persistent Volume Claim.
- `Resources`: [`VolumeResourceRequirementsV1`](/reference/api/go/aspire.hosting.kubernetes/volumeresourcerequirementsv1.md) `get/set` -- Gets or sets the resource requirements for the volume. Defines the requested and limit capacities for the volume resources, including storage and other related attributes.
- `StorageClassName`: `*string` `get/set` -- Gets or sets the name of the storage class required by the PersistentVolumeClaim.
- `VolumeMode`: `*string` `get/set` -- Specifies the volume mode for a PersistentVolumeClaim. This determines how data in the volume is accessed by pods using the claim.
- `VolumeName`: `*string` `get/set` -- Gets or sets the name of the specific volume to be bound to the PersistentVolumeClaim.
