Example #1
0
def handler(event, context) -> utils.Response:
    """Lambda entry point."""
    return handlers.EventHandler(
        name="send_report",
        event=utils.LambdaEvent(event),
        context=utils.LambdaContext(context),
        action=send_report,
    ).response
Example #2
0
def handler(event, context) -> utils.Response:
    """Lambda entry point."""
    return handlers.EventHandler(
        name="feed_poller",
        event=utils.LambdaEvent(event),
        context=utils.LambdaContext(context),
        action=invoke_publish,
    ).response
Example #3
0
def handler(event, context) -> utils.Response:
    """Lambda entry point."""
    return handlers.EventHandler(
        name="backups_monitor",
        event=utils.LambdaEvent(event),
        context=utils.LambdaContext(context),
        action=check_backup_buckets,
    ).response
Example #4
0
def handler(event, context) -> utils.Response:
    """Lambda entry point."""
    return handlers.EventHandler(
        name="pocket_create_doc",
        event=utils.LambdaEvent(event),
        context=utils.LambdaContext(context),
        action=create_doc,
    ).response
Example #5
0
def handler(event, context) -> utils.Response:
    """Lambda entry point."""
    return handlers.EventHandler(
        name="deliver_to_mailjet",
        event=utils.LambdaEvent(event),
        context=utils.LambdaContext(context),
        action=deliver_to_mailjet,
    ).response
def handler(event, context) -> utils.Response:
    """Lambda entry point."""
    return handlers.EventHandler(
        name="pagespeed_poller",
        event=utils.LambdaEvent(event),
        context=utils.LambdaContext(context),
        action=fetch_and_store_all_pagespeed_scores,
    ).response
Example #7
0
def handler(event, context) -> utils.Response:
    """Lambda entry point."""
    return handlers.EventHandler(
        name="deployer",
        event=utils.LambdaEvent(event),
        context=utils.LambdaContext(context),
        action=deploy_if_feed_updates,
    ).response
Example #8
0
def handler(event, context) -> utils.Response:
    """Lambda entry point."""
    return handlers.EventHandler(
        name="whois_poller",
        event=utils.LambdaEvent(event),
        context=utils.LambdaContext(context),
        action=alert_if_domain_expired,
    ).response
def handler(event, context) -> utils.Response:
    """Lambda entry point."""
    return handlers.EventHandler(
        name="publish_to_social",
        event=utils.LambdaEvent(event),
        context=utils.LambdaContext(context),
        action=publish,
    ).response
Example #10
0
def handler(event, context) -> utils.Response:
    """Lambda entry point."""
    return handlers.EventHandler(
        name="pocket_reader",
        event=utils.LambdaEvent(event),
        context=utils.LambdaContext(context),
        action=trigger_lambdas,
    ).response