Skip to content

Commit 828a2d7

Browse files
authored
fix(elbv2): explicitly implement IApplicationTargetGroup (#1806)
Fix usage of application and network target groups in languages without structural typing, such as Java and C#. Fixes #1799.
1 parent 9c0cf8d commit 828a2d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/@aws-cdk/aws-elasticloadbalancingv2/lib/alb/application-target-group.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export interface ApplicationTargetGroupProps extends BaseTargetGroupProps {
6262
/**
6363
* Define an Application Target Group
6464
*/
65-
export class ApplicationTargetGroup extends TargetGroupBase {
65+
export class ApplicationTargetGroup extends TargetGroupBase implements IApplicationTargetGroup {
6666
/**
6767
* Import an existing target group
6868
*/

packages/@aws-cdk/aws-elasticloadbalancingv2/lib/nlb/network-target-group.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export interface NetworkTargetGroupProps extends BaseTargetGroupProps {
3434
/**
3535
* Define a Network Target Group
3636
*/
37-
export class NetworkTargetGroup extends TargetGroupBase {
37+
export class NetworkTargetGroup extends TargetGroupBase implements INetworkTargetGroup {
3838
/**
3939
* Import an existing listener
4040
*/

0 commit comments

Comments
 (0)