Interface StatefulSetPersistentVolumeClaimRetentionPolicy

  • All Superinterfaces:
    software.amazon.jsii.JsiiSerializable
    All Known Implementing Classes:
    StatefulSetPersistentVolumeClaimRetentionPolicy.Jsii$Proxy

    @Generated(value="jsii-pacmak/1.88.0 (build eaabd08)",
               date="2023-09-11T06:17:58.821Z")
    @Stability(Stable)
    public interface StatefulSetPersistentVolumeClaimRetentionPolicy
    extends software.amazon.jsii.JsiiSerializable
    StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.
    • Method Detail

      • getWhenDeleted

        @Stability(Stable)
        @Nullable
        default String getWhenDeleted()
        WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted.

        The default policy of Retain causes PVCs to not be affected by StatefulSet deletion. The Delete policy causes those PVCs to be deleted.

      • getWhenScaled

        @Stability(Stable)
        @Nullable
        default String getWhenScaled()
        WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down.

        The default policy of Retain causes PVCs to not be affected by a scaledown. The Delete policy causes the associated PVCs for any excess pods above the replica count to be deleted.