Interface VersionWeight
- All Superinterfaces:
- software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
- VersionWeight.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
           date="2025-10-29T11:15:42.733Z")
@Stability(Stable)
public interface VersionWeight
extends software.amazon.jsii.JsiiSerializable
A version/weight pair for routing traffic to Lambda functions.
 
Example:
 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.lambda.*;
 Version version;
 VersionWeight versionWeight = VersionWeight.builder()
         .version(version)
         .weight(123)
         .build();
 - 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forVersionWeightstatic final classAn implementation forVersionWeight
- 
Method SummaryModifier and TypeMethodDescriptionstatic VersionWeight.Builderbuilder()The version to route traffic to.How much weight to assign to this version (0..1).Methods inherited from interface software.amazon.jsii.JsiiSerializable$jsii$toJson
- 
Method Details- 
getVersionThe version to route traffic to.
- 
getWeightHow much weight to assign to this version (0..1).
- 
builder- Returns:
- a VersionWeight.BuilderofVersionWeight
 
 
-