Package org.cdk8s.plus23
Interface PersistentVolumeProps
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,ResourceProps
- All Known Subinterfaces:
AwsElasticBlockStorePersistentVolumeProps,AzureDiskPersistentVolumeProps,GCEPersistentDiskPersistentVolumeProps
- All Known Implementing Classes:
AwsElasticBlockStorePersistentVolumeProps.Jsii$Proxy,AzureDiskPersistentVolumeProps.Jsii$Proxy,GCEPersistentDiskPersistentVolumeProps.Jsii$Proxy,PersistentVolumeProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.61.0 (build abf4039)", date="2022-07-06T20:17:23.645Z") @Stability(Stable) public interface PersistentVolumeProps extends software.amazon.jsii.JsiiSerializable, ResourceProps
Properties for `PersistentVolume`.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPersistentVolumeProps.BuilderA builder forPersistentVolumePropsstatic classPersistentVolumeProps.Jsii$ProxyAn implementation forPersistentVolumeProps
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static PersistentVolumeProps.Builderbuilder()default List<PersistentVolumeAccessMode>getAccessModes()Contains all ways the volume can be mounted.default IPersistentVolumeClaimgetClaim()Part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.default List<String>getMountOptions()A list of mount options, e.g.default PersistentVolumeReclaimPolicygetReclaimPolicy()When a user is done with their volume, they can delete the PVC objects from the API that allows reclamation of the resource.default org.cdk8s.SizegetStorage()What is the storage capacity of this volume.default StringgetStorageClassName()Name of StorageClass to which this persistent volume belongs.default PersistentVolumeModegetVolumeMode()Defines what type of volume is required by the claim.-
Methods inherited from interface org.cdk8s.plus23.ResourceProps
getMetadata
-
-
-
-
Method Detail
-
getAccessModes
@Stability(Stable) @Nullable default List<PersistentVolumeAccessMode> getAccessModes()
Contains all ways the volume can be mounted.Default: - No access modes.
-
getClaim
@Stability(Stable) @Nullable default IPersistentVolumeClaim getClaim()
Part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.Expected to be non-nil when bound.
Default: - Not bound to a specific claim.
-
getMountOptions
@Stability(Stable) @Nullable default List<String> getMountOptions()
A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid.Default: - No options.
-
getReclaimPolicy
@Stability(Stable) @Nullable default PersistentVolumeReclaimPolicy getReclaimPolicy()
When a user is done with their volume, they can delete the PVC objects from the API that allows reclamation of the resource.The reclaim policy tells the cluster what to do with the volume after it has been released of its claim.
Default: PersistentVolumeReclaimPolicy.RETAIN
-
getStorage
@Stability(Stable) @Nullable default org.cdk8s.Size getStorage()
What is the storage capacity of this volume.Default: - No specified.
-
getStorageClassName
@Stability(Stable) @Nullable default String getStorageClassName()
Name of StorageClass to which this persistent volume belongs.Default: - Volume does not belong to any storage class.
-
getVolumeMode
@Stability(Stable) @Nullable default PersistentVolumeMode getVolumeMode()
Defines what type of volume is required by the claim.Default: VolumeMode.FILE_SYSTEM
-
builder
@Stability(Stable) static PersistentVolumeProps.Builder builder()
- Returns:
- a
PersistentVolumeProps.BuilderofPersistentVolumeProps
-
-