Create, update and delete contentful webhooks with your app deployment
Project description
@cloudcomponents/cdk-contentful-webhook
Create, update and delete contentful webhooks with your app deployment
Install
TypeScript/JavaScript:
npm i @cloudcomponents/cdk-contentful-webhook
Python:
pip install cloudcomponents.cdk-contentful-webhook
How to use
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
from aws_cdk.core import Construct, Stack, StackProps
from aws_cdk.aws_apigateway import RestApi
from cloudcomponents.cdk_contentful_webhook import ContentfulWebhook
class ContentfulWebhookStack(Stack):
def __init__(self, scope, id, *, description=None, env=None, stackName=None, tags=None, synthesizer=None, terminationProtection=None, analyticsReporting=None):
super().__init__(scope, id, description=description, env=env, stackName=stackName, tags=tags, synthesizer=synthesizer, terminationProtection=terminationProtection, analyticsReporting=analyticsReporting)
api = RestApi(self, "Endpoint")
api.root.add_method("POST")
access_token = process.env.ACCESS_TOKEN
space_id = process.env.SPACE_ID
topics = ["Entry.create"]
ContentfulWebhook(self, "ContentfulWebhook",
access_token=access_token,
space_id=space_id,
name="ExampleWebhook",
url=api.url,
topics=topics,
log_level="debug"
)
API Reference
See API.md.
Example
See more complete examples.
License
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
Close
Hashes for cloudcomponents.cdk-contentful-webhook-1.2.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d4fed49bf0bd40ae5958411fd60e1f4cb4ed5258a11f1e23f37ed770d151f98 |
|
MD5 | 1caf8fd9b49effeacec6cadd6cf2c36f |
|
BLAKE2b-256 | 0db5ecd58178a32e2f27220bd4481a77c9853146fd463bc2790d7e1cf94f60f6 |
Close
Hashes for cloudcomponents.cdk_contentful_webhook-1.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 927d625d77ea667833944a5ff25d8c1ebc88bc65afd75f89ad660239b284e131 |
|
MD5 | 369aa3eaa730fdaa6a8df766db9f8b0a |
|
BLAKE2b-256 | 1e8825d88d24b920637add9aab7cf1f84fdb62e8f3321a6e8c601c04e13f74de |