AWS::Lambda::Alias AliasRoutingConfiguration - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

This is the new Amazon CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the Amazon CloudFormation User Guide.

AWS::Lambda::Alias AliasRoutingConfiguration

The traffic-shifting configuration of a Lambda function alias.

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

Properties

AdditionalVersionWeights

The second version, and the percentage of traffic that's routed to it.

Required: No

Type: Array of VersionWeight

Update requires: No interruption

Examples

Routing Configuration

An alias that routes half of incoming requests to a second version.

YAML

alias: Type: AWS::Lambda::Alias Properties: FunctionName: !Ref function FunctionVersion: !GetAtt newVersion.Version Name: BLUE RoutingConfig: AdditionalVersionWeights: - FunctionVersion: !GetAtt version.Version FunctionWeight: 0.5