Interface BlueGreenUpdatePolicy.Builder

All Superinterfaces:
Buildable, CopyableBuilder<BlueGreenUpdatePolicy.Builder,BlueGreenUpdatePolicy>, SdkBuilder<BlueGreenUpdatePolicy.Builder,BlueGreenUpdatePolicy>, SdkPojo
Enclosing class:
BlueGreenUpdatePolicy

public static interface BlueGreenUpdatePolicy.Builder extends SdkPojo, CopyableBuilder<BlueGreenUpdatePolicy.Builder,BlueGreenUpdatePolicy>
  • Method Details

    • trafficRoutingConfiguration

      BlueGreenUpdatePolicy.Builder trafficRoutingConfiguration(TrafficRoutingConfig trafficRoutingConfiguration)

      Defines the traffic routing strategy to shift traffic from the old fleet to the new fleet during an endpoint deployment.

      Parameters:
      trafficRoutingConfiguration - Defines the traffic routing strategy to shift traffic from the old fleet to the new fleet during an endpoint deployment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • trafficRoutingConfiguration

      default BlueGreenUpdatePolicy.Builder trafficRoutingConfiguration(Consumer<TrafficRoutingConfig.Builder> trafficRoutingConfiguration)

      Defines the traffic routing strategy to shift traffic from the old fleet to the new fleet during an endpoint deployment.

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

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

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

      BlueGreenUpdatePolicy.Builder terminationWaitInSeconds(Integer terminationWaitInSeconds)

      Additional waiting time in seconds after the completion of an endpoint deployment before terminating the old endpoint fleet. Default is 0.

      Parameters:
      terminationWaitInSeconds - Additional waiting time in seconds after the completion of an endpoint deployment before terminating the old endpoint fleet. Default is 0.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maximumExecutionTimeoutInSeconds

      BlueGreenUpdatePolicy.Builder maximumExecutionTimeoutInSeconds(Integer maximumExecutionTimeoutInSeconds)

      Maximum execution timeout for the deployment. Note that the timeout value should be larger than the total waiting time specified in TerminationWaitInSeconds and WaitIntervalInSeconds.

      Parameters:
      maximumExecutionTimeoutInSeconds - Maximum execution timeout for the deployment. Note that the timeout value should be larger than the total waiting time specified in TerminationWaitInSeconds and WaitIntervalInSeconds.
      Returns:
      Returns a reference to this object so that method calls can be chained together.