modify_application_status_check
async
¶
modify_application_status_check(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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.
>>> await client.modify_application_status_check(application_status_check_id='asc-0123456789abcdef0', port=8080, path='/healthv2')
Source code in docs_src/capo_ec2/_services/async_ec2.py
49665 49666 49667 49668 49669 49670 49671 49672 49673 49674 49675 49676 49677 49678 49679 49680 49681 49682 49683 49684 49685 49686 49687 49688 49689 49690 49691 49692 49693 49694 49695 49696 49697 49698 49699 49700 49701 49702 49703 49704 49705 49706 49707 49708 49709 49710 49711 49712 49713 49714 49715 49716 49717 49718 49719 49720 49721 49722 49723 49724 49725 49726 49727 49728 49729 49730 49731 49732 49733 49734 49735 49736 49737 49738 49739 49740 49741 49742 49743 49744 49745 49746 49747 49748 49749 49750 49751 49752 49753 49754 49755 49756 49757 49758 49759 49760 49761 49762 49763 49764 49765 49766 49767 49768 49769 49770 49771 49772 49773 49774 49775 49776 49777 49778 49779 49780 49781 49782 49783 49784 49785 49786 49787 49788 49789 49790 49791 | |