Show / Hide Table of Contents

Class LambdaDeploymentGroupProps

Construction properties for LambdaDeploymentGroup.

Inheritance
object
LambdaDeploymentGroupProps
Implements
ILambdaDeploymentGroupProps
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.CodeDeploy
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class LambdaDeploymentGroupProps : ILambdaDeploymentGroupProps
Syntax (vb)
Public Class LambdaDeploymentGroupProps Implements ILambdaDeploymentGroupProps
Remarks

ExampleMetadata: infused

Examples
LambdaApplication myApplication;
            Function func;

            var version = func.CurrentVersion;
            var version1Alias = new Alias(this, "alias", new AliasProps {
                AliasName = "prod",
                Version = version
            });

            var deploymentGroup = new LambdaDeploymentGroup(this, "BlueGreenDeployment", new LambdaDeploymentGroupProps {
                Application = myApplication,  // optional property: one will be created for you if not provided
                Alias = version1Alias,
                DeploymentConfig = LambdaDeploymentConfig.LINEAR_10PERCENT_EVERY_1MINUTE
            });

Synopsis

Constructors

LambdaDeploymentGroupProps()

Construction properties for LambdaDeploymentGroup.

Properties

Alarms

The CloudWatch alarms associated with this Deployment Group.

Alias

Lambda Alias to shift traffic. Updating the version of the alias will trigger a CodeDeploy deployment.

Application

The reference to the CodeDeploy Lambda Application that this Deployment Group belongs to.

AutoRollback

The auto-rollback configuration for this Deployment Group.

DeploymentConfig

The Deployment Configuration this Deployment Group uses.

DeploymentGroupName

The physical, human-readable name of the CodeDeploy Deployment Group.

IgnoreAlarmConfiguration

Whether to skip the step of checking CloudWatch alarms during the deployment process.

IgnorePollAlarmsFailure

Whether to continue a deployment even if fetching the alarm status from CloudWatch failed.

PostHook

The Lambda function to run after traffic routing starts.

PreHook

The Lambda function to run before traffic routing starts.

Role

The service Role of this Deployment Group.

Constructors

LambdaDeploymentGroupProps()

Construction properties for LambdaDeploymentGroup.

public LambdaDeploymentGroupProps()
Remarks

ExampleMetadata: infused

Examples
LambdaApplication myApplication;
            Function func;

            var version = func.CurrentVersion;
            var version1Alias = new Alias(this, "alias", new AliasProps {
                AliasName = "prod",
                Version = version
            });

            var deploymentGroup = new LambdaDeploymentGroup(this, "BlueGreenDeployment", new LambdaDeploymentGroupProps {
                Application = myApplication,  // optional property: one will be created for you if not provided
                Alias = version1Alias,
                DeploymentConfig = LambdaDeploymentConfig.LINEAR_10PERCENT_EVERY_1MINUTE
            });

Properties

Alarms

The CloudWatch alarms associated with this Deployment Group.

public IAlarmRef[]? Alarms { get; set; }
Property Value

IAlarmRef[]

Remarks

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 #addAlarm method.

Default: []

See: https://docs.aws.amazon.com/codedeploy/latest/userguide/monitoring-create-alarms.html

Alias

Lambda Alias to shift traffic. Updating the version of the alias will trigger a CodeDeploy deployment.

public Alias Alias { get; set; }
Property Value

Alias

Remarks

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

Application

The reference to the CodeDeploy Lambda Application that this Deployment Group belongs to.

public ILambdaApplication? Application { get; set; }
Property Value

ILambdaApplication

Remarks

Default: - One will be created for you.

AutoRollback

The auto-rollback configuration for this Deployment Group.

public IAutoRollbackConfig? AutoRollback { get; set; }
Property Value

IAutoRollbackConfig

Remarks

Default: - default AutoRollbackConfig.

DeploymentConfig

The Deployment Configuration this Deployment Group uses.

public ILambdaDeploymentConfig? DeploymentConfig { get; set; }
Property Value

ILambdaDeploymentConfig

Remarks

Default: LambdaDeploymentConfig.CANARY_10PERCENT_5MINUTES

DeploymentGroupName

The physical, human-readable name of the CodeDeploy Deployment Group.

public string? DeploymentGroupName { get; set; }
Property Value

string

Remarks

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

IgnoreAlarmConfiguration

Whether to skip the step of checking CloudWatch alarms during the deployment process.

public bool? IgnoreAlarmConfiguration { get; set; }
Property Value

bool?

Remarks

Default: - false

IgnorePollAlarmsFailure

Whether to continue a deployment even if fetching the alarm status from CloudWatch failed.

public bool? IgnorePollAlarmsFailure { get; set; }
Property Value

bool?

Remarks

Default: false

PostHook

The Lambda function to run after traffic routing starts.

public IFunction? PostHook { get; set; }
Property Value

IFunction

Remarks

Default: - None.

PreHook

The Lambda function to run before traffic routing starts.

public IFunction? PreHook { get; set; }
Property Value

IFunction

Remarks

Default: - None.

Role

The service Role of this Deployment Group.

public IRole? Role { get; set; }
Property Value

IRole

Remarks

Default: - A new Role will be created.

Implements

ILambdaDeploymentGroupProps
Back to top Generated by DocFX