AWS::VpcLattice::Listener WeightedTargetGroup - AWS CloudFormation
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.

AWS::VpcLattice::Listener WeightedTargetGroup

Describes the weight of a target group.

Syntax

To declare this entity in your 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: 0

Maximum: 999

Update requires: No interruption