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.0.61.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d450e858faa0e52ef0872cd74e11f44827fe522aaef5201f7425d532361bd714 |
|
MD5 | f6d70aab55f8d4b388b9b479caf1957d |
|
BLAKE2b-256 | 11d46c6c95dd5f77596e71eb56f534a2ce34d5c88f66316e726ea8305b378c4b |
Close
Hashes for cloudcomponents.cdk_contentful_webhook-1.0.61-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1272e6c76af372b3227ecc332468932e6b47172dd38a0e7b38db5ae5fb0b550 |
|
MD5 | 12576cca554d87bd80cbf87de45d7717 |
|
BLAKE2b-256 | 0bb9638cb1640a103405ad1343830458091ed1af1e0ab6bd1a2e1069d965d4c3 |