Class CfnService.CanaryConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnService.CanaryConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnService.CanaryConfigurationProperty>
- Enclosing interface:
CfnService.CanaryConfigurationProperty
@Stability(Stable)
public static final class CfnService.CanaryConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnService.CanaryConfigurationProperty>
A builder for
CfnService.CanaryConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.canaryBakeTimeInMinutes(Number canaryBakeTimeInMinutes) Sets the value ofCfnService.CanaryConfigurationProperty.getCanaryBakeTimeInMinutes()canaryPercent(Number canaryPercent) Sets the value ofCfnService.CanaryConfigurationProperty.getCanaryPercent()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
canaryBakeTimeInMinutes
@Stability(Stable) public CfnService.CanaryConfigurationProperty.Builder canaryBakeTimeInMinutes(Number canaryBakeTimeInMinutes) Sets the value ofCfnService.CanaryConfigurationProperty.getCanaryBakeTimeInMinutes()- Parameters:
canaryBakeTimeInMinutes- The amount of time in minutes to wait during the canary phase before shifting the remaining production traffic to the new service revision. Valid values are 0 to 1440 minutes (24 hours). The default value is 10.- Returns:
this
-
canaryPercent
@Stability(Stable) public CfnService.CanaryConfigurationProperty.Builder canaryPercent(Number canaryPercent) Sets the value ofCfnService.CanaryConfigurationProperty.getCanaryPercent()- Parameters:
canaryPercent- The percentage of production traffic to shift to the new service revision during the canary phase. Valid values are multiples of 0.1 from 0.1 to 100.0. The default value is 5.0.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnService.CanaryConfigurationProperty>- Returns:
- a new instance of
CfnService.CanaryConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-