enable_application_status_check_suppression
¶
enable_application_status_check_suppression(
*,
config_overrides: Optional[EC2ClientConfig] = None,
instance_ids: Optional[InstanceIdList] = None,
duration_seconds: Optional[BoxedInteger] = None,
client_token: Optional[String] = None,
dry_run: Optional[Boolean] = None,
) -> EnableApplicationStatusCheckSuppressionResult
Suppresses application status checks for the specified instances. While suppressed, health checks continue to run but do not affect the instance-level application status. The following rules apply:
-
You can specify a maximum of 100 instance IDs for each request.
-
Use
DisableApplicationStatusCheckSuppressionto resume normal health check reporting. -
If you do not specify
DurationSeconds, suppression continues indefinitely until you callDisableApplicationStatusCheckSuppression.
Parameters:
-
instance_ids(Optional[InstanceIdList], default:None) –The IDs of the instances for which to suppress application status checks.
-
duration_seconds(Optional[BoxedInteger], default:None) –The duration, in seconds, for which to suppress application status checks. If omitted, the application status check is suppressed indefinitely until you call
DisableApplicationStatusCheckSuppression. -
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 enable application status check suppression This example suppresses application status check reporting for the specified instance for one hour.
>>> client.enable_application_status_check_suppression(instance_ids=['i-0123456789abcdef0'], duration_seconds=3600)
Source code in docs_src/capo_ec2/_services/ec2.py
40867 40868 40869 40870 40871 40872 40873 40874 40875 40876 40877 40878 40879 40880 40881 40882 40883 40884 40885 40886 40887 40888 40889 40890 40891 40892 40893 40894 40895 40896 40897 40898 40899 40900 40901 40902 40903 40904 40905 40906 40907 40908 40909 40910 40911 40912 40913 40914 40915 40916 40917 40918 40919 40920 40921 40922 40923 40924 40925 40926 40927 40928 40929 | |