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.2.tar.gz
(53.1 kB
view hashes)
Built Distribution
Close
Hashes for cdk-cloudfront-plus-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54821b0f594ea51ea9870ef4fad0545b97a08f43e1fca0e4d715cbfdb45beee6 |
|
MD5 | 1bfb9bd42715bf9b30dcfa60b05231fc |
|
BLAKE2b-256 | 5306cf5d7bd06075bcfb0afed361627ae85b87008ae28eb66649c30e0dc44ab3 |
Close
Hashes for cdk_cloudfront_plus-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b924c8678a0242d245eaff492a941945d9aa8e30883646aa5e619ef87422235 |
|
MD5 | 4cc99c2a0676800d06f07ca0c73cab4a |
|
BLAKE2b-256 | 2fb5a4c1a4f0f4488765d7db245f2ce6826cb00de541215a4ab245926b10913c |