Interface VersionWeight
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
VersionWeight.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-17T21:37:33.486Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forVersionWeight
static final class
An implementation forVersionWeight
-
Method Summary
Modifier and TypeMethodDescriptionstatic VersionWeight.Builder
builder()
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.Builder
ofVersionWeight
-