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

Describes the reason for an application status check result.

Inheritance Hierarchy

System.Object
  Amazon.EC2.Model.ApplicationStatusReason

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

Syntax

C#
public class ApplicationStatusReason

The ApplicationStatusReason type exposes the following members

Constructors

NameDescription
Public Method ApplicationStatusReason()

Properties

NameTypeDescription
Public Property Code System.String

Gets and sets the property Code.

The reason code for the application status check result. Possible values:

  • ResponseCodeMatched – The HTTP status code returned by the health check matched the configured StatusCodeMatcher.

  • ResponseCodeMismatch – The HTTP status code returned by the health check did not match the configured StatusCodeMatcher.

  • ConnectionTimeout – The connection to the target timed out.

  • ResponseTimeout – The health check timed out while waiting for a response from the target.

  • ConnectionRefused – The target refused the health check connection.

  • ConnectionReset – The target reset the health check connection before returning a response.

Current health check results use the values in the preceding list. Legacy results that do not contain structured reason metadata can instead contain a producer error type, such as Http Status Code or HttpConnectTimeoutException.

For ResponseCodeMatched and ResponseCodeMismatch, the statusCode field contains the returned HTTP status code. The protocol field contains the protocol used for the health check.

Public Property Protocol System.String

Gets and sets the property Protocol.

The protocol used for the health check. Possible values: HTTP and HTTPS.

Public Property StatusCode System.Nullable<System.Int32>

Gets and sets the property StatusCode.

The HTTP status code returned by the health check.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.7.2 and newer