enable_application_status_check_suppression
async
¶
enable_application_status_check_suppression(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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.
>>> await client.enable_application_status_check_suppression(instance_ids=['i-0123456789abcdef0'], duration_seconds=3600)
Source code in docs_src/capo_ec2/_services/async_ec2.py
41420 41421 41422 41423 41424 41425 41426 41427 41428 41429 41430 41431 41432 41433 41434 41435 41436 41437 41438 41439 41440 41441 41442 41443 41444 41445 41446 41447 41448 41449 41450 41451 41452 41453 41454 41455 41456 41457 41458 41459 41460 41461 41462 41463 41464 41465 41466 41467 41468 41469 41470 41471 41472 41473 41474 41475 41476 41477 41478 41479 41480 41481 41482 41483 | |