Class LambdaDeploymentGroupProps.Builder
java.lang.Object
software.amazon.awscdk.services.codedeploy.LambdaDeploymentGroupProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LambdaDeploymentGroupProps>
- Enclosing interface:
LambdaDeploymentGroupProps
@Stability(Stable)
public static final class LambdaDeploymentGroupProps.Builder
extends Object
implements software.amazon.jsii.Builder<LambdaDeploymentGroupProps>
A builder for
LambdaDeploymentGroupProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofLambdaDeploymentGroupProps.getAlarms()Sets the value ofLambdaDeploymentGroupProps.getAlias()application(ILambdaApplication application) Sets the value ofLambdaDeploymentGroupProps.getApplication()autoRollback(AutoRollbackConfig autoRollback) Sets the value ofLambdaDeploymentGroupProps.getAutoRollback()build()Builds the configured instance.deploymentConfig(ILambdaDeploymentConfig deploymentConfig) Sets the value ofLambdaDeploymentGroupProps.getDeploymentConfig()deploymentGroupName(String deploymentGroupName) Sets the value ofLambdaDeploymentGroupProps.getDeploymentGroupName()ignoreAlarmConfiguration(Boolean ignoreAlarmConfiguration) Sets the value ofLambdaDeploymentGroupProps.getIgnoreAlarmConfiguration()ignorePollAlarmsFailure(Boolean ignorePollAlarmsFailure) Sets the value ofLambdaDeploymentGroupProps.getIgnorePollAlarmsFailure()Sets the value ofLambdaDeploymentGroupProps.getPostHook()Sets the value ofLambdaDeploymentGroupProps.getPreHook()Sets the value ofLambdaDeploymentGroupProps.getRole()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alias
Sets the value ofLambdaDeploymentGroupProps.getAlias()- Parameters:
alias- Lambda Alias to shift traffic. Updating the version of the alias will trigger a CodeDeploy deployment. This parameter is required. [disable-awslint:ref-via-interface] since we need to modify the alias CFN resource update policy- Returns:
this
-
alarms
Sets the value ofLambdaDeploymentGroupProps.getAlarms()- Parameters:
alarms- The CloudWatch alarms associated with this Deployment Group. CodeDeploy will stop (and optionally roll back) a deployment if during it any of the alarms trigger.Alarms can also be added after the Deployment Group is created using the
#addAlarmmethod.- Returns:
this
-
application
@Stability(Stable) public LambdaDeploymentGroupProps.Builder application(ILambdaApplication application) Sets the value ofLambdaDeploymentGroupProps.getApplication()- Parameters:
application- The reference to the CodeDeploy Lambda Application that this Deployment Group belongs to.- Returns:
this
-
autoRollback
@Stability(Stable) public LambdaDeploymentGroupProps.Builder autoRollback(AutoRollbackConfig autoRollback) Sets the value ofLambdaDeploymentGroupProps.getAutoRollback()- Parameters:
autoRollback- The auto-rollback configuration for this Deployment Group.- Returns:
this
-
deploymentConfig
@Stability(Stable) public LambdaDeploymentGroupProps.Builder deploymentConfig(ILambdaDeploymentConfig deploymentConfig) Sets the value ofLambdaDeploymentGroupProps.getDeploymentConfig()- Parameters:
deploymentConfig- The Deployment Configuration this Deployment Group uses.- Returns:
this
-
deploymentGroupName
@Stability(Stable) public LambdaDeploymentGroupProps.Builder deploymentGroupName(String deploymentGroupName) Sets the value ofLambdaDeploymentGroupProps.getDeploymentGroupName()- Parameters:
deploymentGroupName- The physical, human-readable name of the CodeDeploy Deployment Group.- Returns:
this
-
ignoreAlarmConfiguration
@Stability(Stable) public LambdaDeploymentGroupProps.Builder ignoreAlarmConfiguration(Boolean ignoreAlarmConfiguration) Sets the value ofLambdaDeploymentGroupProps.getIgnoreAlarmConfiguration()- Parameters:
ignoreAlarmConfiguration- Whether to skip the step of checking CloudWatch alarms during the deployment process.- Returns:
this
-
ignorePollAlarmsFailure
@Stability(Stable) public LambdaDeploymentGroupProps.Builder ignorePollAlarmsFailure(Boolean ignorePollAlarmsFailure) Sets the value ofLambdaDeploymentGroupProps.getIgnorePollAlarmsFailure()- Parameters:
ignorePollAlarmsFailure- Whether to continue a deployment even if fetching the alarm status from CloudWatch failed.- Returns:
this
-
postHook
Sets the value ofLambdaDeploymentGroupProps.getPostHook()- Parameters:
postHook- The Lambda function to run after traffic routing starts.- Returns:
this
-
preHook
Sets the value ofLambdaDeploymentGroupProps.getPreHook()- Parameters:
preHook- The Lambda function to run before traffic routing starts.- Returns:
this
-
role
Sets the value ofLambdaDeploymentGroupProps.getRole()- Parameters:
role- The service Role of this Deployment Group.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LambdaDeploymentGroupProps>- Returns:
- a new instance of
LambdaDeploymentGroupProps - Throws:
NullPointerException- if any required attribute was not provided
-