From 1b81758c72245aef8a97e382ad0236132e614a87 Mon Sep 17 00:00:00 2001 From: Rico Huijbers Date: Fri, 22 Feb 2019 11:46:54 +0100 Subject: [PATCH] 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. --- .../lib/alb/application-target-group.ts | 2 +- .../aws-elasticloadbalancingv2/lib/nlb/network-target-group.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@aws-cdk/aws-elasticloadbalancingv2/lib/alb/application-target-group.ts b/packages/@aws-cdk/aws-elasticloadbalancingv2/lib/alb/application-target-group.ts index 9c00b275b06e3..a4b8bbcee1c11 100644 --- a/packages/@aws-cdk/aws-elasticloadbalancingv2/lib/alb/application-target-group.ts +++ b/packages/@aws-cdk/aws-elasticloadbalancingv2/lib/alb/application-target-group.ts @@ -62,7 +62,7 @@ export interface ApplicationTargetGroupProps extends BaseTargetGroupProps { /** * Define an Application Target Group */ -export class ApplicationTargetGroup extends TargetGroupBase { +export class ApplicationTargetGroup extends TargetGroupBase implements IApplicationTargetGroup { /** * Import an existing target group */ diff --git a/packages/@aws-cdk/aws-elasticloadbalancingv2/lib/nlb/network-target-group.ts b/packages/@aws-cdk/aws-elasticloadbalancingv2/lib/nlb/network-target-group.ts index 6c7a3ba27b5c9..dc20f21d6ff52 100644 --- a/packages/@aws-cdk/aws-elasticloadbalancingv2/lib/nlb/network-target-group.ts +++ b/packages/@aws-cdk/aws-elasticloadbalancingv2/lib/nlb/network-target-group.ts @@ -34,7 +34,7 @@ export interface NetworkTargetGroupProps extends BaseTargetGroupProps { /** * Define a Network Target Group */ -export class NetworkTargetGroup extends TargetGroupBase { +export class NetworkTargetGroup extends TargetGroupBase implements INetworkTargetGroup { /** * Import an existing listener */