Exemple #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
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
Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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