import { LambdaDeploymentGroup } from 'aws-cdk-lib/aws-codedeploy';Or use the module namespace:
import * as codedeploy from 'aws-cdk-lib/aws-codedeploy';
// codedeploy.LambdaDeploymentGroupConfiguration passed to the constructor as LambdaDeploymentGroupProps.
aliasRequiredAliasLambda 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
alarmsOptionalIAlarmRef[]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.
Default: []
applicationOptionalILambdaApplicationThe reference to the CodeDeploy Lambda Application that this Deployment Group belongs to.
Default: - One will be created for you.
autoRollbackOptionalAutoRollbackConfigThe auto-rollback configuration for this Deployment Group.
Default: - default AutoRollbackConfig.
deploymentConfigOptionalILambdaDeploymentConfigThe Deployment Configuration this Deployment Group uses.
Default: LambdaDeploymentConfig.CANARY_10PERCENT_5MINUTES
deploymentGroupNameOptionalstringThe physical, human-readable name of the CodeDeploy Deployment Group.
Default: - An auto-generated name will be used.
ignoreAlarmConfigurationOptionalbooleanWhether to skip the step of checking CloudWatch alarms during the deployment process.
Default: - false
ignorePollAlarmsFailureOptionalbooleanWhether to continue a deployment even if fetching the alarm status from CloudWatch failed.
Default: false
postHookOptionalIFunctionThe Lambda function to run after traffic routing starts.
Default: - None.
preHookOptionalIFunctionThe Lambda function to run before traffic routing starts.
Default: - None.
roleOptionalIRoleThe service Role of this Deployment Group.
Default: - A new Role will be created.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-codedeploy