interface WeightedTargetGroup
| Language | Type name | 
|---|---|
  .NET | Amazon.CDK.AWS.ElasticLoadBalancingV2.WeightedTargetGroup | 
  Go | github.com/aws/aws-cdk-go/awscdk/v2/awselasticloadbalancingv2#WeightedTargetGroup | 
  Java | software.amazon.awscdk.services.elasticloadbalancingv2.WeightedTargetGroup | 
  Python | aws_cdk.aws_elasticloadbalancingv2.WeightedTargetGroup | 
  TypeScript (source) | aws-cdk-lib » aws_elasticloadbalancingv2 » WeightedTargetGroup | 
A Target Group and weight combination.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_elasticloadbalancingv2 as elbv2 } from 'aws-cdk-lib';
declare const applicationTargetGroup: elbv2.ApplicationTargetGroup;
const weightedTargetGroup: elbv2.WeightedTargetGroup = {
  targetGroup: applicationTargetGroup,
  // the properties below are optional
  weight: 123,
};
Properties
| Name | Type | Description | 
|---|---|---|
| target | IApplication | The target group. | 
| weight? | number | The target group's weight. | 
targetGroup
Type:
IApplication
The target group.
weight?
Type:
number
(optional, default: 1)
The target group's weight.
Range is [0..1000).

 .NET
 Go
 Java
 Python
 TypeScript (