Skip to main content

cdk-eventbridge-partner-processors

Project description

Eventbridge SaaS Partner fURLs

View on Construct Hub

npm version PyPI version Go project version

This CDK Construct library provides CDK constructs for the 1st-party (i.e. developed by AWS) lambda fURL webhook receivers for:

  • GitHub
  • Stripe
  • Twilio

Usage Examples (Simplified)

These examples are consistent for all 3 primary exported constructs of this library:

  • GitHubEventProcessor
  • TwilioEventProcessor
  • StripeEventProcessor

Note: Click on the above View on Construct Hub button to view auto-generated examples in Python/Go

Typescript

import { GitHubEventProcessor } from 'cdk-eventbridge-partner-processors';
import { Stack, StackProps } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import { EventBus } from 'aws-cdk-lib/aws-events';
import { Secret } from 'aws-cdk-lib/aws-secretsmanager';

export class MyStackWithABetterName extends Stack {
    constructor(scope: Construct, id: string, props: StackProps) {
        super(scope, id, props);

        // This library has no opinion on how you reference your EventBus,
        // It just needs to fulfill the IEventBus protocol
        const myEventBus = new EventBus(this, 'TheBestBusEver', {
            eventBusName: 'TheGreatestBus'
        });

        // This library has no opinion on how you reference your secret,
        // It just needs to fulfill the ISecret protocol
        const mySecret = Secret.fromSecretNameV2(this, 'MyNuclearCodeSecret', '/home/recipes/icbm')

        // Function will automatically receive permission to:
        // 1. Post events to the given bus
        // 2. Read the given secret
        const githubEventProcessor = new GitHubEventProcessor(this, 'GitHubProcessor', {
            eventBus: myEventBus,
            webhookSecret: mySecret,
            lambdaInvocationAlarmThreshold: 2000,
        })

    }
}

Disclaimer

:warning: The Lambda Functions that handle the actual event processing in this Library are owned and maintained by Amazon Web Services. This CDK Construct library provides a thin deployment wrapper for these functions. Changes made to the S3 location of the functions will break this library. Until I have a way to deterministically track where these things are, please raise an issue if you have reason to believe that the functions have moved.

AWS Documentation

See here for additional information.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file a-bigelow.cdk-eventbridge-partner-processors-0.0.30.tar.gz.

File metadata

File hashes

Hashes for a-bigelow.cdk-eventbridge-partner-processors-0.0.30.tar.gz
Algorithm Hash digest
SHA256 df1b5b0554f2023c9b17a817a357c56188c330bef5ff508f00b30c51f610072f
MD5 597bf2c628b64e1e1e7650eb6ea0425b
BLAKE2b-256 78927d013d9eff8f9aeddc6a3692f3db12a3b00e93b9d055e4f37d1134eafefe

See more details on using hashes here.

File details

Details for the file a_bigelow.cdk_eventbridge_partner_processors-0.0.30-py3-none-any.whl.

File metadata

File hashes

Hashes for a_bigelow.cdk_eventbridge_partner_processors-0.0.30-py3-none-any.whl
Algorithm Hash digest
SHA256 eb6017112f0dd5eba42c6ba8dfe2f92fdf536abb9e03178159205b03fd589334
MD5 fc3f867cb8e62bcadc2d8bb898e431b0
BLAKE2b-256 a8f3d9bd5ef6d3e3328f0d4d14639427dca8d352d92572d769e2a99ae2bb9d5b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page