aws-cdk-lib.CfnCodeDeployLambdaAliasUpdate

interface CfnCodeDeployLambdaAliasUpdate

LanguageType name
.NETAmazon.CDK.CfnCodeDeployLambdaAliasUpdate
Gogithub.com/aws/aws-cdk-go/awscdk/v2#CfnCodeDeployLambdaAliasUpdate
Javasoftware.amazon.awscdk.CfnCodeDeployLambdaAliasUpdate
Pythonaws_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

NameTypeDescription
applicationNamestringThe name of the AWS CodeDeploy application.
deploymentGroupNamestringThe name of the AWS CodeDeploy deployment group.
afterAllowTrafficHook?stringThe name of the Lambda function to run after traffic routing completes.
beforeAllowTrafficHook?stringThe 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.