Package software.amazon.awscdk
Class CfnTrafficRoutingTimeBasedCanary.Builder
java.lang.Object
software.amazon.awscdk.CfnTrafficRoutingTimeBasedCanary.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTrafficRoutingTimeBasedCanary>
- Enclosing interface:
CfnTrafficRoutingTimeBasedCanary
@Stability(Stable)
public static final class CfnTrafficRoutingTimeBasedCanary.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTrafficRoutingTimeBasedCanary>
A builder for
CfnTrafficRoutingTimeBasedCanary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbakeTimeMins
(Number bakeTimeMins) Sets the value ofCfnTrafficRoutingTimeBasedCanary.getBakeTimeMins()
build()
Builds the configured instance.stepPercentage
(Number stepPercentage) Sets the value ofCfnTrafficRoutingTimeBasedCanary.getStepPercentage()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bakeTimeMins
@Stability(Stable) public CfnTrafficRoutingTimeBasedCanary.Builder bakeTimeMins(Number bakeTimeMins) Sets the value ofCfnTrafficRoutingTimeBasedCanary.getBakeTimeMins()
- Parameters:
bakeTimeMins
- The number of minutes between the first and second traffic shifts of a time-based canary deployment.- Returns:
this
-
stepPercentage
@Stability(Stable) public CfnTrafficRoutingTimeBasedCanary.Builder stepPercentage(Number stepPercentage) Sets the value ofCfnTrafficRoutingTimeBasedCanary.getStepPercentage()
- Parameters:
stepPercentage
- The percentage of traffic to shift in the first increment of a time-based canary deployment. The step percentage must be 14% or greater.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTrafficRoutingTimeBasedCanary>
- Returns:
- a new instance of
CfnTrafficRoutingTimeBasedCanary
- Throws:
NullPointerException
- if any required attribute was not provided
-