Interface CustomLambdaDeploymentConfigProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CustomLambdaDeploymentConfigProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:46.349Z") @Stability(Stable) public interface CustomLambdaDeploymentConfigProps extends software.amazon.jsii.JsiiSerializable
Properties of a reference to a CodeDeploy Lambda Deployment Configuration.

Example:

 LambdaApplication application;
 Alias alias;
 CustomLambdaDeploymentConfig config = CustomLambdaDeploymentConfig.Builder.create(this, "CustomConfig")
         .type(CustomLambdaDeploymentConfigType.CANARY)
         .interval(Duration.minutes(1))
         .percentage(5)
         .build();
 LambdaDeploymentGroup deploymentGroup = LambdaDeploymentGroup.Builder.create(this, "BlueGreenDeployment")
         .application(application)
         .alias(alias)
         .deploymentConfig(config)
         .build();
 
  • Method Details

    • getInterval

      @Stability(Stable) @NotNull Duration getInterval()
      The interval, in number of minutes: - For LINEAR, how frequently additional traffic is shifted - For CANARY, how long to shift traffic before the full deployment.
    • getPercentage

      @Stability(Stable) @NotNull Number getPercentage()
      The integer percentage of traffic to shift: - For LINEAR, the percentage to shift every interval - For CANARY, the percentage to shift until the interval passes, before the full deployment.
    • getType

      @Stability(Stable) @NotNull CustomLambdaDeploymentConfigType getType()
      The type of deployment config, either CANARY or LINEAR.
    • getDeploymentConfigName

      @Stability(Stable) @Nullable default String getDeploymentConfigName()
      The verbatim name of the deployment config.

      Must be unique per account/region. Other parameters cannot be updated if this name is provided.

      Default: - automatically generated name

    • builder

      @Stability(Stable) static CustomLambdaDeploymentConfigProps.Builder builder()
      Returns:
      a CustomLambdaDeploymentConfigProps.Builder of CustomLambdaDeploymentConfigProps