Skip to content
v2.277.0

ElbHealthCheckOptions Struct ​

ELB Heath check options.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
import { aws_autoscaling as autoscaling } from 'aws-cdk-lib';
const elbHealthCheckOptions: autoscaling.ElbHealthCheckOptions = {
  grace: cdk.Duration.minutes(30),
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
from aws_cdk import aws_autoscaling as autoscaling

elb_health_check_options = autoscaling.ElbHealthCheckOptions(
    grace=cdk.Duration.minutes(30)
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.autoscaling.*;

ElbHealthCheckOptions elbHealthCheckOptions = ElbHealthCheckOptions.builder()
        .grace(Duration.minutes(30))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
using Amazon.CDK.AWS.AutoScaling;

var elbHealthCheckOptions = new ElbHealthCheckOptions {
    Grace = Duration.Minutes(30)
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import cdk "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"

elbHealthCheckOptions := &ElbHealthCheckOptions{
	Grace: cdk.Duration_Minutes(jsii.Number(30)),
}

Properties ​

graceDurationgraceDurationgraceDurationGraceDurationGraceDurationrequired#
Specified the time Auto Scaling waits before checking the health status of an EC2 instance that has come into service.

This option is required for ELB health checks.