Class CfnDeploymentGroup.BlueGreenDeploymentConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.BlueGreenDeploymentConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeploymentGroup.BlueGreenDeploymentConfigurationProperty>
- Enclosing interface:
CfnDeploymentGroup.BlueGreenDeploymentConfigurationProperty
@Stability(Stable)
public static final class CfnDeploymentGroup.BlueGreenDeploymentConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeploymentGroup.BlueGreenDeploymentConfigurationProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.deploymentReadyOption
(IResolvable deploymentReadyOption) deploymentReadyOption
(CfnDeploymentGroup.DeploymentReadyOptionProperty deploymentReadyOption) greenFleetProvisioningOption
(IResolvable greenFleetProvisioningOption) greenFleetProvisioningOption
(CfnDeploymentGroup.GreenFleetProvisioningOptionProperty greenFleetProvisioningOption) terminateBlueInstancesOnDeploymentSuccess
(IResolvable terminateBlueInstancesOnDeploymentSuccess) terminateBlueInstancesOnDeploymentSuccess
(CfnDeploymentGroup.BlueInstanceTerminationOptionProperty terminateBlueInstancesOnDeploymentSuccess)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deploymentReadyOption
@Stability(Stable) public CfnDeploymentGroup.BlueGreenDeploymentConfigurationProperty.Builder deploymentReadyOption(IResolvable deploymentReadyOption) Sets the value ofCfnDeploymentGroup.BlueGreenDeploymentConfigurationProperty.getDeploymentReadyOption()
- Parameters:
deploymentReadyOption
- Information about the action to take when newly provisioned instances are ready to receive traffic in a blue/green deployment.- Returns:
this
-
deploymentReadyOption
@Stability(Stable) public CfnDeploymentGroup.BlueGreenDeploymentConfigurationProperty.Builder deploymentReadyOption(CfnDeploymentGroup.DeploymentReadyOptionProperty deploymentReadyOption) Sets the value ofCfnDeploymentGroup.BlueGreenDeploymentConfigurationProperty.getDeploymentReadyOption()
- Parameters:
deploymentReadyOption
- Information about the action to take when newly provisioned instances are ready to receive traffic in a blue/green deployment.- Returns:
this
-
greenFleetProvisioningOption
@Stability(Stable) public CfnDeploymentGroup.BlueGreenDeploymentConfigurationProperty.Builder greenFleetProvisioningOption(IResolvable greenFleetProvisioningOption) Sets the value ofCfnDeploymentGroup.BlueGreenDeploymentConfigurationProperty.getGreenFleetProvisioningOption()
- Parameters:
greenFleetProvisioningOption
- Information about how instances are provisioned for a replacement environment in a blue/green deployment.- Returns:
this
-
greenFleetProvisioningOption
@Stability(Stable) public CfnDeploymentGroup.BlueGreenDeploymentConfigurationProperty.Builder greenFleetProvisioningOption(CfnDeploymentGroup.GreenFleetProvisioningOptionProperty greenFleetProvisioningOption) Sets the value ofCfnDeploymentGroup.BlueGreenDeploymentConfigurationProperty.getGreenFleetProvisioningOption()
- Parameters:
greenFleetProvisioningOption
- Information about how instances are provisioned for a replacement environment in a blue/green deployment.- Returns:
this
-
terminateBlueInstancesOnDeploymentSuccess
@Stability(Stable) public CfnDeploymentGroup.BlueGreenDeploymentConfigurationProperty.Builder terminateBlueInstancesOnDeploymentSuccess(IResolvable terminateBlueInstancesOnDeploymentSuccess) Sets the value ofCfnDeploymentGroup.BlueGreenDeploymentConfigurationProperty.getTerminateBlueInstancesOnDeploymentSuccess()
- Parameters:
terminateBlueInstancesOnDeploymentSuccess
- Information about whether to terminate instances in the original fleet during a blue/green deployment.- Returns:
this
-
terminateBlueInstancesOnDeploymentSuccess
@Stability(Stable) public CfnDeploymentGroup.BlueGreenDeploymentConfigurationProperty.Builder terminateBlueInstancesOnDeploymentSuccess(CfnDeploymentGroup.BlueInstanceTerminationOptionProperty terminateBlueInstancesOnDeploymentSuccess) Sets the value ofCfnDeploymentGroup.BlueGreenDeploymentConfigurationProperty.getTerminateBlueInstancesOnDeploymentSuccess()
- Parameters:
terminateBlueInstancesOnDeploymentSuccess
- Information about whether to terminate instances in the original fleet during a blue/green deployment.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDeploymentGroup.BlueGreenDeploymentConfigurationProperty>
- Returns:
- a new instance of
CfnDeploymentGroup.BlueGreenDeploymentConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-