# IApplicationLoadBalancerTarget

Interface for constructs that can be targets of an application load balancer.

Implemented by: [AutoScalingGroup](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_autoscaling.AutoScalingGroup.html), [BaseService](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.BaseService.html), [Ec2Service](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.Ec2Service.html), [ExternalService](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.ExternalService.html), FargateService, InstanceIdTarget, InstanceTarget, IpTarget, LambdaTarget
Used as argument in: [IApplicationTargetGroup.addTarget](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_elasticloadbalancingv2.IApplicationTargetGroup.html#addtarget)

- Source: [`aws-elasticloadbalancingv2/lib/alb/application-target-group.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/alb/application-target-group.ts#L737)

## Methods

- `attachToApplicationTargetGroup(targetGroup: IApplicationTargetGroup): LoadBalancerTargetProps` — Attach load-balanced target to a TargetGroup.

  May return JSON to directly add to the [Targets] list, or return undefined
  if the target will register itself with the load balancer.
