def check_termination_protection(module, inst):
    """
    Check the instance disableApiTermination attribute.

    module: Ansible module object
    inst: EC2 instance object

    returns: True if state changed None otherwise
    """
    termination_protection = module.params.get('termination_protection')
    if inst.get_attribute('disableApiTermination')['disableApiTermination'
        ] != termination_protection and termination_protection is not None:
        inst.modify_attribute('disableApiTermination', termination_protection)
        return True
