Class RolloutStrategyProps.Builder
java.lang.Object
software.amazon.awscdk.services.appconfig.RolloutStrategyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<RolloutStrategyProps>
- Enclosing interface:
RolloutStrategyProps
@Stability(Stable)
public static final class RolloutStrategyProps.Builder
extends Object
implements software.amazon.jsii.Builder<RolloutStrategyProps>
A builder for
RolloutStrategyProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.deploymentDuration
(Duration deploymentDuration) Sets the value ofRolloutStrategyProps.getDeploymentDuration()
finalBakeTime
(Duration finalBakeTime) Sets the value ofRolloutStrategyProps.getFinalBakeTime()
growthFactor
(Number growthFactor) Sets the value ofRolloutStrategyProps.getGrowthFactor()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deploymentDuration
@Stability(Stable) public RolloutStrategyProps.Builder deploymentDuration(Duration deploymentDuration) Sets the value ofRolloutStrategyProps.getDeploymentDuration()
- Parameters:
deploymentDuration
- The deployment duration of the deployment strategy. This parameter is required. This defines the total amount of time for a deployment to last.- Returns:
this
-
growthFactor
Sets the value ofRolloutStrategyProps.getGrowthFactor()
- Parameters:
growthFactor
- The growth factor of the deployment strategy. This parameter is required. This defines the percentage of targets to receive a deployed configuration during each interval.- Returns:
this
-
finalBakeTime
Sets the value ofRolloutStrategyProps.getFinalBakeTime()
- Parameters:
finalBakeTime
- The final bake time of the deployment strategy. This setting specifies the amount of time AWS AppConfig monitors for Amazon CloudWatch alarms after the configuration has been deployed to 100% of its targets, before considering the deployment to be complete. If an alarm is triggered during this time, AWS AppConfig rolls back the deployment.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<RolloutStrategyProps>
- Returns:
- a new instance of
RolloutStrategyProps
- Throws:
NullPointerException
- if any required attribute was not provided
-