modify_application_status_check
¶
modify_application_status_check(
*,
config_overrides: Optional[EC2ClientConfig] = None,
application_status_check_id: Optional[ApplicationStatusCheckId] = None,
aggregation: Optional[AggregationStatusEnum] = None,
health_check_paths: Optional[HealthCheckPathRequestList] = None,
protocol: Optional[NetworkProtocolEnum] = None,
port: Optional[PortNumber] = None,
path: Optional[String] = None,
device_index: Optional[Integer] = None,
ip_version: Optional[IpVersionEnum] = None,
ip_scope: Optional[IpScopeEnum] = None,
interval: Optional[Integer] = None,
timeout: Optional[Integer] = None,
failure_threshold: Optional[Integer] = None,
success_threshold: Optional[Integer] = None,
status_code_matcher: Optional[String] = None,
initialization_grace_period_seconds: Optional[
InitializationGracePeriodSeconds
] = None,
client_token: Optional[String] = None,
dry_run: Optional[Boolean] = None,
) -> ModifyApplicationStatusCheckResult
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.
Parameters:
-
application_status_check_id(Optional[ApplicationStatusCheckId], default:None) –The ID of the application status check to modify.
-
aggregation(Optional[AggregationStatusEnum], default:None) –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. -
health_check_paths(Optional[HealthCheckPathRequestList], default:None) –The health check paths to use for the application status check.
-
protocol(Optional[NetworkProtocolEnum], default:None) –The protocol to use for the health check. Valid values:
http|https. -
port(Optional[PortNumber], default:None) –The port to use for the health check. Valid values: 1 to 65535.
-
path(Optional[String], default:None) –The URL path to use for the health check HTTP request (for example,
/healthor/status). -
device_index(Optional[Integer], default:None) –The index of the network device to use for the health check. The value must be greater than or equal to 0.
-
ip_version(Optional[IpVersionEnum], default:None) –The IP version to use for the health check. Valid values:
ipv4andipv6. -
ip_scope(Optional[IpScopeEnum], default:None) –The IP scope to use for the health check. Valid value:
private. -
interval(Optional[Integer], default:None) –The interval, in seconds, between health checks. Valid value: 60.
-
timeout(Optional[Integer], default:None) –The amount of time, in seconds, to wait for a health check response before considering it failed. Valid values: 1 to 30. The value must be less than
Interval. -
failure_threshold(Optional[Integer], default:None) –The number of consecutive failed health checks before the application status is considered impaired. The value must be greater than 0.
-
success_threshold(Optional[Integer], default:None) –The number of consecutive successful health checks before the application status is considered healthy. The value must be greater than 0.
-
status_code_matcher(Optional[String], default:None) –The HTTP status codes that indicate a successful health check response. Specify a comma-separated list of individual status codes or ranges, for example,
200,202,300-399. For a range, the first value must be less than the second value. Maximum length: 64 characters. -
initialization_grace_period_seconds(Optional[InitializationGracePeriodSeconds], default:None) –The number of seconds to wait before starting health checks after an instance is launched. Valid values: 1 to 600.
-
client_token(Optional[String], default:None) –A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. If you retry a request with the same token, the service ignores the request but does not return an error. For more information, see Ensuring idempotency.
-
dry_run(Optional[Boolean], default:None) –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.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To modify an application status check This example modifies the port and path of an existing application status check.
>>> client.modify_application_status_check(application_status_check_id='asc-0123456789abcdef0', port=8080, path='/healthv2')
Source code in docs_src/capo_ec2/_services/ec2.py
48988 48989 48990 48991 48992 48993 48994 48995 48996 48997 48998 48999 49000 49001 49002 49003 49004 49005 49006 49007 49008 49009 49010 49011 49012 49013 49014 49015 49016 49017 49018 49019 49020 49021 49022 49023 49024 49025 49026 49027 49028 49029 49030 49031 49032 49033 49034 49035 49036 49037 49038 49039 49040 49041 49042 49043 49044 49045 49046 49047 49048 49049 49050 49051 49052 49053 49054 49055 49056 49057 49058 49059 49060 49061 49062 49063 49064 49065 49066 49067 49068 49069 49070 49071 49072 49073 49074 49075 49076 49077 49078 49079 49080 49081 49082 49083 49084 49085 49086 49087 49088 49089 49090 49091 49092 49093 49094 49095 49096 49097 49098 49099 49100 49101 49102 49103 49104 49105 49106 49107 49108 49109 49110 49111 49112 49113 | |