def update_termination_protection(session, termination_protection,
    stack_name, ppt):
    """Update termination protection on a stack"""
    if termination_protection is None:
        return
    client = session.client('cloudformation')
    if termination_protection:
        ppt.secho('Enabling TerminationProtection')
    else:
        ppt.secho('Disabling TerminationProtection', fg='red')
    client.update_termination_protection(StackName=stack_name,
        EnableTerminationProtection=termination_protection)
