def update(destination_id, label, plugin_name, options, description):
    """
    Updates an existing destination.

    :param destination_id:  Lemur assigned ID
    :param label: Destination common name
    :param plugin_name:
    :param options:
    :param description:
    :rtype: Destination
    :return:
    """
    destination = get(destination_id)

    destination.label = label
    destination.plugin_name = plugin_name
    # remove any sub-plugin objects before try to save the json options
    for option in options:
        if "plugin" in option["type"]:
            del option["value"]["plugin_object"]
    destination.options = options
    destination.description = description

    log_service.audit_log("update_destination", destination.label, "Updating destination")
    updated = database.update(destination)
    # add the destination as source, to avoid new destinations that are not in source, as long as an AWS destination
    if add_aws_destination_to_sources(updated):
        current_app.logger.info("Source: %s created", label)
    return updated

    Updates an existing destination.

    :param destination_id:  Lemur assigned ID
    :param label: Destination common name
    :param plugin_name:
    :param options:
    :param description:
    :rtype: Destination
    :return:
    
lemur/destinations/service.py