# ILoadBalancerTarget

Interface that is going to be implemented by constructs that you can load balance to.

Extends: ILoadBalancerTarget
Extends: IConnectable
Implemented by: AutoScalingGroup, BaseService, Ec2Service, ExternalService, FargateService, InstanceTarget

- Source: [`aws-elasticloadbalancing/lib/load-balancer.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-elasticloadbalancing/lib/load-balancer.ts#L163)

## Properties

- `connections`: [Connections](/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.Connections.html) — The network connections associated with this resource.

## Methods

- `attachToClassicLB(loadBalancer: LoadBalancer): void` — Attach load-balanced target to a classic ELB.

  **Parameters**

  - `loadBalancer` — [disable-awslint:ref-via-interface] The load balancer to attach the target to.
