cdk-cloudfront-plus
CDK constructs library that allows you to build AWS CloudFront Extensions in JavaScript, TypeScript or Python.
Sample
# Example automatically generated from non-compiling source. May contain errors.
import * as cfplus from 'cdk-cloudfront-plus';
const app = new cdk.App();
const stack = new cdk.Stack(app, 'demo-stack');
// prepare the `modify resonse header` extension
const modifyRespHeader = new extensions.ModifyResponseHeader(stack, 'ModifyResp');
// prepare the `anti-hotlinking` extension
const antiHotlinking = new extensions.AntiHotlinking(stack, 'AntiHotlink', {
referer: [
'example.com',
'exa?ple.*',
],
});
// create the cloudfront distribution with extension(s)
new Distribution(stack, 'dist', {
defaultBehavior: {
origin: new origins.HttpOrigin('aws.amazon.com'),
edgeLambdas: [
modifyRespHeader,
antiHotlinking,
],
},
});
Available Extensions in AWS CDK
| Extension Name | Category | Solution ID | Function/Folder Name | Status | Contributor |
|---|---|---|---|---|---|
| Access Origin by geolocation | Origin Selection | SO8118 | cf-access-origin-by-geolocation | Completed | @pahud PR#52 |
| Redirect by geolocation | Origin Selection | SO8135 | cf-redirect-by-geolocation | Completed | @minche-tsai PR#50 |
| Convert Query String | Override Request | SO8113 | cf-convert-query-string | Completed | @HsiehShuJeng PR#53 |
| OAuth2 Authentication | Authentication | SO8131 | cf-authentication-by-oauth2 | Completed | @dwchiang PR#59 |
| Cognito Redirect | Authentication | SO8132 | cf-authentication-by-cognito-redirect | WIP(BabooPan) | - |
| Global Data Ingestion | Logging | SO8133 | cf-global-data-ingestion | Completed | @titanjer PR#62 |
| HTTP 302 from Origin | URL Redirect | SO8103 | cf-http302-from-origin | Completed | @RicoToothless PR#71 |
| Default Directory Index for Amazon S3 Origin | URL Redirect | SO8134 | cf-default-dir-index | Completed | @guan840912 PR#21 |
| Modify Response Header | Header Rewrite | SO8105 | cf-modify-response-header | Completed | @pahud PR#45 |
| Custom Error Page | Header Rewrite | SO8136 | cf-custom-error-page | Completed | @BabooPan PR#46 |
| Anti Hotlinking | Security | SO8126 | cf-anti-hotlinking | Completed | @pahud PR#2 |
| Add Security Headers | Security | SO8102 | cf-add-security-headers | Completed | @pahud PR#7 |
| Failover to alternative origin | Origin Selection | SO8120 | cf-multiple-origin-ip-retry | Completed | @guan840912 PR#58 |
| Normalize Query String | Override Request | SO8112 | cf-normalize-query-string | Completed | @benkajaja PR#64 |
Metadata
Release files for cdk-cloudfront-plus 0.3.172
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cdk-cloudfront-plus-0.3.172.tar.gz | 3.3 MB | Without provenance | Details for cdk-cloudfront-plus-0.3.172.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cdk_cloudfront_plus-0.3.172-py3-none-any.whl | Python 3 | none | any | Details for cdk_cloudfront_plus-0.3.172-py3-none-any.whl |
Total release size: 6.7 MB
Release files / cdk-cloudfront-plus-0.3.172.tar.gz
| Download URL | cdk-cloudfront-plus-0.3.172.tar.gz |
|---|---|
| Size | 3.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d66f6311d8ed2faa315641e91dda4d117ec5d15b1c5d314cabaf2dcd40b06a3c
|
|
BLAKE2b-256 checksum How to use checksums |
8538e0f7c79f0cee5b9f781068534ed78321624d8ba949e89068ab7da39af1de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3
|
Release files / cdk_cloudfront_plus-0.3.172-py3-none-any.whl
| Download URL | cdk_cloudfront_plus-0.3.172-py3-none-any.whl |
|---|---|
| Size | 3.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
98a10ec2bda388a6a1cec062f8e014a4861daf81910168c54e24179d3be062e5
|
|
BLAKE2b-256 checksum How to use checksums |
ae7e2a588d9e72c3e8e74497e747dccbb092092183241e32c897212f57691ef7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3
|
Security for cdk-cloudfront-plus 0.3.172
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.