Interface CfnEndpoint.BlueGreenUpdatePolicyProperty

All Superinterfaces:
All Known Implementing Classes:
Enclosing class:

@Stability(Stable) public static interface CfnEndpoint.BlueGreenUpdatePolicyProperty extends
Update policy for a blue/green deployment.

If this update policy is specified, SageMaker creates a new fleet during the deployment while maintaining the old fleet. SageMaker flips traffic to the new fleet according to the specified traffic routing configuration. Only one update policy should be used in the deployment configuration. If no update policy is specified, SageMaker uses a blue/green deployment strategy with all at once traffic shifting by default.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 BlueGreenUpdatePolicyProperty blueGreenUpdatePolicyProperty = BlueGreenUpdatePolicyProperty.builder()
                 // the properties below are optional
         // the properties below are optional
  • Method Details

    • getTrafficRoutingConfiguration

      @Stability(Stable) @NotNull Object getTrafficRoutingConfiguration()
      Defines the traffic routing strategy to shift traffic from the old fleet to the new fleet during an endpoint deployment.
    • getMaximumExecutionTimeoutInSeconds

      @Stability(Stable) @Nullable default Number getMaximumExecutionTimeoutInSeconds()
      Maximum execution timeout for the deployment.

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

    • getTerminationWaitInSeconds

      @Stability(Stable) @Nullable default Number getTerminationWaitInSeconds()
      Additional waiting time in seconds after the completion of an endpoint deployment before terminating the old endpoint fleet.

      Default is 0.

    • builder

      @Stability(Stable) static CfnEndpoint.BlueGreenUpdatePolicyProperty.Builder builder()
      a CfnEndpoint.BlueGreenUpdatePolicyProperty.Builder of CfnEndpoint.BlueGreenUpdatePolicyProperty