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

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-appmesh/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 representing 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.

Instance Attribute Summary collapse

Instance Attribute Details

#virtual_nodeString

The virtual node to associate with the weighted target.

Returns:

  • (String)


2106
2107
2108
2109
2110
# File 'gems/aws-sdk-appmesh/lib/aws-sdk-appmesh/types.rb', line 2106

class WeightedTarget < Struct.new(
  :virtual_node,
  :weight)
  include Aws::Structure
end

#weightInteger

The relative weight of the weighted target.

Returns:

  • (Integer)


2106
2107
2108
2109
2110
# File 'gems/aws-sdk-appmesh/lib/aws-sdk-appmesh/types.rb', line 2106

class WeightedTarget < Struct.new(
  :virtual_node,
  :weight)
  include Aws::Structure
end