@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)",
date="2022-07-01T09:58:41.427Z")
public class LambdaDeploymentConfig
extends software.amazon.jsii.JsiiObject
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:
LambdaApplication myApplication; Function func; Version version = func.getCurrentVersion(); Alias version1Alias = Alias.Builder.create(this, "alias") .aliasName("prod") .version(version) .build(); LambdaDeploymentGroup deploymentGroup = LambdaDeploymentGroup.Builder.create(this, "BlueGreenDeployment") .application(myApplication) // optional property: one will be created for you if not provided .alias(version1Alias) .deploymentConfig(LambdaDeploymentConfig.LINEAR_10PERCENT_EVERY_1MINUTE) .build();
Modifier and Type | Field and Description |
---|---|
static ILambdaDeploymentConfig |
ALL_AT_ONCE |
static ILambdaDeploymentConfig |
CANARY_10_PERCENT_10_MINUTES |
static ILambdaDeploymentConfig |
CANARY_10_PERCENT_15_MINUTES |
static ILambdaDeploymentConfig |
CANARY_10_PERCENT_30_MINUTES |
static ILambdaDeploymentConfig |
CANARY_10_PERCENT_5_MINUTES |
static ILambdaDeploymentConfig |
LINEAR_10_PERCENT_EVERY_1_MINUTE |
static ILambdaDeploymentConfig |
LINEAR_10_PERCENT_EVERY_10_MINUTES |
static ILambdaDeploymentConfig |
LINEAR_10_PERCENT_EVERY_2_MINUTES |
static ILambdaDeploymentConfig |
LINEAR_10_PERCENT_EVERY_3_MINUTES |
Modifier | Constructor and Description |
---|---|
protected |
LambdaDeploymentConfig(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
LambdaDeploymentConfig(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
static ILambdaDeploymentConfig |
doImport(software.constructs.Construct _scope,
java.lang.String _id,
LambdaDeploymentConfigImportProps props)
Import a custom Deployment Configuration for a Lambda Deployment Group defined outside the CDK.
|
public static final ILambdaDeploymentConfig ALL_AT_ONCE
public static final ILambdaDeploymentConfig CANARY_10_PERCENT_10_MINUTES
public static final ILambdaDeploymentConfig CANARY_10_PERCENT_15_MINUTES
public static final ILambdaDeploymentConfig CANARY_10_PERCENT_30_MINUTES
public static final ILambdaDeploymentConfig CANARY_10_PERCENT_5_MINUTES
public static final ILambdaDeploymentConfig LINEAR_10_PERCENT_EVERY_10_MINUTES
public static final ILambdaDeploymentConfig LINEAR_10_PERCENT_EVERY_1_MINUTE
public static final ILambdaDeploymentConfig LINEAR_10_PERCENT_EVERY_2_MINUTES
public static final ILambdaDeploymentConfig LINEAR_10_PERCENT_EVERY_3_MINUTES
protected LambdaDeploymentConfig(software.amazon.jsii.JsiiObjectRef objRef)
protected LambdaDeploymentConfig(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public static ILambdaDeploymentConfig doImport(software.constructs.Construct _scope, java.lang.String _id, LambdaDeploymentConfigImportProps props)
_scope
- the parent Construct for this new Construct. This parameter is required._id
- the logical ID of this new Construct. This parameter is required.props
- the properties of the referenced custom Deployment Configuration. This parameter is required.