Package software.amazon.awscdk
Class CfnCodeDeployBlueGreenLifecycleEventHooks.Builder
java.lang.Object
software.amazon.awscdk.CfnCodeDeployBlueGreenLifecycleEventHooks.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCodeDeployBlueGreenLifecycleEventHooks>
- Enclosing interface:
CfnCodeDeployBlueGreenLifecycleEventHooks
@Stability(Stable)
public static final class CfnCodeDeployBlueGreenLifecycleEventHooks.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCodeDeployBlueGreenLifecycleEventHooks>
A builder for
CfnCodeDeployBlueGreenLifecycleEventHooks-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionafterAllowTestTraffic(String afterAllowTestTraffic) Sets the value ofCfnCodeDeployBlueGreenLifecycleEventHooks.getAfterAllowTestTraffic()afterAllowTraffic(String afterAllowTraffic) Sets the value ofCfnCodeDeployBlueGreenLifecycleEventHooks.getAfterAllowTraffic()afterInstall(String afterInstall) Sets the value ofCfnCodeDeployBlueGreenLifecycleEventHooks.getAfterInstall()beforeAllowTraffic(String beforeAllowTraffic) Sets the value ofCfnCodeDeployBlueGreenLifecycleEventHooks.getBeforeAllowTraffic()beforeInstall(String beforeInstall) Sets the value ofCfnCodeDeployBlueGreenLifecycleEventHooks.getBeforeInstall()build()Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
afterAllowTestTraffic
@Stability(Stable) public CfnCodeDeployBlueGreenLifecycleEventHooks.Builder afterAllowTestTraffic(String afterAllowTestTraffic) Sets the value ofCfnCodeDeployBlueGreenLifecycleEventHooks.getAfterAllowTestTraffic()- Parameters:
afterAllowTestTraffic- Function to use to run tasks after the test listener serves traffic to the replacement task set.- Returns:
this
-
afterAllowTraffic
@Stability(Stable) public CfnCodeDeployBlueGreenLifecycleEventHooks.Builder afterAllowTraffic(String afterAllowTraffic) Sets the value ofCfnCodeDeployBlueGreenLifecycleEventHooks.getAfterAllowTraffic()- Parameters:
afterAllowTraffic- Function to use to run tasks after the second target group serves traffic to the replacement task set.- Returns:
this
-
afterInstall
@Stability(Stable) public CfnCodeDeployBlueGreenLifecycleEventHooks.Builder afterInstall(String afterInstall) Sets the value ofCfnCodeDeployBlueGreenLifecycleEventHooks.getAfterInstall()- Parameters:
afterInstall- Function to use to run tasks after the replacement task set is created and one of the target groups is associated with it.- Returns:
this
-
beforeAllowTraffic
@Stability(Stable) public CfnCodeDeployBlueGreenLifecycleEventHooks.Builder beforeAllowTraffic(String beforeAllowTraffic) Sets the value ofCfnCodeDeployBlueGreenLifecycleEventHooks.getBeforeAllowTraffic()- Parameters:
beforeAllowTraffic- Function to use to run tasks after the second target group is associated with the replacement task set, but before traffic is shifted to the replacement task set.- Returns:
this
-
beforeInstall
@Stability(Stable) public CfnCodeDeployBlueGreenLifecycleEventHooks.Builder beforeInstall(String beforeInstall) Sets the value ofCfnCodeDeployBlueGreenLifecycleEventHooks.getBeforeInstall()- Parameters:
beforeInstall- Function to use to run tasks before the replacement task set is created.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCodeDeployBlueGreenLifecycleEventHooks>- Returns:
- a new instance of
CfnCodeDeployBlueGreenLifecycleEventHooks - Throws:
NullPointerException- if any required attribute was not provided
-