Class: Aws::AppMesh::Types::WeightedTarget
- Inherits:
-
Struct
- Object
- Struct
- Aws::AppMesh::Types::WeightedTarget
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-appmesh/types.rb
Overview
Note:
When making an API call, you may pass WeightedTarget data as a hash:
{
virtual_node: "ResourceName", # required
weight: 1, # required
}
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.
Instance Attribute Summary collapse
-
#virtual_node ⇒ String
The virtual node to associate with the weighted target.
-
#weight ⇒ Integer
The relative weight of the weighted target.
Instance Attribute Details
#virtual_node ⇒ String
The virtual node to associate with the weighted target.
2238 2239 2240 2241 2242 |
# File 'lib/aws-sdk-appmesh/types.rb', line 2238 class WeightedTarget < Struct.new( :virtual_node, :weight) include Aws::Structure end |
#weight ⇒ Integer
The relative weight of the weighted target.
2238 2239 2240 2241 2242 |
# File 'lib/aws-sdk-appmesh/types.rb', line 2238 class WeightedTarget < Struct.new( :virtual_node, :weight) include Aws::Structure end |