@Stability(value=Experimental) 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)
(experimental) The CloudWatch alarms associated with this Deployment Group.
|
LambdaDeploymentGroup.Builder |
alias(Alias alias)
(experimental) Lambda Alias to shift traffic.
|
LambdaDeploymentGroup.Builder |
application(ILambdaApplication application)
(experimental) The reference to the CodeDeploy Lambda Application that this Deployment Group belongs to.
|
LambdaDeploymentGroup.Builder |
autoRollback(AutoRollbackConfig autoRollback)
(experimental) 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)
(experimental) The Deployment Configuration this Deployment Group uses.
|
LambdaDeploymentGroup.Builder |
deploymentGroupName(String deploymentGroupName)
(experimental) The physical, human-readable name of the CodeDeploy Deployment Group.
|
LambdaDeploymentGroup.Builder |
ignorePollAlarmsFailure(Boolean ignorePollAlarmsFailure)
(experimental) Whether to continue a deployment even if fetching the alarm status from CloudWatch failed.
|
LambdaDeploymentGroup.Builder |
postHook(IFunction postHook)
(experimental) The Lambda function to run after traffic routing starts.
|
LambdaDeploymentGroup.Builder |
preHook(IFunction preHook)
(experimental) The Lambda function to run before traffic routing starts.
|
LambdaDeploymentGroup.Builder |
role(IRole role)
(experimental) The service Role of this Deployment Group.
|
@Stability(value=Experimental) 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=Experimental) 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=Experimental) 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.this
https://docs.aws.amazon.com/codedeploy/latest/userguide/monitoring-create-alarms.html
@Stability(value=Experimental) 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=Experimental) 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=Experimental) 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=Experimental) 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=Experimental) 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=Experimental) 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=Experimental) 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=Experimental) 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=Experimental) public LambdaDeploymentGroup build()
build
in interface software.amazon.jsii.Builder<LambdaDeploymentGroup>
Copyright © 2021. All rights reserved.