class Aws::AppMesh::Types::WeightedTarget

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.

@note When making an API call, you may pass WeightedTarget

data as a hash:

    {
      virtual_node: "ResourceName", # required
      weight: 1, # required
    }

@!attribute [rw] virtual_node

The virtual node to associate with the weighted target.
@return [String]

@!attribute [rw] weight

The relative weight of the weighted target.
@return [Integer]

@see docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/WeightedTarget AWS API Documentation

Constants

SENSITIVE