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.

Creates an application status check for monitoring the health of applications running on your instances. You can configure the protocol, port, path, and thresholds for the health check. The following rules apply:

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to CreateApplicationStatusCheckAsync.

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

Syntax

C#
public virtual CreateApplicationStatusCheckResponse CreateApplicationStatusCheck(
         CreateApplicationStatusCheckRequest request
)

Parameters

request
Type: Amazon.EC2.Model.CreateApplicationStatusCheckRequest

Container for the necessary parameters to execute the CreateApplicationStatusCheck service method.

Return Value


The response from the CreateApplicationStatusCheck service method, as returned by EC2.

Examples

This example creates an application status check that monitors HTTP health on port 80.

To create an application status check


var client = new AmazonEC2Client();
var response = client.CreateApplicationStatusCheck(new CreateApplicationStatusCheckRequest 
{
    Aggregation = "included",
    Path = "/health",
    Port = 80,
    Protocol = "http"
});

ApplicationStatusCheckResponseObject applicationStatusCheck = response.ApplicationStatusCheck;

            

Version Information

.NET Framework:
Supported in: 4.7.2 and newer

See Also