Package software.amazon.awscdk
Class CfnCodeDeployLambdaAliasUpdate.Builder
java.lang.Object
software.amazon.awscdk.CfnCodeDeployLambdaAliasUpdate.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCodeDeployLambdaAliasUpdate>
- Enclosing interface:
CfnCodeDeployLambdaAliasUpdate
@Stability(Stable)
public static final class CfnCodeDeployLambdaAliasUpdate.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCodeDeployLambdaAliasUpdate>
A builder for
CfnCodeDeployLambdaAliasUpdate-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionafterAllowTrafficHook(String afterAllowTrafficHook) Sets the value ofCfnCodeDeployLambdaAliasUpdate.getAfterAllowTrafficHook()applicationName(String applicationName) Sets the value ofCfnCodeDeployLambdaAliasUpdate.getApplicationName()beforeAllowTrafficHook(String beforeAllowTrafficHook) Sets the value ofCfnCodeDeployLambdaAliasUpdate.getBeforeAllowTrafficHook()build()Builds the configured instance.deploymentGroupName(String deploymentGroupName) Sets the value ofCfnCodeDeployLambdaAliasUpdate.getDeploymentGroupName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
applicationName
@Stability(Stable) public CfnCodeDeployLambdaAliasUpdate.Builder applicationName(String applicationName) Sets the value ofCfnCodeDeployLambdaAliasUpdate.getApplicationName()- Parameters:
applicationName- The name of the AWS CodeDeploy application. This parameter is required.- Returns:
this
-
deploymentGroupName
@Stability(Stable) public CfnCodeDeployLambdaAliasUpdate.Builder deploymentGroupName(String deploymentGroupName) Sets the value ofCfnCodeDeployLambdaAliasUpdate.getDeploymentGroupName()- Parameters:
deploymentGroupName- The name of the AWS CodeDeploy deployment group. This parameter is required. This is where the traffic-shifting policy is set.- Returns:
this
-
afterAllowTrafficHook
@Stability(Stable) public CfnCodeDeployLambdaAliasUpdate.Builder afterAllowTrafficHook(String afterAllowTrafficHook) Sets the value ofCfnCodeDeployLambdaAliasUpdate.getAfterAllowTrafficHook()- Parameters:
afterAllowTrafficHook- The name of the Lambda function to run after traffic routing completes.- Returns:
this
-
beforeAllowTrafficHook
@Stability(Stable) public CfnCodeDeployLambdaAliasUpdate.Builder beforeAllowTrafficHook(String beforeAllowTrafficHook) Sets the value ofCfnCodeDeployLambdaAliasUpdate.getBeforeAllowTrafficHook()- Parameters:
beforeAllowTrafficHook- The name of the Lambda function to run before traffic routing starts.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCodeDeployLambdaAliasUpdate>- Returns:
- a new instance of
CfnCodeDeployLambdaAliasUpdate - Throws:
NullPointerException- if any required attribute was not provided
-