@Stability(value=Stable) public static final class LambdaDeploymentGroup.Builder extends Object implements software.amazon.jsii.Builder<LambdaDeploymentGroup>
LambdaDeploymentGroup.| Modifier and Type | Method and Description |
|---|---|
LambdaDeploymentGroup.Builder |
alarms(List<? extends IAlarm> alarms)
The CloudWatch alarms associated with this Deployment Group.
|
LambdaDeploymentGroup.Builder |
alias(Alias alias)
Lambda Alias to shift traffic.
|
LambdaDeploymentGroup.Builder |
application(ILambdaApplication application)
The reference to the CodeDeploy Lambda Application that this Deployment Group belongs to.
|
LambdaDeploymentGroup.Builder |
autoRollback(AutoRollbackConfig autoRollback)
The auto-rollback configuration for this Deployment Group.
|
LambdaDeploymentGroup |
build() |
static LambdaDeploymentGroup.Builder |
create(software.constructs.Construct scope,
String id) |
LambdaDeploymentGroup.Builder |
deploymentConfig(ILambdaDeploymentConfig deploymentConfig)
The Deployment Configuration this Deployment Group uses.
|
LambdaDeploymentGroup.Builder |
deploymentGroupName(String deploymentGroupName)
The physical, human-readable name of the CodeDeploy Deployment Group.
|
LambdaDeploymentGroup.Builder |
ignorePollAlarmsFailure(Boolean ignorePollAlarmsFailure)
Whether to continue a deployment even if fetching the alarm status from CloudWatch failed.
|
LambdaDeploymentGroup.Builder |
postHook(IFunction postHook)
The Lambda function to run after traffic routing starts.
|
LambdaDeploymentGroup.Builder |
preHook(IFunction preHook)
The Lambda function to run before traffic routing starts.
|
LambdaDeploymentGroup.Builder |
role(IRole role)
The service Role of this Deployment Group.
|
@Stability(value=Stable) public static LambdaDeploymentGroup.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.LambdaDeploymentGroup.Builder.@Stability(value=Stable) public LambdaDeploymentGroup.Builder alias(Alias alias)
[disable-awslint:ref-via-interface] since we need to modify the alias CFN resource update policy
alias - Lambda Alias to shift traffic. Updating the version of the alias will trigger a CodeDeploy deployment. This parameter is required.this@Stability(value=Stable) public LambdaDeploymentGroup.Builder alarms(List<? extends IAlarm> alarms)
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 {@link #addAlarm} method.
Default: []
alarms - The CloudWatch alarms associated with this Deployment Group. This parameter is required.thishttps://docs.aws.amazon.com/codedeploy/latest/userguide/monitoring-create-alarms.html@Stability(value=Stable) public LambdaDeploymentGroup.Builder application(ILambdaApplication application)
Default: - One will be created for you.
application - The reference to the CodeDeploy Lambda Application that this Deployment Group belongs to. This parameter is required.this@Stability(value=Stable) public LambdaDeploymentGroup.Builder autoRollback(AutoRollbackConfig autoRollback)
Default: - default AutoRollbackConfig.
autoRollback - The auto-rollback configuration for this Deployment Group. This parameter is required.this@Stability(value=Stable) public LambdaDeploymentGroup.Builder deploymentConfig(ILambdaDeploymentConfig deploymentConfig)
Default: LambdaDeploymentConfig.CANARY_10PERCENT_5MINUTES
deploymentConfig - The Deployment Configuration this Deployment Group uses. This parameter is required.this@Stability(value=Stable) public LambdaDeploymentGroup.Builder deploymentGroupName(String deploymentGroupName)
Default: - An auto-generated name will be used.
deploymentGroupName - The physical, human-readable name of the CodeDeploy Deployment Group. This parameter is required.this@Stability(value=Stable) public LambdaDeploymentGroup.Builder ignorePollAlarmsFailure(Boolean ignorePollAlarmsFailure)
Default: false
ignorePollAlarmsFailure - Whether to continue a deployment even if fetching the alarm status from CloudWatch failed. This parameter is required.this@Stability(value=Stable) public LambdaDeploymentGroup.Builder postHook(IFunction postHook)
Default: - None.
postHook - The Lambda function to run after traffic routing starts. This parameter is required.this@Stability(value=Stable) public LambdaDeploymentGroup.Builder preHook(IFunction preHook)
Default: - None.
preHook - The Lambda function to run before traffic routing starts. This parameter is required.this@Stability(value=Stable) public LambdaDeploymentGroup.Builder role(IRole role)
Default: - A new Role will be created.
role - The service Role of this Deployment Group. This parameter is required.this@Stability(value=Stable) public LambdaDeploymentGroup build()
build in interface software.amazon.jsii.Builder<LambdaDeploymentGroup>Copyright © 2022. All rights reserved.