Menu
AWS CloudFormation
User Guide (API Version 2010-05-15)

AWS Lambda Alias VersionWeight

The VersionWeight property type specifies the percentages of traffic that will invoke each function versions for an AWS Lambda alias. For more information, see Routing Traffic to Different Function Versions Using Aliases in the AWS Lambda Developer Guide.

VersionWeight is a property of the AWS::Lambda::Alias resource type.

Syntax

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

JSON

{ "FunctionVersion" : String, "FunctionWeight" : Double }

YAML

FunctionVersion: String FunctionWeight: Double

Properties

FunctionVersion

Function version to which the alias points.

Required: Yes

Type: String

Update requires: No interruption

FunctionWeight

The percentage of traffic that will invoke the function version.

Required: Yes

Type: Double

Update requires: No interruption

See Also

On this page: