How to use @cloudcomponents/cdk-contentful-webhook - 1 common examples

To help you get started, we’ve selected a few @cloudcomponents/cdk-contentful-webhook examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cloudcomponents / cdk-components / examples / contentful-webhook-example / src / contentful-webhook-stack.ts View on Github external
public constructor(scope: App, id: string, props?: StackProps) {
        super(scope, id, props);

        const api = new RestApi(this, 'Endpoint');
        api.root.addMethod('POST');

        const accessToken = process.env.ACCESS_TOKEN as string;

        const spaceId = process.env.SPACE_ID as string;

        const topics = ['Entry.create'];

        new ContentfulWebhook(this, 'ContentfulWebhook', {
            accessToken,
            spaceId,
            name: 'ExampleWebhook',
            url: api.url,
            topics,
            logLevel: 'debug',
        });
    }
}

@cloudcomponents/cdk-contentful-webhook

Create, update and delete contentful webhooks with your app deployment

MIT
Latest version published 6 months ago

Package Health Score

61 / 100
Full package analysis

Popular @cloudcomponents/cdk-contentful-webhook functions