| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.AppMesh.Types.WeightedTarget
Description
Documentation
data WeightedTarget Source #
An object that represents a target and its relative weight. 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.
See: newWeightedTarget smart constructor.
Constructors
| WeightedTarget' | |
Instances
Arguments
| :: Text | |
| -> Natural | |
| -> WeightedTarget |
Create a value of WeightedTarget with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:port:WeightedTarget', weightedTarget_port - The targeted port of the weighted object.
$sel:virtualNode:WeightedTarget', weightedTarget_virtualNode - The virtual node to associate with the weighted target.
$sel:weight:WeightedTarget', weightedTarget_weight - The relative weight of the weighted target.
weightedTarget_port :: Lens' WeightedTarget (Maybe Natural) Source #
The targeted port of the weighted object.
weightedTarget_virtualNode :: Lens' WeightedTarget Text Source #
The virtual node to associate with the weighted target.
weightedTarget_weight :: Lens' WeightedTarget Natural Source #
The relative weight of the weighted target.