You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::AppMesh::Types::WeightedTarget

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing WeightedTarget as input to an Aws::Client method, you can use a vanilla 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

Instance Attribute Details

#virtual_nodeString

The virtual node to associate with the weighted target.

Returns:

  • (String)

    The virtual node to associate with the weighted target.

#weightInteger

The relative weight of the weighted target.

Returns:

  • (Integer)

    The relative weight of the weighted target.