Ec2HealthCheckOptions

class aws_cdk.aws_autoscaling.Ec2HealthCheckOptions(*, grace=None)

Bases: object

EC2 Heath check options.

Parameters:

grace (Optional[Duration]) – Specified the time Auto Scaling waits before checking the health status of an EC2 instance that has come into service. Default: Duration.seconds(0)

ExampleMetadata:

fixture=_generated

Example:

# 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

ec2_health_check_options = autoscaling.Ec2HealthCheckOptions(
    grace=cdk.Duration.minutes(30)
)

Attributes

grace

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

Default:

Duration.seconds(0)