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. import aws_cdk.aws_lambda as lambda_ # version: lambda.Version version_weight = lambda.VersionWeight( version=version, weight=123 )
Attributes
-
weight
¶ How much weight to assign to this version (0..1).
- Return type
Union
[int
,float
]