From dffea616ea3befcdc6155a93d3cc42270f572b9d Mon Sep 17 00:00:00 2001 From: Michael Sambol Date: Sun, 25 Feb 2024 17:59:25 -0700 Subject: [PATCH] changer to less than equal to, remove doc link --- .../aws-elasticloadbalancingv2/lib/shared/base-target-group.ts | 3 +-- 1 file changed, 1 insertion(+), 2 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 be90f210c85b6..09c343d290e23 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 @@ -360,8 +360,7 @@ export abstract class TargetGroupBase extends Construct implements ITargetGroup const timeoutSeconds = this.healthCheck.timeout?.toSeconds(); if (intervalSeconds && timeoutSeconds) { - if (intervalSeconds < timeoutSeconds) { - // see https://docs.aws.amazon.com/elasticloadbalancing/2012-06-01/APIReference/API_HealthCheck.html + if (intervalSeconds <= timeoutSeconds) { ret.push('Health check interval must be greater than the timeout; received interval ' + `${intervalSeconds}, timeout ${timeoutSeconds}.`); }