cdk-cloudfront-plus-0.3.99
0.3.99
0.3.98
0.3.97
0.3.96
0.3.95
0.3.94
0.3.93
0.3.92
0.3.91
0.3.90
0.3.9
0.3.89
0.3.88
0.3.87
0.3.86
0.3.85
0.3.84
0.3.83
0.3.82
0.3.81
0.3.80
0.3.8
0.3.79
0.3.78
0.3.77
0.3.76
0.3.75
0.3.74
0.3.73
0.3.72
0.3.71
0.3.70
0.3.7
0.3.69
0.3.68
0.3.67
0.3.66
0.3.65
0.3.64
0.3.63
0.3.62
0.3.61
0.3.60
0.3.6
0.3.59
0.3.58
0.3.57
0.3.56
0.3.55
0.3.54
0.3.53
0.3.52
0.3.51
0.3.50
0.3.5
0.3.49
0.3.48
0.3.47
0.3.46
0.3.45
0.3.44
0.3.43
0.3.42
0.3.41
0.3.40
0.3.4
0.3.39
0.3.38
0.3.37
0.3.36
0.3.35
0.3.34
0.3.33
0.3.32
0.3.31
0.3.30
0.3.3
0.3.29
0.3.28
0.3.27
0.3.26
0.3.25
0.3.24
0.3.23
0.3.22
0.3.21
0.3.20
0.3.2
0.3.19
0.3.18
0.3.172
0.3.171
0.3.170
0.3.17
0.3.169
0.3.168
0.3.167
0.3.166
0.3.165
0.3.164
0.3.163
0.3.162
0.3.161
0.3.160
0.3.16
0.3.159
0.3.158
0.3.157
0.3.156
0.3.155
0.3.154
0.3.153
0.3.152
0.3.151
0.3.150
0.3.15
0.3.149
0.3.148
0.3.147
0.3.146
0.3.145
0.3.144
0.3.143
0.3.142
0.3.141
0.3.140
0.3.14
0.3.139
0.3.138
0.3.137
0.3.136
0.3.135
0.3.134
0.3.133
0.3.132
0.3.131
0.3.130
0.3.13
0.3.129
0.3.128
0.3.127
0.3.126
0.3.125
0.3.124
0.3.123
0.3.122
0.3.121
0.3.120
0.3.12
0.3.119
0.3.118
0.3.117
0.3.116
0.3.115
0.3.114
0.3.113
0.3.112
0.3.111
0.3.110
0.3.11
0.3.109
0.3.108
0.3.107
0.3.106
0.3.105
0.3.104
0.3.103
0.3.102
0.3.101
0.3.100
0.3.10
0.3.0
0.2.9
0.2.8
0.2.7
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.11
0.2.10
0.2.1
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.33
0.1.32
0.1.31
0.1.30
0.1.3
0.1.29
0.1.28
0.1.27
0.1.26
0.1.25
0.1.24
0.1.23
0.1.22
0.1.21
0.1.20
0.1.2
0.1.19
0.1.18
0.1.17
0.1.16
0.1.15
0.1.14
0.1.13
0.1.12
0.1.11
0.1.10
0.1.1
0.1.0
0.3.99
0.3.98
0.3.97
0.3.96
0.3.95
0.3.94
0.3.93
0.3.92
0.3.91
0.3.90
0.3.9
0.3.89
0.3.88
0.3.87
0.3.86
0.3.85
0.3.84
0.3.83
0.3.82
0.3.81
0.3.80
0.3.8
0.3.79
0.3.78
0.3.77
0.3.76
0.3.75
0.3.74
0.3.73
0.3.72
0.3.71
0.3.70
0.3.7
0.3.69
0.3.68
0.3.67
0.3.66
0.3.65
0.3.64
0.3.63
0.3.62
0.3.61
0.3.60
0.3.6
0.3.59
0.3.58
0.3.57
0.3.56
0.3.55
0.3.54
0.3.53
0.3.52
0.3.51
0.3.50
0.3.5
0.3.49
0.3.48
0.3.47
0.3.46
0.3.45
0.3.44
0.3.43
0.3.42
0.3.41
0.3.40
0.3.4
0.3.39
0.3.38
0.3.37
0.3.36
0.3.35
0.3.34
0.3.33
0.3.32
0.3.31
0.3.30
0.3.3
0.3.29
0.3.28
0.3.27
0.3.26
0.3.25
0.3.24
0.3.23
0.3.22
0.3.21
0.3.20
0.3.2
0.3.19
0.3.18
0.3.172
0.3.171
0.3.170
0.3.17
0.3.169
0.3.168
0.3.167
0.3.166
0.3.165
0.3.164
0.3.163
0.3.162
0.3.161
0.3.160
0.3.16
0.3.159
0.3.158
0.3.157
0.3.156
0.3.155
0.3.154
0.3.153
0.3.152
0.3.151
0.3.150
0.3.15
0.3.149
0.3.148
0.3.147
0.3.146
0.3.145
0.3.144
0.3.143
0.3.142
0.3.141
0.3.140
0.3.14
0.3.139
0.3.138
0.3.137
0.3.136
0.3.135
0.3.134
0.3.133
0.3.132
0.3.131
0.3.130
0.3.13
0.3.129
0.3.128
0.3.127
0.3.126
0.3.125
0.3.124
0.3.123
0.3.122
0.3.121
0.3.120
0.3.12
0.3.119
0.3.118
0.3.117
0.3.116
0.3.115
0.3.114
0.3.113
0.3.112
0.3.111
0.3.110
0.3.11
0.3.109
0.3.108
0.3.107
0.3.106
0.3.105
0.3.104
0.3.103
0.3.102
0.3.101
0.3.100
0.3.10
0.3.0
0.2.9
0.2.8
0.2.7
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.11
0.2.10
0.2.1
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.33
0.1.32
0.1.31
0.1.30
0.1.3
0.1.29
0.1.28
0.1.27
0.1.26
0.1.25
0.1.24
0.1.23
0.1.22
0.1.21
0.1.20
0.1.2
0.1.19
0.1.18
0.1.17
0.1.16
0.1.15
0.1.14
0.1.13
0.1.12
0.1.11
0.1.10
0.1.1
0.1.0
توضیحات
CDK construct library for CloudFront Extensions
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | cdk-cloudfront-plus-0.3.99 |
| نام | cdk-cloudfront-plus |
| نسخه کتابخانه | 0.3.99 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Pahud Hsieh<pahudnet@gmail.com> |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/pahud/cdk-cloudfront-plus.git |
| آدرس اینترنتی | https://pypi.org/project/cdk-cloudfront-plus/ |
| مجوز | Apache-2.0 |
[](https://badge.fury.io/js/cdk-cloudfront-plus)
[](https://badge.fury.io/py/cdk-cloudfront-plus)

# cdk-cloudfront-plus
CDK constructs library that allows you to build [AWS CloudFront Extensions](https://github.com/awslabs/aws-cloudfront-extensions) in **JavaScript**, **TypeScript** or **Python**.
# Sample
```python
# 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](https://github.com/pahud/cdk-cloudfront-plus/issues/41) | Origin Selection | SO8118 | cf-access-origin-by-geolocation | Completed | @pahud PR#52 |
| [Redirect by geolocation](https://github.com/pahud/cdk-cloudfront-plus/issues/11) | Origin Selection | SO8135 | cf-redirect-by-geolocation | Completed | @minche-tsai PR#50 |
| [Convert Query String](https://github.com/pahud/cdk-cloudfront-plus/issues/23) | Override Request | SO8113 | cf-convert-query-string | Completed | @HsiehShuJeng PR#53 |
| [OAuth2 Authentication](https://github.com/pahud/cdk-cloudfront-plus/issues/17) | Authentication | SO8131 | cf-authentication-by-oauth2 | Completed | @dwchiang PR#59 |
| [Cognito Redirect](https://github.com/pahud/cdk-cloudfront-plus/issues/16) | Authentication | SO8132 | cf-authentication-by-cognito-redirect | WIP(BabooPan) | - |
| [Global Data Ingestion](https://github.com/pahud/cdk-cloudfront-plus/issues/14) | Logging | SO8133 | cf-global-data-ingestion | Completed | @titanjer PR#62 |
| [HTTP 302 from Origin](https://github.com/pahud/cdk-cloudfront-plus/issues/12) | URL Redirect | SO8103 | cf-http302-from-origin | Completed | @RicoToothless PR#71 |
| [Default Directory Index for Amazon S3 Origin](https://github.com/pahud/cdk-cloudfront-plus/issues/9) | URL Redirect | SO8134 | cf-default-dir-index | Completed | @guan840912 PR#21 |
| [Modify Response Header](https://github.com/awslabs/aws-cloudfront-extensions/tree/main/edge/nodejs/modify-response-header) | Header Rewrite | SO8105 | cf-modify-response-header | Completed | @pahud PR#45 |
| [Custom Error Page](https://github.com/pahud/cdk-cloudfront-plus/pull/46)| Header Rewrite | SO8136 | cf-custom-error-page | Completed | @BabooPan PR#46 |
| [Anti Hotlinking](https://github.com/awslabs/aws-cloudfront-extensions/tree/main/edge/nodejs/anti-hotlinking) | Security | SO8126 | cf-anti-hotlinking | Completed | @pahud PR#2 |
| [Add Security Headers](https://github.com/awslabs/aws-cloudfront-extensions/tree/main/edge/nodejs/add-security-headers) | Security | SO8102 | cf-add-security-headers | Completed | @pahud PR#7 |
| [Failover to alternative origin](https://github.com/awslabs/aws-cloudfront-extensions/tree/main/edge/nodejs/multiple-origin-IP-retry) | Origin Selection | SO8120 | cf-multiple-origin-ip-retry | Completed | @guan840912 PR#58 |
| [Normalize Query String](https://github.com/pahud/cdk-cloudfront-plus/pull/64) | Override Request | SO8112 | cf-normalize-query-string | Completed | @benkajaja PR#64 |
نیازمندی
| مقدار | نام |
|---|---|
| <2.0.0,>=1.73.0 | aws-cdk.aws-apigatewayv2-integrations |
| <2.0.0,>=1.73.0 | aws-cdk.aws-apigatewayv2 |
| <2.0.0,>=1.73.0 | aws-cdk.aws-cloudfront-origins |
| <2.0.0,>=1.73.0 | aws-cdk.aws-cloudfront |
| <2.0.0,>=1.73.0 | aws-cdk.aws-iam |
| <2.0.0,>=1.73.0 | aws-cdk.aws-kinesisfirehose |
| <2.0.0,>=1.73.0 | aws-cdk.aws-lambda-nodejs |
| <2.0.0,>=1.73.0 | aws-cdk.aws-lambda |
| <2.0.0,>=1.73.0 | aws-cdk.aws-s3-deployment |
| <2.0.0,>=1.73.0 | aws-cdk.aws-s3 |
| <2.0.0,>=1.73.0 | aws-cdk.aws-sam |
| <2.0.0,>=1.73.0 | aws-cdk.core |
| <4.0.0,>=3.2.27 | constructs |
| <2.0.0,>=1.47.0 | jsii |
| >=0.0.3 | publication |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl cdk-cloudfront-plus-0.3.99:
pip install cdk-cloudfront-plus-0.3.99.whl
نصب پکیج tar.gz cdk-cloudfront-plus-0.3.99:
pip install cdk-cloudfront-plus-0.3.99.tar.gz