interface CfnCodeDeployLambdaAliasUpdate
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnCodeDeployLambdaAliasUpdate |
Java | software.amazon.awscdk.core.CfnCodeDeployLambdaAliasUpdate |
Python | aws_cdk.core.CfnCodeDeployLambdaAliasUpdate |
TypeScript (source) | @aws-cdk/core » CfnCodeDeployLambdaAliasUpdate |
To perform an AWS CodeDeploy deployment when the version changes on an AWS::Lambda::Alias resource, use the CodeDeployLambdaAliasUpdate update policy.
Example
// 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/core';
const cfnCodeDeployLambdaAliasUpdate: cdk.CfnCodeDeployLambdaAliasUpdate = {
applicationName: 'applicationName',
deploymentGroupName: 'deploymentGroupName',
// the properties below are optional
afterAllowTrafficHook: 'afterAllowTrafficHook',
beforeAllowTrafficHook: 'beforeAllowTrafficHook',
};
Properties
| Name | Type | Description |
|---|---|---|
| application | string | The name of the AWS CodeDeploy application. |
| deployment | string | The name of the AWS CodeDeploy deployment group. |
| after | string | The name of the Lambda function to run after traffic routing completes. |
| before | string | The name of the Lambda function to run before traffic routing starts. |
applicationName
Type:
string
The name of the AWS CodeDeploy application.
deploymentGroupName
Type:
string
The name of the AWS CodeDeploy deployment group.
This is where the traffic-shifting policy is set.
afterAllowTrafficHook?
Type:
string
(optional)
The name of the Lambda function to run after traffic routing completes.
beforeAllowTrafficHook?
Type:
string
(optional)
The name of the Lambda function to run before traffic routing starts.

.NET
Java
Python
TypeScript (