CfnCodeDeployLambdaAliasUpdate Struct
To perform an AWS CodeDeploy deployment when the version changes on an AWS::Lambda::Alias resource, use the CodeDeployLambdaAliasUpdate update policy.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
const cfnCodeDeployLambdaAliasUpdate: cdk.CfnCodeDeployLambdaAliasUpdate = {
applicationName: 'applicationName',
deploymentGroupName: 'deploymentGroupName',
// the properties below are optional
afterAllowTrafficHook: 'afterAllowTrafficHook',
beforeAllowTrafficHook: 'beforeAllowTrafficHook',
};
Properties
afterAllowTrafficHookoptionalstringafter_allow_traffic_hookoptionalstrafterAllowTrafficHookoptionalStringAfterAllowTrafficHookoptionalstringAfterAllowTrafficHookoptional*string#The name of the Lambda function to run after traffic routing completes.
applicationNamestringapplication_namestrapplicationNameStringApplicationNamestringApplicationName*stringrequired#The name of the AWS CodeDeploy application.
beforeAllowTrafficHookoptionalstringbefore_allow_traffic_hookoptionalstrbeforeAllowTrafficHookoptionalStringBeforeAllowTrafficHookoptionalstringBeforeAllowTrafficHookoptional*string#The name of the Lambda function to run before traffic routing starts.
deploymentGroupNamestringdeployment_group_namestrdeploymentGroupNameStringDeploymentGroupNamestringDeploymentGroupName*stringrequired#The name of the AWS CodeDeploy deployment group.
This is where the traffic-shifting policy is set.