Class: Aws::VPCLattice::Types::WeightedTargetGroup

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-vpclattice/types.rb

Overview

Describes the weight of a target group.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#target_group_identifierString

The ID or ARN of the target group.

Returns:

  • (String)


5545
5546
5547
5548
5549
5550
# File 'lib/aws-sdk-vpclattice/types.rb', line 5545

class WeightedTargetGroup < Struct.new(
  :target_group_identifier,
  :weight)
  SENSITIVE = []
  include Aws::Structure
end

#weightInteger

Only required if you specify multiple target groups for a forward action. The weight determines how requests are distributed to the target group. For example, if you specify two target groups, each with a weight of 10, each target group receives half the requests. If you specify two target groups, one with a weight of 10 and the other with a weight of 20, the target group with a weight of 20 receives twice as many requests as the other target group. If there’s only one target group specified, then the default value is 100.

Returns:

  • (Integer)


5545
5546
5547
5548
5549
5550
# File 'lib/aws-sdk-vpclattice/types.rb', line 5545

class WeightedTargetGroup < Struct.new(
  :target_group_identifier,
  :weight)
  SENSITIVE = []
  include Aws::Structure
end