Class LambdaDeploymentConfig
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.codedeploy.BaseDeploymentConfig
software.amazon.awscdk.services.codedeploy.LambdaDeploymentConfig
- All Implemented Interfaces:
IEnvironmentAware,IResource,IBaseDeploymentConfig,ILambdaDeploymentConfig,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-10T13:40:00.809Z")
@Stability(Stable)
public class LambdaDeploymentConfig
extends BaseDeploymentConfig
implements ILambdaDeploymentConfig
A custom Deployment Configuration for a Lambda Deployment Group.
Example:
LambdaApplication application;
Alias alias;
LambdaDeploymentConfig config = LambdaDeploymentConfig.Builder.create(this, "CustomConfig")
.trafficRouting(TimeBasedCanaryTrafficRouting.Builder.create()
.interval(Duration.minutes(15))
.percentage(5)
.build())
.build();
LambdaDeploymentGroup deploymentGroup = LambdaDeploymentGroup.Builder.create(this, "BlueGreenDeployment")
.application(application)
.alias(alias)
.deploymentConfig(config)
.build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.codedeploy.IBaseDeploymentConfig
IBaseDeploymentConfig.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.codedeploy.ILambdaDeploymentConfig
ILambdaDeploymentConfig.Jsii$Default, ILambdaDeploymentConfig.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ILambdaDeploymentConfigCodeDeploy predefined deployment configuration that shifts all traffic to the updated Lambda function at once.static final ILambdaDeploymentConfigCodeDeploy predefined deployment configuration that shifts 10 percent of traffic in the first increment.static final ILambdaDeploymentConfigCodeDeploy predefined deployment configuration that shifts 10 percent of traffic in the first increment.static final ILambdaDeploymentConfigCodeDeploy predefined deployment configuration that shifts 10 percent of traffic in the first increment.static final ILambdaDeploymentConfigCodeDeploy predefined deployment configuration that shifts 10 percent of traffic in the first increment.static final ILambdaDeploymentConfigCodeDeploy predefined deployment configuration that shifts 10 percent of traffic every minute until all traffic is shifted.static final ILambdaDeploymentConfigCodeDeploy predefined deployment configuration that shifts 10 percent of traffic every 10 minutes until all traffic is shifted.static final ILambdaDeploymentConfigCodeDeploy predefined deployment configuration that shifts 10 percent of traffic every two minutes until all traffic is shifted.static final ILambdaDeploymentConfigCodeDeploy predefined deployment configuration that shifts 10 percent of traffic every three minutes until all traffic is shifted.static final StringUniquely identifies this class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLambdaDeploymentConfig(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedLambdaDeploymentConfig(software.amazon.jsii.JsiiObjectRef objRef) LambdaDeploymentConfig(software.constructs.Construct scope, String id) LambdaDeploymentConfig(software.constructs.Construct scope, String id, LambdaDeploymentConfigProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic ILambdaDeploymentConfigdoImport(software.constructs.Construct _scope, String _id, LambdaDeploymentConfigImportProps props) Deprecated.static ILambdaDeploymentConfigfromLambdaDeploymentConfigName(software.constructs.Construct scope, String id, String lambdaDeploymentConfigName) Import a Deployment Configuration for a Lambda Deployment Group defined outside the CDK.Methods inherited from class software.amazon.awscdk.services.codedeploy.BaseDeploymentConfig
fromDeploymentConfigName, getDeploymentConfigArn, getDeploymentConfigNameMethods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awscdk.services.codedeploy.IBaseDeploymentConfig
getDeploymentConfigArn, getDeploymentConfigNameMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
ALL_AT_ONCE
CodeDeploy predefined deployment configuration that shifts all traffic to the updated Lambda function at once. -
CANARY_10_PERCENT_10_MINUTES
CodeDeploy predefined deployment configuration that shifts 10 percent of traffic in the first increment.The remaining 90 percent is deployed 10 minutes later.
-
CANARY_10_PERCENT_15_MINUTES
CodeDeploy predefined deployment configuration that shifts 10 percent of traffic in the first increment.The remaining 90 percent is deployed 15 minutes later.
-
CANARY_10_PERCENT_30_MINUTES
CodeDeploy predefined deployment configuration that shifts 10 percent of traffic in the first increment.The remaining 90 percent is deployed 30 minutes later.
-
CANARY_10_PERCENT_5_MINUTES
CodeDeploy predefined deployment configuration that shifts 10 percent of traffic in the first increment.The remaining 90 percent is deployed five minutes later.
-
LINEAR_10_PERCENT_EVERY_10_MINUTES
CodeDeploy predefined deployment configuration that shifts 10 percent of traffic every 10 minutes until all traffic is shifted. -
LINEAR_10_PERCENT_EVERY_1_MINUTE
CodeDeploy predefined deployment configuration that shifts 10 percent of traffic every minute until all traffic is shifted. -
LINEAR_10_PERCENT_EVERY_2_MINUTES
CodeDeploy predefined deployment configuration that shifts 10 percent of traffic every two minutes until all traffic is shifted. -
LINEAR_10_PERCENT_EVERY_3_MINUTES
CodeDeploy predefined deployment configuration that shifts 10 percent of traffic every three minutes until all traffic is shifted. -
PROPERTY_INJECTION_ID
Uniquely identifies this class.
-
-
Constructor Details
-
LambdaDeploymentConfig
protected LambdaDeploymentConfig(software.amazon.jsii.JsiiObjectRef objRef) -
LambdaDeploymentConfig
protected LambdaDeploymentConfig(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
LambdaDeploymentConfig
@Stability(Stable) public LambdaDeploymentConfig(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable LambdaDeploymentConfigProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props-
-
LambdaDeploymentConfig
@Stability(Stable) public LambdaDeploymentConfig(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope- This parameter is required.id- This parameter is required.
-
-
Method Details
-
fromLambdaDeploymentConfigName
@Stability(Stable) @NotNull public static ILambdaDeploymentConfig fromLambdaDeploymentConfigName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String lambdaDeploymentConfigName) Import a Deployment Configuration for a Lambda Deployment Group defined outside the CDK.- Parameters:
scope- the parent Construct for this new Construct. This parameter is required.id- the logical ID of this new Construct. This parameter is required.lambdaDeploymentConfigName- the name of the Lambda Deployment Configuration to import. This parameter is required.- Returns:
- a Construct representing a reference to an existing Lambda Deployment Configuration
-
doImport
@Stability(Deprecated) @Deprecated @NotNull public static ILambdaDeploymentConfig doImport(@NotNull software.constructs.Construct _scope, @NotNull String _id, @NotNull LambdaDeploymentConfigImportProps props) Deprecated.usefromLambdaDeploymentConfigName(deprecated) Import a Deployment Configuration for a Lambda Deployment Group defined outside the CDK.- Parameters:
_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.- Returns:
- a Construct representing a reference to an existing custom Deployment Configuration
-
fromLambdaDeploymentConfigName