AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the ConfigureHealthCheck operation. Specifies the health check settings to use when evaluating the health state of your EC2 instances.

For more information, see Configure Health Checks for Your Load Balancer in the Classic Load Balancer Guide.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.ElasticLoadBalancing.AmazonElasticLoadBalancingRequest
      Amazon.ElasticLoadBalancing.Model.ConfigureHealthCheckRequest

Namespace: Amazon.ElasticLoadBalancing.Model
Assembly: AWSSDK.ElasticLoadBalancing.dll
Version: 3.x.y.z

Syntax

C#
public class ConfigureHealthCheckRequest : AmazonElasticLoadBalancingRequest
         IAmazonWebServiceRequest

The ConfigureHealthCheckRequest type exposes the following members

Constructors

NameDescription
Public Method ConfigureHealthCheckRequest()

Empty constructor used to set properties independently even when a simple constructor is available

Public Method ConfigureHealthCheckRequest(string, HealthCheck)

Instantiates ConfigureHealthCheckRequest with the parameterized properties

Properties

NameTypeDescription
Public Property HealthCheck Amazon.ElasticLoadBalancing.Model.HealthCheck

Gets and sets the property HealthCheck.

The configuration information.

Public Property LoadBalancerName System.String

Gets and sets the property LoadBalancerName.

The name of the load balancer.

Examples

This example specifies the health check settings used to evaluate the health of your backend EC2 instances.

To specify the health check settings for your backend EC2 instances


var response = client.ConfigureHealthCheck(new ConfigureHealthCheckRequest 
{
    HealthCheck = new HealthCheck {
        HealthyThreshold = 2,
        Interval = 30,
        Target = "HTTP:80/png",
        Timeout = 3,
        UnhealthyThreshold = 2
    },
    LoadBalancerName = "my-load-balancer"
});

HealthCheck healthCheck = response.HealthCheck;

            

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms