From 78de5fe59069884e1601d05e309cc62c49dd2c4d Mon Sep 17 00:00:00 2001 From: Sarthak Paneru Date: Wed, 11 Oct 2023 01:34:43 +0000 Subject: [PATCH] feat: update AlbTarget constructor to accept interface IApplicationLoadBalancer (#27466) --- .../aws-elasticloadbalancingv2-targets/lib/alb-target.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/aws-cdk-lib/aws-elasticloadbalancingv2-targets/lib/alb-target.ts b/packages/aws-cdk-lib/aws-elasticloadbalancingv2-targets/lib/alb-target.ts index c7d6968721ff5..ec658da181af6 100644 --- a/packages/aws-cdk-lib/aws-elasticloadbalancingv2-targets/lib/alb-target.ts +++ b/packages/aws-cdk-lib/aws-elasticloadbalancingv2-targets/lib/alb-target.ts @@ -39,7 +39,7 @@ export class AlbTarget extends AlbArnTarget { * @param alb The application load balancer to load balance to * @param port The port on which the target is listening */ - constructor(alb: elbv2.ApplicationLoadBalancer, port: number) { + constructor(alb: elbv2.IApplicationLoadBalancer, port: number) { super(alb.loadBalancerArn, port); } }