interface Ec2HealthChecksOptions
| Language | Type name | 
|---|---|
  .NET | Amazon.CDK.AWS.AutoScaling.Ec2HealthChecksOptions | 
  Go | github.com/aws/aws-cdk-go/awscdk/v2/awsautoscaling#Ec2HealthChecksOptions | 
  Java | software.amazon.awscdk.services.autoscaling.Ec2HealthChecksOptions | 
  Python | aws_cdk.aws_autoscaling.Ec2HealthChecksOptions | 
  TypeScript (source) | aws-cdk-lib » aws_autoscaling » Ec2HealthChecksOptions | 
EC2 Heath checks options.
Example
declare const vpc: ec2.Vpc;
new autoscaling.AutoScalingGroup(this, 'ASG', {
  vpc,
  instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE2, ec2.InstanceSize.MICRO),
  machineImage: ec2.MachineImage.latestAmazonLinux2(),
  healthChecks: autoscaling.HealthChecks.ec2({
    gracePeriod: Duration.seconds(100),
  }),
});
Properties
| Name | Type | Description | 
|---|---|---|
| grace | Duration | Specified the time Auto Scaling waits before checking the health status of an EC2 instance that has come into service and marking it unhealthy due to a failed health check. | 
gracePeriod?
Type:
Duration
(optional, default: Duration.seconds(0))
Specified the time Auto Scaling waits before checking the health status of an EC2 instance that has come into service and marking it unhealthy due to a failed health check.

 .NET
 Go
 Java
 Python
 TypeScript (