cloudstructs 0.9.2__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.2/src/cloudstructs.egg-info → cloudstructs-0.9.3}/PKG-INFO +1 -1
- {cloudstructs-0.9.2 → cloudstructs-0.9.3}/setup.py +2 -2
- {cloudstructs-0.9.2 → cloudstructs-0.9.3}/src/cloudstructs/__init__.py +22 -0
- {cloudstructs-0.9.2 → cloudstructs-0.9.3}/src/cloudstructs/_jsii/__init__.py +1 -1
- cloudstructs-0.9.3/src/cloudstructs/_jsii/cloudstructs@0.9.3.jsii.tgz +0 -0
- {cloudstructs-0.9.2 → cloudstructs-0.9.3/src/cloudstructs.egg-info}/PKG-INFO +1 -1
- {cloudstructs-0.9.2 → cloudstructs-0.9.3}/src/cloudstructs.egg-info/SOURCES.txt +1 -1
- cloudstructs-0.9.2/src/cloudstructs/_jsii/cloudstructs@0.9.2.jsii.tgz +0 -0
- {cloudstructs-0.9.2 → cloudstructs-0.9.3}/LICENSE +0 -0
- {cloudstructs-0.9.2 → cloudstructs-0.9.3}/MANIFEST.in +0 -0
- {cloudstructs-0.9.2 → cloudstructs-0.9.3}/README.md +0 -0
- {cloudstructs-0.9.2 → cloudstructs-0.9.3}/pyproject.toml +0 -0
- {cloudstructs-0.9.2 → cloudstructs-0.9.3}/setup.cfg +0 -0
- {cloudstructs-0.9.2 → cloudstructs-0.9.3}/src/cloudstructs/py.typed +0 -0
- {cloudstructs-0.9.2 → cloudstructs-0.9.3}/src/cloudstructs.egg-info/dependency_links.txt +0 -0
- {cloudstructs-0.9.2 → cloudstructs-0.9.3}/src/cloudstructs.egg-info/requires.txt +0 -0
- {cloudstructs-0.9.2 → 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"
|
|
@@ -3045,6 +3045,7 @@ class StaticWebsite(
|
|
|
3045
3045
|
domain_name: builtins.str,
|
|
3046
3046
|
hosted_zone: _aws_cdk_aws_route53_ceddda9d.IHostedZone,
|
|
3047
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,
|
|
3048
3049
|
redirects: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
3049
3050
|
response_headers_policy: typing.Optional[_aws_cdk_aws_cloudfront_ceddda9d.ResponseHeadersPolicy] = None,
|
|
3050
3051
|
) -> None:
|
|
@@ -3054,6 +3055,7 @@ class StaticWebsite(
|
|
|
3054
3055
|
:param domain_name: The domain name for this static website.
|
|
3055
3056
|
:param hosted_zone: The hosted zone where records should be added.
|
|
3056
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
|
|
3057
3059
|
:param redirects: A list of domain names that should redirect to ``domainName``. Default: - the domain name of the hosted zone
|
|
3058
3060
|
:param response_headers_policy: Response headers policy for the default behavior. Default: - a new policy is created with best practice security headers
|
|
3059
3061
|
'''
|
|
@@ -3065,6 +3067,7 @@ class StaticWebsite(
|
|
|
3065
3067
|
domain_name=domain_name,
|
|
3066
3068
|
hosted_zone=hosted_zone,
|
|
3067
3069
|
backend_configuration=backend_configuration,
|
|
3070
|
+
edge_lambdas=edge_lambdas,
|
|
3068
3071
|
redirects=redirects,
|
|
3069
3072
|
response_headers_policy=response_headers_policy,
|
|
3070
3073
|
)
|
|
@@ -3109,6 +3112,7 @@ class StaticWebsite(
|
|
|
3109
3112
|
"domain_name": "domainName",
|
|
3110
3113
|
"hosted_zone": "hostedZone",
|
|
3111
3114
|
"backend_configuration": "backendConfiguration",
|
|
3115
|
+
"edge_lambdas": "edgeLambdas",
|
|
3112
3116
|
"redirects": "redirects",
|
|
3113
3117
|
"response_headers_policy": "responseHeadersPolicy",
|
|
3114
3118
|
},
|
|
@@ -3120,6 +3124,7 @@ class StaticWebsiteProps:
|
|
|
3120
3124
|
domain_name: builtins.str,
|
|
3121
3125
|
hosted_zone: _aws_cdk_aws_route53_ceddda9d.IHostedZone,
|
|
3122
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,
|
|
3123
3128
|
redirects: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
3124
3129
|
response_headers_policy: typing.Optional[_aws_cdk_aws_cloudfront_ceddda9d.ResponseHeadersPolicy] = None,
|
|
3125
3130
|
) -> None:
|
|
@@ -3128,6 +3133,7 @@ class StaticWebsiteProps:
|
|
|
3128
3133
|
:param domain_name: The domain name for this static website.
|
|
3129
3134
|
:param hosted_zone: The hosted zone where records should be added.
|
|
3130
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
|
|
3131
3137
|
:param redirects: A list of domain names that should redirect to ``domainName``. Default: - the domain name of the hosted zone
|
|
3132
3138
|
:param response_headers_policy: Response headers policy for the default behavior. Default: - a new policy is created with best practice security headers
|
|
3133
3139
|
'''
|
|
@@ -3136,6 +3142,7 @@ class StaticWebsiteProps:
|
|
|
3136
3142
|
check_type(argname="argument domain_name", value=domain_name, expected_type=type_hints["domain_name"])
|
|
3137
3143
|
check_type(argname="argument hosted_zone", value=hosted_zone, expected_type=type_hints["hosted_zone"])
|
|
3138
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"])
|
|
3139
3146
|
check_type(argname="argument redirects", value=redirects, expected_type=type_hints["redirects"])
|
|
3140
3147
|
check_type(argname="argument response_headers_policy", value=response_headers_policy, expected_type=type_hints["response_headers_policy"])
|
|
3141
3148
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
@@ -3144,6 +3151,8 @@ class StaticWebsiteProps:
|
|
|
3144
3151
|
}
|
|
3145
3152
|
if backend_configuration is not None:
|
|
3146
3153
|
self._values["backend_configuration"] = backend_configuration
|
|
3154
|
+
if edge_lambdas is not None:
|
|
3155
|
+
self._values["edge_lambdas"] = edge_lambdas
|
|
3147
3156
|
if redirects is not None:
|
|
3148
3157
|
self._values["redirects"] = redirects
|
|
3149
3158
|
if response_headers_policy is not None:
|
|
@@ -3181,6 +3190,17 @@ class StaticWebsiteProps:
|
|
|
3181
3190
|
result = self._values.get("backend_configuration")
|
|
3182
3191
|
return typing.cast(typing.Any, result)
|
|
3183
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
|
+
|
|
3184
3204
|
@builtins.property
|
|
3185
3205
|
def redirects(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
3186
3206
|
'''A list of domain names that should redirect to ``domainName``.
|
|
@@ -4020,6 +4040,7 @@ def _typecheckingstub__5c6cce44b6a8e2d4fefe372623c811f7e7e92ce467f8e830604203b6e
|
|
|
4020
4040
|
domain_name: builtins.str,
|
|
4021
4041
|
hosted_zone: _aws_cdk_aws_route53_ceddda9d.IHostedZone,
|
|
4022
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,
|
|
4023
4044
|
redirects: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
4024
4045
|
response_headers_policy: typing.Optional[_aws_cdk_aws_cloudfront_ceddda9d.ResponseHeadersPolicy] = None,
|
|
4025
4046
|
) -> None:
|
|
@@ -4037,6 +4058,7 @@ def _typecheckingstub__4daf76d01dee77dafb229e369b86df1b96ef0477a43bf4df595b7453b
|
|
|
4037
4058
|
domain_name: builtins.str,
|
|
4038
4059
|
hosted_zone: _aws_cdk_aws_route53_ceddda9d.IHostedZone,
|
|
4039
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,
|
|
4040
4062
|
redirects: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
4041
4063
|
response_headers_policy: typing.Optional[_aws_cdk_aws_cloudfront_ceddda9d.ResponseHeadersPolicy] = None,
|
|
4042
4064
|
) -> None:
|
|
@@ -17,7 +17,7 @@ import aws_cdk._jsii
|
|
|
17
17
|
import constructs._jsii
|
|
18
18
|
|
|
19
19
|
__jsii_assembly__ = jsii.JSIIAssembly.load(
|
|
20
|
-
"cloudstructs", "0.9.
|
|
20
|
+
"cloudstructs", "0.9.3", __name__[0:-6], "cloudstructs@0.9.3.jsii.tgz"
|
|
21
21
|
)
|
|
22
22
|
|
|
23
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
|
|
File without changes
|