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-24T13:34:41.336Z")
@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 Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forVersionWeightstatic final classAn implementation forVersionWeight -
Method Summary
Modifier 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
-
getVersion
The version to route traffic to. -
getWeight
How much weight to assign to this version (0..1). -
builder
- Returns:
- a
VersionWeight.BuilderofVersionWeight
-