@Stability(value=Stable)
public static interface CfnRoute.WeightedTargetProperty
extends software.amazon.jsii.JsiiSerializable
Traffic is distributed across targets according to their relative weight. For example, a weighted target with a relative weight of 50 receives five times as much traffic as one with a relative weight of 10. The total weight for all targets combined must be less than or equal to 100.
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.appmesh.*;
WeightedTargetProperty weightedTargetProperty = WeightedTargetProperty.builder()
.virtualNode("virtualNode")
.weight(123)
// the properties below are optional
.port(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnRoute.WeightedTargetProperty.Builder
A builder for
CfnRoute.WeightedTargetProperty |
static class |
CfnRoute.WeightedTargetProperty.Jsii$Proxy
An implementation for
CfnRoute.WeightedTargetProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnRoute.WeightedTargetProperty.Builder |
builder() |
default Number |
getPort()
`CfnRoute.WeightedTargetProperty.Port`.
|
String |
getVirtualNode()
The virtual node to associate with the weighted target.
|
Number |
getWeight()
The relative weight of the weighted target.
|
@Stability(value=Stable) @NotNull String getVirtualNode()
@Stability(value=Stable) @NotNull Number getWeight()
@Stability(value=Stable) @Nullable default Number getPort()
@Stability(value=Stable) static CfnRoute.WeightedTargetProperty.Builder builder()
Copyright © 2022. All rights reserved.