disassociate_application_status_check
¶
disassociate_application_status_check(
*,
config_overrides: Optional[EC2ClientConfig] = 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.
>>> 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/ec2.py
39769 39770 39771 39772 39773 39774 39775 39776 39777 39778 39779 39780 39781 39782 39783 39784 39785 39786 39787 39788 39789 39790 39791 39792 39793 39794 39795 39796 39797 39798 39799 39800 39801 39802 39803 39804 39805 39806 39807 39808 39809 39810 39811 39812 39813 39814 39815 39816 39817 39818 39819 39820 39821 39822 39823 39824 39825 39826 39827 39828 39829 39830 39831 39832 39833 39834 39835 39836 39837 39838 | |