disassociateApplicationStatusCheck

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 TargetTagAssociations or InstanceIds, but not both. Specifying both results in an InvalidParameterCombination error.

  • 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"
        }            
    )
}