# INetworkTargetGroup

A network target group.

Extends: INetworkTargetGroup
Extends: ITargetGroup, INetworkTargetGroupRef
Implemented by: NetworkTargetGroup

- Source: [`aws-elasticloadbalancingv2/lib/nlb/network-target-group.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/nlb/network-target-group.ts#L316)
- Type last changed: v2.234.0 · 8 Jan 2026

## Properties

- `env`: [ResourceEnvironment](/cdk/api/v2/docs/aws-cdk-lib.interfaces.ResourceEnvironment.html) — The environment this resource belongs to.

  For resources that are created and managed in a Stack (those created by
  creating new class instances like `new Role()`, `new Bucket()`, etc.), this
  is always the same as the environment of the stack they belong to.

  For referenced resources (those obtained from referencing methods like
  `Role.fromRoleArn()`, `Bucket.fromBucketName()`, etc.), they might be
  different than the stack they were imported into.

- `isNetworkTargetGroup`: boolean — Indicates that this is a Network Target Group.

  Will always return true, but is necessary to prevent accidental structural
  equality in TypeScript.

- `loadBalancerArns`: string — A token representing a list of ARNs of the load balancers that route traffic to this target group.

- `loadBalancerAttached`: [IDependable](/cdk/api/v2/docs/constructs.IDependable.html) — Return an object to depend on the listeners added to this target group.

- `metrics`: [INetworkTargetGroupMetrics](/cdk/api/v2/docs/aws-cdk-lib.aws_elasticloadbalancingv2.INetworkTargetGroupMetrics.html) — All metrics available for this target group.

- `node`: [Node](/cdk/api/v2/docs/constructs.Node.html) — The tree node.

- `targetGroupArn`: string — ARN of the target group.

- `targetGroupName`: string — The name of the target group.

- `targetGroupRef`: [TargetGroupReference](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_elasticloadbalancingv2.TargetGroupReference.html) — A reference to a TargetGroup resource.

## Methods

- `addTarget(...targets: INetworkLoadBalancerTarget[]): void` — Add a load balancing target to this target group.

- `registerListener(listener: INetworkListenerRef): void` — Register a listener that is load balancing to this target group.

  Don't call this directly. It will be called by listeners.

- `with(...mixins: IMixin[]): IConstruct` — Applies one or more mixins to this construct.

  Mixins are applied in order. The list of constructs is captured at the
  start of the call, so constructs added by a mixin will not be visited.

  **Parameters**

  - `mixins` — The mixins to apply.

  **Returns:** This construct for chaining
