disassociate_application_status_check
async
¶
disassociate_application_status_check(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
application_status_check_id: Optional[ApplicationStatusCheckId] = None,
target_tag_associations: Optional[CustomKeyValuePairRequestSet] = None,
instance_ids: Optional[InstanceIdList] = None,
client_token: Optional[String] = None,
dry_run: Optional[Boolean] = None,
) -> DisassociateApplicationStatusCheckResult
Disassociates an application status check from instances or tags. After disassociation, health monitoring stops for the affected instances. The following rules apply:
-
You must specify either
TargetTagAssociationsorInstanceIds, but not both. Specifying both results in anInvalidParameterCombinationerror. -
The application status check must already exist and belong to your account.
-
Tag keys must not be blank.
Parameters:
-
application_status_check_id(Optional[ApplicationStatusCheckId], default:None) –The ID of the application status check to disassociate.
-
target_tag_associations(Optional[CustomKeyValuePairRequestSet], default:None) –The tags to disassociate from the application status check. Specify the same key-value pairs that were used during association.
-
instance_ids(Optional[InstanceIdList], default:None) –The IDs of the instances to disassociate from the application status check.
-
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 disassociate an application status check from tags This example disassociates an application status check from instances matching the specified tag.
>>> await client.disassociate_application_status_check(application_status_check_id='asc-0123456789abcdef0', target_tag_associations=[{'Key': 'env', 'Value': 'prod'}])
Source code in docs_src/capo_ec2/_services/async_ec2.py
40302 40303 40304 40305 40306 40307 40308 40309 40310 40311 40312 40313 40314 40315 40316 40317 40318 40319 40320 40321 40322 40323 40324 40325 40326 40327 40328 40329 40330 40331 40332 40333 40334 40335 40336 40337 40338 40339 40340 40341 40342 40343 40344 40345 40346 40347 40348 40349 40350 40351 40352 40353 40354 40355 40356 40357 40358 40359 40360 40361 40362 40363 40364 40365 40366 40367 40368 40369 40370 40371 40372 | |