Show / Hide Table of Contents

Class HealthCheck

Health check settings.

Inheritance
System.Object
HealthCheck
Namespace: Amazon.CDK.AWS.AutoScaling
Assembly: Amazon.CDK.AWS.AutoScaling.dll
Syntax (csharp)
public class HealthCheck : DeputyBase
Syntax (vb)
Public Class HealthCheck
    Inherits DeputyBase
Remarks

ExampleMetadata: fixture=_generated

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)
});

Synopsis

Constructors

HealthCheck(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

HealthCheck(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

Properties

GracePeriod
Type

Methods

Ec2(IEc2HealthCheckOptions)

Use EC2 for health checks.

Elb(IElbHealthCheckOptions)

Use ELB for health checks.

Constructors

HealthCheck(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

protected HealthCheck(ByRefValue reference)
Parameters
reference Amazon.JSII.Runtime.Deputy.ByRefValue

The Javascript-owned object reference

HealthCheck(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

protected HealthCheck(DeputyBase.DeputyProps props)
Parameters
props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps

The deputy props

Properties

GracePeriod

public virtual Duration GracePeriod { get; }
Property Value

Duration

Type

public virtual string Type { get; }
Property Value

System.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.

Back to top Generated by DocFX