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.

Modifies an existing application status check. You can update the protocol, port, path, thresholds, and other configuration settings. The following rules apply:

Note:

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

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

Syntax

C#
public virtual ModifyApplicationStatusCheckResponse ModifyApplicationStatusCheck(
         ModifyApplicationStatusCheckRequest request
)

Parameters

request
Type: Amazon.EC2.Model.ModifyApplicationStatusCheckRequest

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

Return Value


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

Examples

This example modifies the port and path of an existing application status check.

To modify an application status check


var client = new AmazonEC2Client();
var response = client.ModifyApplicationStatusCheck(new ModifyApplicationStatusCheckRequest 
{
    ApplicationStatusCheckId = "asc-0123456789abcdef0",
    Path = "/healthv2",
    Port = 8080
});

ApplicationStatusCheckResponseObject applicationStatusCheck = response.ApplicationStatusCheck;

            

Version Information

.NET Framework:
Supported in: 4.7.2 and newer

See Also