AWS SDK Version 2 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.

.NET Framework 4.5
 
Information about the state of a back-end instance.

Inheritance Hierarchy

System.Object
  Amazon.ElasticLoadBalancing.Model.InstanceState

Namespace: Amazon.ElasticLoadBalancing.Model
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public class InstanceState : Object

The InstanceState type exposes the following members

Constructors

NameDescription
Public Method InstanceState() Empty constructor used to set properties independently even when a simple constructor is available

Properties

NameTypeDescription
Public Property Description System.String Gets and sets the property Description.

A description of the instance state. This string can contain one or more of the following messages.

  • N/A

  • A transient error occurred. Please try again later.

  • Instance has failed at least the UnhealthyThreshold number of health checks
                consecutively.
    

  • Instance has not passed the configured HealthyThreshold number of health checks
                consecutively.
    

  • Instance registration is still in progress.

  • Instance is in the EC2 Availability Zone for which LoadBalancer is not configured
                to route traffic to.
    

  • Instance is not currently registered with the LoadBalancer.

  • Instance deregistration currently in progress.

  • Disable Availability Zone is currently in progress.

  • Instance is in pending state.

  • Instance is in stopped state.

  • Instance is in terminated state.

Public Property InstanceId System.String Gets and sets the property InstanceId.

The ID of the instance.

Public Property ReasonCode System.String Gets and sets the property ReasonCode.

Information about the cause of OutOfService instances. Specifically, whether the cause is Elastic Load Balancing or the instance.

Valid values: ELB | Instance | N/A

Public Property State System.String Gets and sets the property State.

The current state of the instance.

Valid values: InService | OutOfService | Unknown

Version Information

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

.NET for Windows Store apps:
Supported in: Windows 8.1, Windows 8

.NET for Windows Phone:
Supported in: Windows Phone 8.1, Windows Phone 8