Class TrafficShiftConfig.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.TrafficShiftConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TrafficShiftConfig>
- Enclosing interface:
TrafficShiftConfig
@Stability(Stable)
public static final class TrafficShiftConfig.Builder
extends Object
implements software.amazon.jsii.Builder<TrafficShiftConfig>
A builder for
TrafficShiftConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.stepBakeTime(Duration stepBakeTime) Sets the value ofTrafficShiftConfig.getStepBakeTime()stepPercent(Number stepPercent) Sets the value ofTrafficShiftConfig.getStepPercent()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
stepBakeTime
Sets the value ofTrafficShiftConfig.getStepBakeTime()- Parameters:
stepBakeTime- The duration to wait between traffic shifting steps. Valid values are 0 to 1440 minutes (24 hours).- Returns:
this
-
stepPercent
Sets the value ofTrafficShiftConfig.getStepPercent()- Parameters:
stepPercent- The percentage of production traffic to shift in each step.- For linear deployment: multiples of 0.1 from 3.0 to 100.0
- For canary deployment: multiples of 0.1 from 0.1 to 100.0
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<TrafficShiftConfig>- Returns:
- a new instance of
TrafficShiftConfig - Throws:
NullPointerException- if any required attribute was not provided
-