def handler(event, context) -> utils.Response: """lambda entry point""" return utils.handlers.EventHandler( name="reddit", event=utils.LambdaEvent(event), context=utils.LambdaContext(context), action=lambda x: NotImplementedError("coming soon...")).response
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.S3EventHandler( name="trigger_ecs_task", event=utils.LambdaEvent(event), context=utils.LambdaContext(context), action=trigger_ecs, ).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
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
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="pocket_reader", event=utils.LambdaEvent(event), context=utils.LambdaContext(context), action=trigger_lambdas, ).response
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
def handler(event, context) -> utils.Response: """Lambda entry point.""" return handlers.S3EventHandler( name="pocket_publisher", event=utils.LambdaEvent(event), context=utils.LambdaContext(context), action=send, ).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
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="pocket_create_doc", event=utils.LambdaEvent(event), context=utils.LambdaContext(context), action=create_doc, ).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
def handler(event, context) -> utils.Response: """lambda entry point.""" return handlers.SnsEventHandler( name="twitter", event=utils.LambdaEvent(event), context=utils.LambdaContext(context), action=post_status, ).response
def handler(event, context) -> utils.Response: """Lambda entry point.""" return handlers.SnsEventHandler( name="devto", event=utils.LambdaEvent(event), context=utils.LambdaContext(context), action=lambda x: NotImplementedError( "APIs reject requests with '503 Bot Disallowed', " "waiting for support answer.")).response
def handler(event, context) -> utils.Response: """lambda entry point""" return utils.handlers.EventHandler( name="facebook", event=utils.LambdaEvent(event), context=utils.LambdaContext(context), action=lambda x: NotImplementedError( "Facebook APIs don't allow post of content to user feed: " "https://developers.facebook.com/docs/graph-api/using-graph-api/#publishing" )).response
def handler(event, context) -> utils.Response: """lambda entry point""" return utils.handlers.EventHandler( name="medium", event=utils.LambdaEvent(event), context=utils.LambdaContext(context), action=lambda x: NotImplementedError( "Requires approval from Medium.com: " "https://github.com/Medium/medium-api-docs#22-self-issued-access-tokens" )).response
def handler(event, context) -> utils.Response: """lambda entry point""" return utils.handlers.EventHandler( name="hackernews", event=utils.LambdaEvent(event), context=utils.LambdaContext(context), action=lambda x: NotImplementedError( "Hackernews APIs don't allow post of content: " "https://blog.ycombinator.com/hacker-news-api/") ).response
def handler(event, context) -> utils.Response: """lambda entry point""" return utils.handlers.EventHandler( name="linkedin", event=utils.LambdaEvent(event), context=utils.LambdaContext(context), action=lambda x: NotImplementedError( "LinkedIn Oauth client credentials (2-legged) flow not available anymore: " "https://docs.microsoft.com/en-us/linkedin/shared/authentication/client-credentials-flow" )).response
def handler(event, context) -> utils.Response: """Lambda entry point. Public HTTPS REST API entry point """ router_map = { "GET /robots.txt": lambda _: "User-agent: *\nDisallow: /", "GET /social_report": social_report, "POST /contact": contact, } return handlers.ApiGatewayEventHandler( name="api", event=utils.LambdaEvent(event), context=utils.LambdaContext(context), router_map=router_map, ).response