Interface LambdaDeploymentGroupProps

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

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:46.384Z") @Stability(Stable) public interface LambdaDeploymentGroupProps extends software.amazon.jsii.JsiiSerializable
Construction properties for LambdaDeploymentGroup.

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

    • getAlias

      @Stability(Stable) @NotNull Alias getAlias()
      Lambda Alias to shift traffic. Updating the version of the alias will trigger a CodeDeploy deployment.

      [disable-awslint:ref-via-interface] since we need to modify the alias CFN resource update policy

    • getAlarms

      @Stability(Stable) @Nullable default List<IAlarm> getAlarms()
      The CloudWatch alarms associated with this Deployment Group.

      CodeDeploy will stop (and optionally roll back) a deployment if during it any of the alarms trigger. Alarms can also be added after the Deployment Group is created using the

      invalid @link
      #addAlarm
      method.

      Default: []

      See Also:
    • getApplication

      @Stability(Stable) @Nullable default ILambdaApplication getApplication()
      The reference to the CodeDeploy Lambda Application that this Deployment Group belongs to.

      Default: - One will be created for you.

    • getAutoRollback

      @Stability(Stable) @Nullable default AutoRollbackConfig getAutoRollback()
      The auto-rollback configuration for this Deployment Group.

      Default: - default AutoRollbackConfig.

    • getDeploymentConfig

      @Stability(Stable) @Nullable default ILambdaDeploymentConfig getDeploymentConfig()
      The Deployment Configuration this Deployment Group uses.

      Default: LambdaDeploymentConfig.CANARY_10PERCENT_5MINUTES

    • getDeploymentGroupName

      @Stability(Stable) @Nullable default String getDeploymentGroupName()
      The physical, human-readable name of the CodeDeploy Deployment Group.

      Default: - An auto-generated name will be used.

    • getIgnorePollAlarmsFailure

      @Stability(Stable) @Nullable default Boolean getIgnorePollAlarmsFailure()
      Whether to continue a deployment even if fetching the alarm status from CloudWatch failed.

      Default: false

    • getPostHook

      @Stability(Stable) @Nullable default IFunction getPostHook()
      The Lambda function to run after traffic routing starts.

      Default: - None.

    • getPreHook

      @Stability(Stable) @Nullable default IFunction getPreHook()
      The Lambda function to run before traffic routing starts.

      Default: - None.

    • getRole

      @Stability(Stable) @Nullable default IRole getRole()
      The service Role of this Deployment Group.

      Default: - A new Role will be created.

    • builder

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