VersionWeight
- class aws_cdk.aws_lambda.VersionWeight(*, version, weight)
Bases:
object
A version/weight pair for routing traffic to Lambda functions.
- Parameters:
version (
IVersion
) – The version to route traffic to.weight (
Union
[int
,float
]) – How much weight to assign to this version (0..1).
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_lambda as lambda_ # version: lambda.Version version_weight = lambda.VersionWeight( version=version, weight=123 )
Attributes
- version
The version to route traffic to.
- weight
How much weight to assign to this version (0..1).