AWS::VpcLattice::Rule WeightedTargetGroup - AWS CloudFormation

AWS::VpcLattice::Rule WeightedTargetGroup

Describes the weight of a target group.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "TargetGroupIdentifier" : String, "Weight" : Integer }

YAML

TargetGroupIdentifier: String Weight: Integer

Properties

TargetGroupIdentifier

The ID of the target group.

Required: Yes

Type: String

Pattern: ^((tg-[0-9a-z]{17})|(arn:[a-z0-9\-]+:vpc-lattice:[a-zA-Z0-9\-]+:\d{12}:targetgroup/tg-[0-9a-z]{17}))$

Minimum: 20

Maximum: 2048

Update requires: No interruption

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.

Required: No

Type: Integer

Minimum: 1

Maximum: 999

Update requires: No interruption