def METHOD_NAME(function, context):
    """ Adds the Trigger section and returns all the associated new
    resources and outputs.
    """
    if 'triggerTopic' in context.properties:
        return append_trigger_topic(function, context.properties)
    elif 'triggerStorage' in context.properties:
        return append_trigger_storage(function, context)
    return append_trigger_http(function, context)