From 1ec07543cc8bda9b72b00b59ba0345eadd7dcdd2 Mon Sep 17 00:00:00 2001 From: Tomoya Oda Date: Thu, 22 Jun 2023 21:12:16 +0000 Subject: [PATCH] fix healthcheck timeout description --- .../lib/shared/base-target-group.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/shared/base-target-group.ts b/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/shared/base-target-group.ts index 7524d07559fca..5ca71c8b5e528 100644 --- a/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/shared/base-target-group.ts +++ b/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/shared/base-target-group.ts @@ -106,12 +106,9 @@ export interface HealthCheck { /** * The amount of time, in seconds, during which no response from a target means a failed health check. + * Must be 2 to 120 seconds. * - * For Application Load Balancers, the range is 2-60 seconds and the - * default is 5 seconds. For Network Load Balancers, this is 10 seconds for - * TCP and HTTPS health checks and 6 seconds for HTTP health checks. - * - * @default Duration.seconds(5) for ALBs, Duration.seconds(10) or Duration.seconds(6) for NLBs + * @default 6 seconds if the protocol is HTTP, 5 seconds if protocol is `GENEVE`, 30 seconds if target type is `lambda`, 10 seconds for TCP, TLS, or HTTPS */ readonly timeout?: cdk.Duration;