class LambdaDeploymentConfig
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.CodeDeploy.LambdaDeploymentConfig |
Java | software.amazon.awscdk.services.codedeploy.LambdaDeploymentConfig |
Python | aws_cdk.aws_codedeploy.LambdaDeploymentConfig |
TypeScript (source) | @aws-cdk/aws-codedeploy » LambdaDeploymentConfig |
A custom Deployment Configuration for a Lambda Deployment Group.
Note: This class currently stands as namespaced container of the default configurations until CloudFormation supports custom Lambda Deployment Configs. Until then it is closed (private constructor) and does not extend {@link cdk.Construct}
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 |
|---|---|---|
| static ALL_AT_ONCE | ILambda | |
| static CANARY_10 | ILambda | |
| static CANARY_10 | ILambda | |
| static CANARY_10 | ILambda | |
| static CANARY_10 | ILambda | |
| static LINEAR_10 | ILambda | |
| static LINEAR_10 | ILambda | |
| static LINEAR_10 | ILambda | |
| static LINEAR_10 | ILambda |
static ALL_AT_ONCE
Type:
ILambda
static CANARY_10PERCENT_10MINUTES
Type:
ILambda
static CANARY_10PERCENT_15MINUTES
Type:
ILambda
static CANARY_10PERCENT_30MINUTES
Type:
ILambda
static CANARY_10PERCENT_5MINUTES
Type:
ILambda
static LINEAR_10PERCENT_EVERY_10MINUTES
Type:
ILambda
static LINEAR_10PERCENT_EVERY_1MINUTE
Type:
ILambda
static LINEAR_10PERCENT_EVERY_2MINUTES
Type:
ILambda
static LINEAR_10PERCENT_EVERY_3MINUTES
Type:
ILambda
Methods
| Name | Description |
|---|---|
| static import(_scope, _id, props) | Import a custom Deployment Configuration for a Lambda Deployment Group defined outside the CDK. |
static import(_scope, _id, props)
public static import(_scope: Construct, _id: string, props: LambdaDeploymentConfigImportProps): ILambdaDeploymentConfig
Parameters
- _scope
Construct— the parent Construct for this new Construct. - _id
string— the logical ID of this new Construct. - props
Lambda— the properties of the referenced custom Deployment Configuration.Deployment Config Import Props
Returns
Import a custom Deployment Configuration for a Lambda Deployment Group defined outside the CDK.

.NET
Java
Python
TypeScript (