WeightedTargetGroup
Describes the weight of a target group.
Contents
- targetGroupIdentifier
-
The ID or Amazon Resource Name (ARN) of the target group.
Type: String
Length Constraints: Minimum length of 17. Maximum length of 2048.
Pattern:
^((tg-[0-9a-z]{17})|(arn:[a-z0-9\-]+:vpc-lattice:[a-zA-Z0-9\-]+:\d{12}:targetgroup/tg-[0-9a-z]{17}))$
Required: Yes
- weight
-
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.
Type: Integer
Valid Range: Minimum value of 0. Maximum value of 999.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: