CDK construct library for CloudFront Extensions
Project description
cdk-cloudfront-plus
CDK constructs library that allows you to build AWS CloudFront Extensions in JavaScript, TypeScript or Python.
Sample
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
import cdk_cloudfront_plus as cfplus
app = cdk.App()
stack = cdk.Stack(app, "demo-stack")
# prepare the extension
my_extension = cfplus.ModifyResponseHeader(stack, "myext")
# create the cloudfront distribution with extension(s)
cfplus.Distribution(stack, "dist",
default_behavior={
"origin": origins.HttpOrigin("aws.amazon.com"),
"edge_lambdas": [my_extension
]
}
)
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
cdk-cloudfront-plus-0.1.0.tar.gz
(53.1 kB
view hashes)
Built Distribution
Close
Hashes for cdk-cloudfront-plus-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20f6b7949b5673f3eea61f77dc25a06ea2d1254668e232680212768746c3d9b6 |
|
MD5 | 1ed002db46574a5bd7217836328bfca9 |
|
BLAKE2b-256 | aeae07af592e6d67680bf0087c869095e4378c13c6b112d1d0d881a1c6016a65 |
Close
Hashes for cdk_cloudfront_plus-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97fa9e6988f88b465dcd78d972e88a57cfbb66723a3f7fabd9738a50aca0af75 |
|
MD5 | 605880d9f94cc4f55c81db4c6307884c |
|
BLAKE2b-256 | 47f9b6fc3b38a05cd75beb49be64945c26709e016746371aa29e88a5b35b267d |