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)

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_autoscaling as autoscaling
import aws_cdk.core as cdk

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)

Return type

Optional[Duration]