ModifyApplicationStatusCheck
Modifies an existing application status check. You can update the protocol, port, path, thresholds, and other configuration settings. The following rules apply:
-
The application status check must exist and belong to your account.
-
Changes take effect on the next health check interval.
Request Parameters
The following parameters are for this specific action. For more information about required and optional parameters that are common to all actions, see Common Query Parameters.
- Aggregation
-
The aggregation setting for the application status check. When set to
included, the result of this check contributes to the instance-level application status reported byDescribeApplicationStatus. When set toexcluded, the check runs independently and does not affect the instance-level status. Valid values:included|excluded.Type: String
Valid Values:
included | excludedRequired: No
- ApplicationStatusCheckId
-
The ID of the application status check to modify.
Type: String
Required: Yes
- ClientToken
-
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
Type: String
Required: No
- DeviceIndex
-
The index of the network device to use for the health check.
Type: Integer
Required: No
- DryRun
-
Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation.Type: Boolean
Required: No
- FailureThreshold
-
The number of consecutive failed health checks before the application status is considered impaired.
Type: Integer
Required: No
- HealthCheckPath.N
-
The health check paths to use for the application status check.
Type: Array of HealthCheckPathRequestObject objects
Required: No
- InitializationGracePeriodSeconds
-
The number of seconds to wait before starting health checks after an instance is launched. Valid values: 1 to 600.
Type: Integer
Valid Range: Minimum value of -1. Maximum value of 600.
Required: No
- Interval
-
The interval, in seconds, between health checks.
Type: Integer
Required: No
- IpScope
-
The IP scope to use for the health check. Valid values:
private|public.Type: String
Valid Values:
privateRequired: No
- IpVersion
-
The IP version to use for the health check. Valid values:
ipv4.Type: String
Valid Values:
ipv4 | ipv6Required: No
- Path
-
The URL path to use for the health check HTTP request (for example,
/healthor/status).Type: String
Required: No
- Port
-
The port to use for the health check. Valid values: 1 to 65535.
Type: Integer
Valid Range: Minimum value of 1. Maximum value of 65535.
Required: No
- Protocol
-
The protocol to use for the health check. Valid values:
http|https.Type: String
Valid Values:
http | httpsRequired: No
- StatusCodeMatcher
-
The HTTP status codes that indicate a successful health check response.
Type: String
Required: No
- SuccessThreshold
-
The number of consecutive successful health checks before the application status is considered healthy.
Type: Integer
Required: No
- Timeout
-
The amount of time, in seconds, to wait for a health check response before considering it failed.
Type: Integer
Required: No
Response Elements
The following elements are returned by the service.
- applicationStatusCheck
-
Information about the modified application status check.
Type: ApplicationStatusCheckResponseObject object
- requestId
-
The ID of the request.
Type: String
Errors
For information about the errors that are common to all actions, see Common Error Types.
Examples
To modify an application status check
This example modifies the port of an existing application status check.
Sample Request
https://ec2.amazonaws.com/?Action=ModifyApplicationStatusCheck
&ApplicationStatusCheckId=asc-0123456789abcdef0
&Port=8080
&AUTHPARAMS
Sample Response
<ModifyApplicationStatusCheckResult xmlns="http://ec2.amazonaws.com/doc/2016-11-15/">
<requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId>
<applicationStatusCheck>
<applicationStatusCheckId>asc-0123456789abcdef0</applicationStatusCheckId>
<protocol>http</protocol>
<port>8080</port>
</applicationStatusCheck>
</ModifyApplicationStatusCheckResult>
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: