Table of Contents

Class HealthCheck

Namespace
Amazon.CDK.AWS.AutoScaling
Assembly
Amazon.CDK.AWS.AutoScaling.dll

Health check settings.

public class HealthCheck : DeputyBase
Inheritance
HealthCheck

Examples

// The code below shows an example of how to instantiate this type.
            // The values are placeholders you should change.
            using Amazon.CDK.AWS.AutoScaling;
            using Amazon.CDK;
            var healthCheck = HealthCheck.Ec2(new Ec2HealthCheckOptions {
                Grace = Duration.Minutes(30)
            });

Remarks

ExampleMetadata: fixture=_generated

Properties

GracePeriod

public virtual Duration? GracePeriod { get; }

Property Value

Duration

Type

public virtual string Type { get; }

Property Value

string

Methods

Ec2(IEc2HealthCheckOptions?)

Use EC2 for health checks.

public static HealthCheck Ec2(IEc2HealthCheckOptions? options = null)

Parameters

options IEc2HealthCheckOptions

EC2 health check options.

Returns

HealthCheck

Elb(IElbHealthCheckOptions)

Use ELB for health checks.

public static HealthCheck Elb(IElbHealthCheckOptions options)

Parameters

options IElbHealthCheckOptions

ELB health check options.

Returns

HealthCheck

Remarks

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