interface LambdaDeploymentGroupProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.CodeDeploy.LambdaDeploymentGroupProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awscodedeploy#LambdaDeploymentGroupProps |
![]() | software.amazon.awscdk.services.codedeploy.LambdaDeploymentGroupProps |
![]() | aws_cdk.aws_codedeploy.LambdaDeploymentGroupProps |
![]() | aws-cdk-lib » aws_codedeploy » LambdaDeploymentGroupProps |
Construction properties for LambdaDeploymentGroup
.
Example
declare const myApplication: codedeploy.LambdaApplication;
declare const func: lambda.Function;
const version = func.currentVersion;
const version1Alias = new lambda.Alias(this, 'alias', {
aliasName: 'prod',
version,
});
const deploymentGroup = new codedeploy.LambdaDeploymentGroup(this, 'BlueGreenDeployment', {
application: myApplication, // optional property: one will be created for you if not provided
alias: version1Alias,
deploymentConfig: codedeploy.LambdaDeploymentConfig.LINEAR_10PERCENT_EVERY_1MINUTE,
});
Properties
Name | Type | Description |
---|---|---|
alias | Alias | Lambda Alias to shift traffic. Updating the version of the alias will trigger a CodeDeploy deployment. |
alarms? | IAlarm [] | The CloudWatch alarms associated with this Deployment Group. |
application? | ILambda | The reference to the CodeDeploy Lambda Application that this Deployment Group belongs to. |
auto | Auto | The auto-rollback configuration for this Deployment Group. |
deployment | ILambda | The Deployment Configuration this Deployment Group uses. |
deployment | string | The physical, human-readable name of the CodeDeploy Deployment Group. |
ignore | boolean | Whether to skip the step of checking CloudWatch alarms during the deployment process. |
ignore | boolean | Whether to continue a deployment even if fetching the alarm status from CloudWatch failed. |
post | IFunction | The Lambda function to run after traffic routing starts. |
pre | IFunction | The Lambda function to run before traffic routing starts. |
role? | IRole | The service Role of this Deployment Group. |
alias
Type:
Alias
Lambda Alias to shift traffic. Updating the version of the alias will trigger a CodeDeploy deployment.
[disable-awslint:ref-via-interface] since we need to modify the alias CFN resource update policy
alarms?
Type:
IAlarm
[]
(optional, default: [])
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 #addAlarm
method.
application?
Type:
ILambda
(optional, default: One will be created for you.)
The reference to the CodeDeploy Lambda Application that this Deployment Group belongs to.
autoRollback?
Type:
Auto
(optional, default: default AutoRollbackConfig.)
The auto-rollback configuration for this Deployment Group.
deploymentConfig?
Type:
ILambda
(optional, default: LambdaDeploymentConfig.CANARY_10PERCENT_5MINUTES)
The Deployment Configuration this Deployment Group uses.
deploymentGroupName?
Type:
string
(optional, default: An auto-generated name will be used.)
The physical, human-readable name of the CodeDeploy Deployment Group.
ignoreAlarmConfiguration?
Type:
boolean
(optional, default: false)
Whether to skip the step of checking CloudWatch alarms during the deployment process.
ignorePollAlarmsFailure?
Type:
boolean
(optional, default: false)
Whether to continue a deployment even if fetching the alarm status from CloudWatch failed.
postHook?
Type:
IFunction
(optional, default: None.)
The Lambda function to run after traffic routing starts.
preHook?
Type:
IFunction
(optional, default: None.)
The Lambda function to run before traffic routing starts.
role?
Type:
IRole
(optional, default: A new Role will be created.)
The service Role of this Deployment Group.