Interface ICfnCodeDeployLambdaAliasUpdate
To perform an AWS CodeDeploy deployment when the version changes on an AWS::Lambda::Alias resource, use the CodeDeployLambdaAliasUpdate update policy.
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnCodeDeployLambdaAliasUpdate
Syntax (vb)
Public Interface ICfnCodeDeployLambdaAliasUpdate
Remarks
ExampleMetadata: fixture=_generated
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"
};
Synopsis
Properties
AfterAllowTrafficHook | The name of the Lambda function to run after traffic routing completes. |
ApplicationName | The name of the AWS CodeDeploy application. |
BeforeAllowTrafficHook | The name of the Lambda function to run before traffic routing starts. |
DeploymentGroupName | The name of the AWS CodeDeploy deployment group. |
Properties
AfterAllowTrafficHook
The name of the Lambda function to run after traffic routing completes.
virtual string AfterAllowTrafficHook { get; }
Property Value
System.String
ApplicationName
The name of the AWS CodeDeploy application.
string ApplicationName { get; }
Property Value
System.String
BeforeAllowTrafficHook
The name of the Lambda function to run before traffic routing starts.
virtual string BeforeAllowTrafficHook { get; }
Property Value
System.String
DeploymentGroupName
The name of the AWS CodeDeploy deployment group.
string DeploymentGroupName { get; }
Property Value
System.String
Remarks
This is where the traffic-shifting policy is set.