# NetworkWeightedTargetGroup

A Target Group and weight combination.

- Source: [`aws-elasticloadbalancingv2/lib/nlb/network-listener-action.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/nlb/network-listener-action.ts#L144)

## Example

```ts
// 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 networkTargetGroup: elbv2.NetworkTargetGroup;
const networkWeightedTargetGroup: elbv2.NetworkWeightedTargetGroup = {
  targetGroup: networkTargetGroup,

  // the properties below are optional
  weight: 123,
};
```

## Properties

- `targetGroup`: [INetworkTargetGroup](/cdk/api/v2/docs/aws-cdk-lib.aws_elasticloadbalancingv2.INetworkTargetGroup.html) (required) — The target group.

- `weight`: number = 1 — The target group's weight.

  Range is [0..1000).
