Interface InstanceLifecyclePolicy.Builder

  • Method Details

    • 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.
    • retentionTriggers

      default InstanceLifecyclePolicy.Builder retentionTriggers(Consumer<RetentionTriggers.Builder> 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.

      This is a convenience method that creates an instance of the RetentionTriggers.Builder avoiding the need to create one manually via RetentionTriggers.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to retentionTriggers(RetentionTriggers).

      Parameters:
      retentionTriggers - a consumer that will call methods on RetentionTriggers.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: