cloudstructs 0.9.1__tar.gz → 0.9.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cloudstructs-0.9.1/src/cloudstructs.egg-info → cloudstructs-0.9.3}/PKG-INFO +1 -1
- {cloudstructs-0.9.1 → cloudstructs-0.9.3}/setup.py +3 -3
- {cloudstructs-0.9.1 → cloudstructs-0.9.3}/src/cloudstructs/__init__.py +25 -0
- {cloudstructs-0.9.1 → cloudstructs-0.9.3}/src/cloudstructs/_jsii/__init__.py +4 -1
- cloudstructs-0.9.3/src/cloudstructs/_jsii/cloudstructs@0.9.3.jsii.tgz +0 -0
- {cloudstructs-0.9.1 → cloudstructs-0.9.3/src/cloudstructs.egg-info}/PKG-INFO +1 -1
- {cloudstructs-0.9.1 → cloudstructs-0.9.3}/src/cloudstructs.egg-info/SOURCES.txt +1 -1
- {cloudstructs-0.9.1 → cloudstructs-0.9.3}/src/cloudstructs.egg-info/requires.txt +1 -1
- cloudstructs-0.9.1/src/cloudstructs/_jsii/cloudstructs@0.9.1.jsii.tgz +0 -0
- {cloudstructs-0.9.1 → cloudstructs-0.9.3}/LICENSE +0 -0
- {cloudstructs-0.9.1 → cloudstructs-0.9.3}/MANIFEST.in +0 -0
- {cloudstructs-0.9.1 → cloudstructs-0.9.3}/README.md +0 -0
- {cloudstructs-0.9.1 → cloudstructs-0.9.3}/pyproject.toml +0 -0
- {cloudstructs-0.9.1 → cloudstructs-0.9.3}/setup.cfg +0 -0
- {cloudstructs-0.9.1 → cloudstructs-0.9.3}/src/cloudstructs/py.typed +0 -0
- {cloudstructs-0.9.1 → cloudstructs-0.9.3}/src/cloudstructs.egg-info/dependency_links.txt +0 -0
- {cloudstructs-0.9.1 → cloudstructs-0.9.3}/src/cloudstructs.egg-info/top_level.txt +0 -0
|
@@ -5,7 +5,7 @@ kwargs = json.loads(
|
|
|
5
5
|
"""
|
|
6
6
|
{
|
|
7
7
|
"name": "cloudstructs",
|
|
8
|
-
"version": "0.9.
|
|
8
|
+
"version": "0.9.3",
|
|
9
9
|
"description": "High-level constructs for AWS CDK",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"url": "https://github.com/jogold/cloudstructs.git",
|
|
@@ -26,7 +26,7 @@ kwargs = json.loads(
|
|
|
26
26
|
],
|
|
27
27
|
"package_data": {
|
|
28
28
|
"cloudstructs._jsii": [
|
|
29
|
-
"cloudstructs@0.9.
|
|
29
|
+
"cloudstructs@0.9.3.jsii.tgz"
|
|
30
30
|
],
|
|
31
31
|
"cloudstructs": [
|
|
32
32
|
"py.typed"
|
|
@@ -36,7 +36,7 @@ kwargs = json.loads(
|
|
|
36
36
|
"install_requires": [
|
|
37
37
|
"aws-cdk-lib>=2.133.0, <3.0.0",
|
|
38
38
|
"constructs>=10.0.5, <11.0.0",
|
|
39
|
-
"jsii>=1.
|
|
39
|
+
"jsii>=1.96.0, <2.0.0",
|
|
40
40
|
"publication>=0.0.3",
|
|
41
41
|
"typeguard~=2.13.3"
|
|
42
42
|
],
|
|
@@ -32,6 +32,9 @@ Version >= 0.2.0 requires AWS CDK v2.
|
|
|
32
32
|
Toolkit.
|
|
33
33
|
* [`UrlShortener`](src/url-shortener) Deploy an URL shortener API
|
|
34
34
|
'''
|
|
35
|
+
from pkgutil import extend_path
|
|
36
|
+
__path__ = extend_path(__path__, __name__)
|
|
37
|
+
|
|
35
38
|
import abc
|
|
36
39
|
import builtins
|
|
37
40
|
import datetime
|
|
@@ -3042,6 +3045,7 @@ class StaticWebsite(
|
|
|
3042
3045
|
domain_name: builtins.str,
|
|
3043
3046
|
hosted_zone: _aws_cdk_aws_route53_ceddda9d.IHostedZone,
|
|
3044
3047
|
backend_configuration: typing.Any = None,
|
|
3048
|
+
edge_lambdas: typing.Optional[typing.Sequence[typing.Union[_aws_cdk_aws_cloudfront_ceddda9d.EdgeLambda, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3045
3049
|
redirects: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
3046
3050
|
response_headers_policy: typing.Optional[_aws_cdk_aws_cloudfront_ceddda9d.ResponseHeadersPolicy] = None,
|
|
3047
3051
|
) -> None:
|
|
@@ -3051,6 +3055,7 @@ class StaticWebsite(
|
|
|
3051
3055
|
:param domain_name: The domain name for this static website.
|
|
3052
3056
|
:param hosted_zone: The hosted zone where records should be added.
|
|
3053
3057
|
:param backend_configuration: A backend configuration that will be saved as ``config.json`` in the S3 bucket of the static website. The frontend can query this config by doing ``fetch('/config.json')``.
|
|
3058
|
+
:param edge_lambdas: The Lambda@Edge functions to invoke before serving the contents. Default: - an origin request function that redirects all requests for a path to /index.html
|
|
3054
3059
|
:param redirects: A list of domain names that should redirect to ``domainName``. Default: - the domain name of the hosted zone
|
|
3055
3060
|
:param response_headers_policy: Response headers policy for the default behavior. Default: - a new policy is created with best practice security headers
|
|
3056
3061
|
'''
|
|
@@ -3062,6 +3067,7 @@ class StaticWebsite(
|
|
|
3062
3067
|
domain_name=domain_name,
|
|
3063
3068
|
hosted_zone=hosted_zone,
|
|
3064
3069
|
backend_configuration=backend_configuration,
|
|
3070
|
+
edge_lambdas=edge_lambdas,
|
|
3065
3071
|
redirects=redirects,
|
|
3066
3072
|
response_headers_policy=response_headers_policy,
|
|
3067
3073
|
)
|
|
@@ -3106,6 +3112,7 @@ class StaticWebsite(
|
|
|
3106
3112
|
"domain_name": "domainName",
|
|
3107
3113
|
"hosted_zone": "hostedZone",
|
|
3108
3114
|
"backend_configuration": "backendConfiguration",
|
|
3115
|
+
"edge_lambdas": "edgeLambdas",
|
|
3109
3116
|
"redirects": "redirects",
|
|
3110
3117
|
"response_headers_policy": "responseHeadersPolicy",
|
|
3111
3118
|
},
|
|
@@ -3117,6 +3124,7 @@ class StaticWebsiteProps:
|
|
|
3117
3124
|
domain_name: builtins.str,
|
|
3118
3125
|
hosted_zone: _aws_cdk_aws_route53_ceddda9d.IHostedZone,
|
|
3119
3126
|
backend_configuration: typing.Any = None,
|
|
3127
|
+
edge_lambdas: typing.Optional[typing.Sequence[typing.Union[_aws_cdk_aws_cloudfront_ceddda9d.EdgeLambda, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3120
3128
|
redirects: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
3121
3129
|
response_headers_policy: typing.Optional[_aws_cdk_aws_cloudfront_ceddda9d.ResponseHeadersPolicy] = None,
|
|
3122
3130
|
) -> None:
|
|
@@ -3125,6 +3133,7 @@ class StaticWebsiteProps:
|
|
|
3125
3133
|
:param domain_name: The domain name for this static website.
|
|
3126
3134
|
:param hosted_zone: The hosted zone where records should be added.
|
|
3127
3135
|
:param backend_configuration: A backend configuration that will be saved as ``config.json`` in the S3 bucket of the static website. The frontend can query this config by doing ``fetch('/config.json')``.
|
|
3136
|
+
:param edge_lambdas: The Lambda@Edge functions to invoke before serving the contents. Default: - an origin request function that redirects all requests for a path to /index.html
|
|
3128
3137
|
:param redirects: A list of domain names that should redirect to ``domainName``. Default: - the domain name of the hosted zone
|
|
3129
3138
|
:param response_headers_policy: Response headers policy for the default behavior. Default: - a new policy is created with best practice security headers
|
|
3130
3139
|
'''
|
|
@@ -3133,6 +3142,7 @@ class StaticWebsiteProps:
|
|
|
3133
3142
|
check_type(argname="argument domain_name", value=domain_name, expected_type=type_hints["domain_name"])
|
|
3134
3143
|
check_type(argname="argument hosted_zone", value=hosted_zone, expected_type=type_hints["hosted_zone"])
|
|
3135
3144
|
check_type(argname="argument backend_configuration", value=backend_configuration, expected_type=type_hints["backend_configuration"])
|
|
3145
|
+
check_type(argname="argument edge_lambdas", value=edge_lambdas, expected_type=type_hints["edge_lambdas"])
|
|
3136
3146
|
check_type(argname="argument redirects", value=redirects, expected_type=type_hints["redirects"])
|
|
3137
3147
|
check_type(argname="argument response_headers_policy", value=response_headers_policy, expected_type=type_hints["response_headers_policy"])
|
|
3138
3148
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
@@ -3141,6 +3151,8 @@ class StaticWebsiteProps:
|
|
|
3141
3151
|
}
|
|
3142
3152
|
if backend_configuration is not None:
|
|
3143
3153
|
self._values["backend_configuration"] = backend_configuration
|
|
3154
|
+
if edge_lambdas is not None:
|
|
3155
|
+
self._values["edge_lambdas"] = edge_lambdas
|
|
3144
3156
|
if redirects is not None:
|
|
3145
3157
|
self._values["redirects"] = redirects
|
|
3146
3158
|
if response_headers_policy is not None:
|
|
@@ -3178,6 +3190,17 @@ class StaticWebsiteProps:
|
|
|
3178
3190
|
result = self._values.get("backend_configuration")
|
|
3179
3191
|
return typing.cast(typing.Any, result)
|
|
3180
3192
|
|
|
3193
|
+
@builtins.property
|
|
3194
|
+
def edge_lambdas(
|
|
3195
|
+
self,
|
|
3196
|
+
) -> typing.Optional[typing.List[_aws_cdk_aws_cloudfront_ceddda9d.EdgeLambda]]:
|
|
3197
|
+
'''The Lambda@Edge functions to invoke before serving the contents.
|
|
3198
|
+
|
|
3199
|
+
:default: - an origin request function that redirects all requests for a path to /index.html
|
|
3200
|
+
'''
|
|
3201
|
+
result = self._values.get("edge_lambdas")
|
|
3202
|
+
return typing.cast(typing.Optional[typing.List[_aws_cdk_aws_cloudfront_ceddda9d.EdgeLambda]], result)
|
|
3203
|
+
|
|
3181
3204
|
@builtins.property
|
|
3182
3205
|
def redirects(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
3183
3206
|
'''A list of domain names that should redirect to ``domainName``.
|
|
@@ -4017,6 +4040,7 @@ def _typecheckingstub__5c6cce44b6a8e2d4fefe372623c811f7e7e92ce467f8e830604203b6e
|
|
|
4017
4040
|
domain_name: builtins.str,
|
|
4018
4041
|
hosted_zone: _aws_cdk_aws_route53_ceddda9d.IHostedZone,
|
|
4019
4042
|
backend_configuration: typing.Any = None,
|
|
4043
|
+
edge_lambdas: typing.Optional[typing.Sequence[typing.Union[_aws_cdk_aws_cloudfront_ceddda9d.EdgeLambda, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4020
4044
|
redirects: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
4021
4045
|
response_headers_policy: typing.Optional[_aws_cdk_aws_cloudfront_ceddda9d.ResponseHeadersPolicy] = None,
|
|
4022
4046
|
) -> None:
|
|
@@ -4034,6 +4058,7 @@ def _typecheckingstub__4daf76d01dee77dafb229e369b86df1b96ef0477a43bf4df595b7453b
|
|
|
4034
4058
|
domain_name: builtins.str,
|
|
4035
4059
|
hosted_zone: _aws_cdk_aws_route53_ceddda9d.IHostedZone,
|
|
4036
4060
|
backend_configuration: typing.Any = None,
|
|
4061
|
+
edge_lambdas: typing.Optional[typing.Sequence[typing.Union[_aws_cdk_aws_cloudfront_ceddda9d.EdgeLambda, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4037
4062
|
redirects: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
4038
4063
|
response_headers_policy: typing.Optional[_aws_cdk_aws_cloudfront_ceddda9d.ResponseHeadersPolicy] = None,
|
|
4039
4064
|
) -> None:
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
from pkgutil import extend_path
|
|
2
|
+
__path__ = extend_path(__path__, __name__)
|
|
3
|
+
|
|
1
4
|
import abc
|
|
2
5
|
import builtins
|
|
3
6
|
import datetime
|
|
@@ -14,7 +17,7 @@ import aws_cdk._jsii
|
|
|
14
17
|
import constructs._jsii
|
|
15
18
|
|
|
16
19
|
__jsii_assembly__ = jsii.JSIIAssembly.load(
|
|
17
|
-
"cloudstructs", "0.9.
|
|
20
|
+
"cloudstructs", "0.9.3", __name__[0:-6], "cloudstructs@0.9.3.jsii.tgz"
|
|
18
21
|
)
|
|
19
22
|
|
|
20
23
|
__all__ = [
|
|
Binary file
|
|
@@ -11,4 +11,4 @@ src/cloudstructs.egg-info/dependency_links.txt
|
|
|
11
11
|
src/cloudstructs.egg-info/requires.txt
|
|
12
12
|
src/cloudstructs.egg-info/top_level.txt
|
|
13
13
|
src/cloudstructs/_jsii/__init__.py
|
|
14
|
-
src/cloudstructs/_jsii/cloudstructs@0.9.
|
|
14
|
+
src/cloudstructs/_jsii/cloudstructs@0.9.3.jsii.tgz
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|