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.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | eeb3e2fdab744040cbe2e57827ad38cf78d69a6e4bd4210a300fe0ae30f05bce |
|
MD5 | 8aa11efb4b1c1c1423d70e086fafeda4 |
|
BLAKE2b-256 | e3e8d34dc6548f4efa0c6be0c28c18fa2746e315915a168b580afc41f1152d61 |
Close
Hashes for cloudcomponents.cdk_contentful_webhook-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6efcab6a5b2d9c057a4075872ce803c608f26674753027d482c2000685e7056 |
|
MD5 | d335f2382d0b6186e88934f0c05c974b |
|
BLAKE2b-256 | a79d69a501e2e1a98f333ea1c1015ad3c87db1f0465420af78fff1efde360e36 |