VersionWeight

class aws_cdk.aws_lambda.VersionWeight(*, version, weight)

Bases: object

__init__(*, version, weight)

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).

Attributes

version

The version to route traffic to.

Return type

IVersion

weight

How much weight to assign to this version (0..1).

Return type

Union[int, float]