Class CfnServicePropsMixin.CanaryConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ecs.CfnServicePropsMixin.CanaryConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServicePropsMixin.CanaryConfigurationProperty>
- Enclosing interface:
CfnServicePropsMixin.CanaryConfigurationProperty
@Stability(Stable)
public static final class CfnServicePropsMixin.CanaryConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServicePropsMixin.CanaryConfigurationProperty>
A builder for
CfnServicePropsMixin.CanaryConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.canaryBakeTimeInMinutes(Number canaryBakeTimeInMinutes) canaryPercent(Number canaryPercent) Sets the value ofCfnServicePropsMixin.CanaryConfigurationProperty.getCanaryPercent()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
canaryBakeTimeInMinutes
@Stability(Stable) public CfnServicePropsMixin.CanaryConfigurationProperty.Builder canaryBakeTimeInMinutes(Number canaryBakeTimeInMinutes) - 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 CfnServicePropsMixin.CanaryConfigurationProperty.Builder canaryPercent(Number canaryPercent) Sets the value ofCfnServicePropsMixin.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<CfnServicePropsMixin.CanaryConfigurationProperty>- Returns:
- a new instance of
CfnServicePropsMixin.CanaryConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-