disassociateApplicationStatusCheck
abstract suspend fun disassociateApplicationStatusCheck(input: DisassociateApplicationStatusCheckRequest): DisassociateApplicationStatusCheckResponse
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.
Samples
// This example disassociates an application status check from instances matching the specified tag.
val resp = ec2Client.disassociateApplicationStatusCheck {
applicationStatusCheckId = "asc-0123456789abcdef0"
targetTagAssociations = listOf<CustomTagKeyValueRequestPair>(
CustomTagKeyValueRequestPair {
key = "env"
value = "prod"
}
)
}Content copied to clipboard