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.25.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0049e94d43366dc48ecdc742056a08c7d01beb32688412ed30489d705557fdb8 |
|
MD5 | f8e4648fbb7613cbbdbb2851f02887c9 |
|
BLAKE2b-256 | a67f87809c8c2c2d217771d78376ccd26edeac6d520cde6b55970c19c0218517 |
Close
Hashes for cloudcomponents.cdk_contentful_webhook-1.25.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62719b4f573328ecd6abd42ef7d0ee29b936dd447d08e93601a98aeb59150e2c |
|
MD5 | 1609388bfd2fc4d2048e0882fa20bc49 |
|
BLAKE2b-256 | b4bb438aa3d7afe1854e21124192e9f0aac93f374452d05e34f3612426bed904 |