File tree 2 files changed +3
-0
lines changed
packages/@aws-cdk/aws-elasticloadbalancingv2
2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -194,6 +194,7 @@ export abstract class BaseTargetGroup extends cdk.Construct implements ITargetGr
194
194
healthCheckProtocol : new cdk . Token ( ( ) => this . healthCheck && this . healthCheck . protocol ) ,
195
195
healthCheckTimeoutSeconds : new cdk . Token ( ( ) => this . healthCheck && this . healthCheck . timeoutSeconds ) ,
196
196
healthyThresholdCount : new cdk . Token ( ( ) => this . healthCheck && this . healthCheck . healthyThresholdCount ) ,
197
+ unhealthyThresholdCount : new cdk . Token ( ( ) => this . healthCheck && this . healthCheck . unhealthyThresholdCount ) ,
197
198
matcher : new cdk . Token ( ( ) => this . healthCheck && this . healthCheck . healthyHttpCodes !== undefined ? {
198
199
httpCode : this . healthCheck . healthyHttpCodes
199
200
} : undefined ) ,
Original file line number Diff line number Diff line change @@ -287,13 +287,15 @@ export = {
287
287
targets : [ new FakeSelfRegisteringTarget ( stack , 'Target' , vpc ) ]
288
288
} ) ;
289
289
group . configureHealthCheck ( {
290
+ unhealthyThresholdCount : 3 ,
290
291
timeoutSeconds : 3600 ,
291
292
intervalSecs : 30 ,
292
293
path : '/test' ,
293
294
} ) ;
294
295
295
296
// THEN
296
297
expect ( stack ) . to ( haveResource ( 'AWS::ElasticLoadBalancingV2::TargetGroup' , {
298
+ UnhealthyThresholdCount : 3 ,
297
299
HealthCheckIntervalSeconds : 30 ,
298
300
HealthCheckPath : "/test" ,
299
301
HealthCheckTimeoutSeconds : 3600 ,
You can’t perform that action at this time.
0 commit comments