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):
super().__init__(scope, id, description=description, env=env, stackName=stackName, tags=tags, synthesizer=synthesizer, terminationProtection=terminationProtection)
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.52.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | db4f3b41d04e3c9a3fa60e05e516c9a164200f9a1ba94804c208a8e72c1143cd |
|
MD5 | 1ad9ea0bc3e4726740ab368998424237 |
|
BLAKE2b-256 | f2c2074ded343cb30a6637d15d76ecb02cb0dc1ada6b0dda1724239533ecd9f2 |
Close
Hashes for cloudcomponents.cdk_contentful_webhook-1.0.52-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75d2e33417fc56bfb216be8c9e506b647b5b42108d25d531aafedf517d297bfe |
|
MD5 | 99c7c060a9b88d26e7ceee5d014587b5 |
|
BLAKE2b-256 | df0a55ef9f81ba9f48f126e92b49474a64d475489b84e4ff1ee8a4ec4cbc167a |