Table of Contents

Class CfnCodeDeployLambdaAliasUpdate

Namespace
Amazon.CDK
Assembly
Amazon.CDK.dll

To perform an AWS CodeDeploy deployment when the version changes on an AWS::Lambda::Alias resource, use the CodeDeployLambdaAliasUpdate update policy.

public class CfnCodeDeployLambdaAliasUpdate : ICfnCodeDeployLambdaAliasUpdate
Inheritance
CfnCodeDeployLambdaAliasUpdate
Implements
Inherited Members

Examples

// The code below shows an example of how to instantiate this type.
            // The values are placeholders you should change.
            using Amazon.CDK;
            var cfnCodeDeployLambdaAliasUpdate = new CfnCodeDeployLambdaAliasUpdate {
                ApplicationName = "applicationName",
                DeploymentGroupName = "deploymentGroupName",

                // the properties below are optional
                AfterAllowTrafficHook = "afterAllowTrafficHook",
                BeforeAllowTrafficHook = "beforeAllowTrafficHook"
            };

Remarks

ExampleMetadata: fixture=_generated

Constructors

CfnCodeDeployLambdaAliasUpdate()

public CfnCodeDeployLambdaAliasUpdate()

Properties

AfterAllowTrafficHook

The name of the Lambda function to run after traffic routing completes.

public string? AfterAllowTrafficHook { get; set; }

Property Value

string

ApplicationName

The name of the AWS CodeDeploy application.

public string ApplicationName { get; set; }

Property Value

string

BeforeAllowTrafficHook

The name of the Lambda function to run before traffic routing starts.

public string? BeforeAllowTrafficHook { get; set; }

Property Value

string

DeploymentGroupName

The name of the AWS CodeDeploy deployment group.

public string DeploymentGroupName { get; set; }

Property Value

string

Remarks

This is where the traffic-shifting policy is set.