Class CfnDeploymentGroup.DeploymentReadyOptionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.DeploymentReadyOptionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeploymentGroup.DeploymentReadyOptionProperty>
- Enclosing interface:
- CfnDeploymentGroup.DeploymentReadyOptionProperty
@Stability(Stable)
public static final class CfnDeploymentGroup.DeploymentReadyOptionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeploymentGroup.DeploymentReadyOptionProperty>
A builder for
CfnDeploymentGroup.DeploymentReadyOptionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactionOnTimeout(String actionOnTimeout) Sets the value ofCfnDeploymentGroup.DeploymentReadyOptionProperty.getActionOnTimeout()build()Builds the configured instance.waitTimeInMinutes(Number waitTimeInMinutes) Sets the value ofCfnDeploymentGroup.DeploymentReadyOptionProperty.getWaitTimeInMinutes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actionOnTimeout
@Stability(Stable) public CfnDeploymentGroup.DeploymentReadyOptionProperty.Builder actionOnTimeout(String actionOnTimeout) Sets the value ofCfnDeploymentGroup.DeploymentReadyOptionProperty.getActionOnTimeout()- Parameters:
actionOnTimeout- Information about when to reroute traffic from an original environment to a replacement environment in a blue/green deployment.- CONTINUE_DEPLOYMENT: Register new instances with the load balancer immediately after the new application revision is installed on the instances in the replacement environment.
- STOP_DEPLOYMENT: Do not register new instances with a load balancer unless traffic rerouting is started using ContinueDeployment . If traffic rerouting is not started before the end of the specified wait period, the deployment status is changed to Stopped.
- Returns:
this
-
waitTimeInMinutes
@Stability(Stable) public CfnDeploymentGroup.DeploymentReadyOptionProperty.Builder waitTimeInMinutes(Number waitTimeInMinutes) Sets the value ofCfnDeploymentGroup.DeploymentReadyOptionProperty.getWaitTimeInMinutes()- Parameters:
waitTimeInMinutes- The number of minutes to wait before the status of a blue/green deployment is changed to Stopped if rerouting is not started manually. Applies only to theSTOP_DEPLOYMENToption foractionOnTimeout.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDeploymentGroup.DeploymentReadyOptionProperty>- Returns:
- a new instance of
CfnDeploymentGroup.DeploymentReadyOptionProperty - Throws:
NullPointerException- if any required attribute was not provided
-