Skip to content

Commit

Permalink
refactor(elasticloadbalancingv2-targets): update AlbTarget constructor (
Browse files Browse the repository at this point in the history
#27516)

This PR for elasticloadbalancingv2-targets is to change Constructor for AlbTarget to accept interface IApplicationLoadBalancer instead of ApplicationLoadBalancer. This helps it from being used alongside ApplicationLoadBalancer.fromLookup and ApplicationLoadBalancer.fromApplicationLoadBalancerAttributes.

Closes #27466.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
SarthakPaneru authored Oct 18, 2023
1 parent 3f6401c commit 7d8caf9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 7d8caf9

Please sign in to comment.