interface CfnCodeDeployLambdaAliasUpdate
Language | Type name |
---|---|
.NET | Amazon.CDK.CfnCodeDeployLambdaAliasUpdate |
Go | github.com/aws/aws-cdk-go/awscdk/v2#CfnCodeDeployLambdaAliasUpdate |
Java | software.amazon.awscdk.CfnCodeDeployLambdaAliasUpdate |
Python | aws_cdk.CfnCodeDeployLambdaAliasUpdate |
TypeScript (source) | aws-cdk-lib » 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-lib';
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.