Class LambdaDeploymentConfig

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.codedeploy.LambdaDeploymentConfig
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:46.379Z") @Stability(Stable) public class LambdaDeploymentConfig extends software.amazon.jsii.JsiiObject
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 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();
 
  • Field Details

    • ALL_AT_ONCE

      @Stability(Stable) public static final ILambdaDeploymentConfig ALL_AT_ONCE
    • CANARY_10_PERCENT_10_MINUTES

      @Stability(Stable) public static final ILambdaDeploymentConfig CANARY_10_PERCENT_10_MINUTES
    • CANARY_10_PERCENT_15_MINUTES

      @Stability(Stable) public static final ILambdaDeploymentConfig CANARY_10_PERCENT_15_MINUTES
    • CANARY_10_PERCENT_30_MINUTES

      @Stability(Stable) public static final ILambdaDeploymentConfig CANARY_10_PERCENT_30_MINUTES
    • CANARY_10_PERCENT_5_MINUTES

      @Stability(Stable) public static final ILambdaDeploymentConfig CANARY_10_PERCENT_5_MINUTES
    • LINEAR_10_PERCENT_EVERY_10_MINUTES

      @Stability(Stable) public static final ILambdaDeploymentConfig LINEAR_10_PERCENT_EVERY_10_MINUTES
    • LINEAR_10_PERCENT_EVERY_1_MINUTE

      @Stability(Stable) public static final ILambdaDeploymentConfig LINEAR_10_PERCENT_EVERY_1_MINUTE
    • LINEAR_10_PERCENT_EVERY_2_MINUTES

      @Stability(Stable) public static final ILambdaDeploymentConfig LINEAR_10_PERCENT_EVERY_2_MINUTES
    • LINEAR_10_PERCENT_EVERY_3_MINUTES

      @Stability(Stable) public static final ILambdaDeploymentConfig LINEAR_10_PERCENT_EVERY_3_MINUTES
  • Constructor Details

    • LambdaDeploymentConfig

      protected LambdaDeploymentConfig(software.amazon.jsii.JsiiObjectRef objRef)
    • LambdaDeploymentConfig

      protected LambdaDeploymentConfig(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
  • Method Details

    • doImport

      @Stability(Stable) @NotNull public static ILambdaDeploymentConfig doImport(@NotNull software.constructs.Construct _scope, @NotNull String _id, @NotNull LambdaDeploymentConfigImportProps props)
      Import a custom 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