HealthCheck

class aws_cdk.aws_autoscaling.HealthCheck

Bases: object

Health check settings.

Attributes

grace_period
Return type

Optional[Duration]

type
Return type

str

Static Methods

classmethod ec2(*, grace=None)

Use EC2 for health checks.

Parameters
  • options – EC2 health check options.

  • 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)

Return type

HealthCheck

classmethod elb(*, grace)

Use ELB for health checks. It considers the instance unhealthy if it fails either the EC2 status checks or the load balancer health checks.

Parameters
  • options – ELB health check options.

  • grace (Duration) – 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.

Return type

HealthCheck