Interface InstanceLifecyclePolicy.Builder

    • Method Detail

      • retentionTriggers

        InstanceLifecyclePolicy.Builder retentionTriggers​(RetentionTriggers retentionTriggers)

        Specifies the conditions that trigger instance retention behavior. These triggers determine when instances should move to a Retained state instead of automatic termination. This allows you to maintain control over instance management when lifecycles transition and operations fail.

        Parameters:
        retentionTriggers - Specifies the conditions that trigger instance retention behavior. These triggers determine when instances should move to a Retained state instead of automatic termination. This allows you to maintain control over instance management when lifecycles transition and operations fail.
        Returns:
        Returns a reference to this object so that method calls can be chained together.