cloudstructs 0.9.2__tar.gz → 0.9.4__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.4}/PKG-INFO +1 -1
- {cloudstructs-0.9.2 → cloudstructs-0.9.4}/setup.py +2 -2
- {cloudstructs-0.9.2 → cloudstructs-0.9.4}/src/cloudstructs/__init__.py +44 -0
- {cloudstructs-0.9.2 → cloudstructs-0.9.4}/src/cloudstructs/_jsii/__init__.py +1 -1
- cloudstructs-0.9.4/src/cloudstructs/_jsii/cloudstructs@0.9.4.jsii.tgz +0 -0
- {cloudstructs-0.9.2 → cloudstructs-0.9.4/src/cloudstructs.egg-info}/PKG-INFO +1 -1
- {cloudstructs-0.9.2 → cloudstructs-0.9.4}/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.4}/LICENSE +0 -0
- {cloudstructs-0.9.2 → cloudstructs-0.9.4}/MANIFEST.in +0 -0
- {cloudstructs-0.9.2 → cloudstructs-0.9.4}/README.md +0 -0
- {cloudstructs-0.9.2 → cloudstructs-0.9.4}/pyproject.toml +0 -0
- {cloudstructs-0.9.2 → cloudstructs-0.9.4}/setup.cfg +0 -0
- {cloudstructs-0.9.2 → cloudstructs-0.9.4}/src/cloudstructs/py.typed +0 -0
- {cloudstructs-0.9.2 → cloudstructs-0.9.4}/src/cloudstructs.egg-info/dependency_links.txt +0 -0
- {cloudstructs-0.9.2 → cloudstructs-0.9.4}/src/cloudstructs.egg-info/requires.txt +0 -0
- {cloudstructs-0.9.2 → cloudstructs-0.9.4}/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.4",
|
|
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.4.jsii.tgz"
|
|
30
30
|
],
|
|
31
31
|
"cloudstructs": [
|
|
32
32
|
"py.typed"
|
|
@@ -3045,6 +3045,8 @@ 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
|
+
cache_policy: typing.Optional[_aws_cdk_aws_cloudfront_ceddda9d.ICachePolicy] = None,
|
|
3049
|
+
edge_lambdas: typing.Optional[typing.Sequence[typing.Union[_aws_cdk_aws_cloudfront_ceddda9d.EdgeLambda, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3048
3050
|
redirects: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
3049
3051
|
response_headers_policy: typing.Optional[_aws_cdk_aws_cloudfront_ceddda9d.ResponseHeadersPolicy] = None,
|
|
3050
3052
|
) -> None:
|
|
@@ -3054,6 +3056,8 @@ class StaticWebsite(
|
|
|
3054
3056
|
:param domain_name: The domain name for this static website.
|
|
3055
3057
|
:param hosted_zone: The hosted zone where records should be added.
|
|
3056
3058
|
: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')``.
|
|
3059
|
+
:param cache_policy: Cache policy for the default behavior. Default: CachePolicy.CACHING_OPTIMIZED
|
|
3060
|
+
: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
3061
|
:param redirects: A list of domain names that should redirect to ``domainName``. Default: - the domain name of the hosted zone
|
|
3058
3062
|
:param response_headers_policy: Response headers policy for the default behavior. Default: - a new policy is created with best practice security headers
|
|
3059
3063
|
'''
|
|
@@ -3065,6 +3069,8 @@ class StaticWebsite(
|
|
|
3065
3069
|
domain_name=domain_name,
|
|
3066
3070
|
hosted_zone=hosted_zone,
|
|
3067
3071
|
backend_configuration=backend_configuration,
|
|
3072
|
+
cache_policy=cache_policy,
|
|
3073
|
+
edge_lambdas=edge_lambdas,
|
|
3068
3074
|
redirects=redirects,
|
|
3069
3075
|
response_headers_policy=response_headers_policy,
|
|
3070
3076
|
)
|
|
@@ -3109,6 +3115,8 @@ class StaticWebsite(
|
|
|
3109
3115
|
"domain_name": "domainName",
|
|
3110
3116
|
"hosted_zone": "hostedZone",
|
|
3111
3117
|
"backend_configuration": "backendConfiguration",
|
|
3118
|
+
"cache_policy": "cachePolicy",
|
|
3119
|
+
"edge_lambdas": "edgeLambdas",
|
|
3112
3120
|
"redirects": "redirects",
|
|
3113
3121
|
"response_headers_policy": "responseHeadersPolicy",
|
|
3114
3122
|
},
|
|
@@ -3120,6 +3128,8 @@ class StaticWebsiteProps:
|
|
|
3120
3128
|
domain_name: builtins.str,
|
|
3121
3129
|
hosted_zone: _aws_cdk_aws_route53_ceddda9d.IHostedZone,
|
|
3122
3130
|
backend_configuration: typing.Any = None,
|
|
3131
|
+
cache_policy: typing.Optional[_aws_cdk_aws_cloudfront_ceddda9d.ICachePolicy] = None,
|
|
3132
|
+
edge_lambdas: typing.Optional[typing.Sequence[typing.Union[_aws_cdk_aws_cloudfront_ceddda9d.EdgeLambda, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3123
3133
|
redirects: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
3124
3134
|
response_headers_policy: typing.Optional[_aws_cdk_aws_cloudfront_ceddda9d.ResponseHeadersPolicy] = None,
|
|
3125
3135
|
) -> None:
|
|
@@ -3128,6 +3138,8 @@ class StaticWebsiteProps:
|
|
|
3128
3138
|
:param domain_name: The domain name for this static website.
|
|
3129
3139
|
:param hosted_zone: The hosted zone where records should be added.
|
|
3130
3140
|
: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')``.
|
|
3141
|
+
:param cache_policy: Cache policy for the default behavior. Default: CachePolicy.CACHING_OPTIMIZED
|
|
3142
|
+
: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
3143
|
:param redirects: A list of domain names that should redirect to ``domainName``. Default: - the domain name of the hosted zone
|
|
3132
3144
|
:param response_headers_policy: Response headers policy for the default behavior. Default: - a new policy is created with best practice security headers
|
|
3133
3145
|
'''
|
|
@@ -3136,6 +3148,8 @@ class StaticWebsiteProps:
|
|
|
3136
3148
|
check_type(argname="argument domain_name", value=domain_name, expected_type=type_hints["domain_name"])
|
|
3137
3149
|
check_type(argname="argument hosted_zone", value=hosted_zone, expected_type=type_hints["hosted_zone"])
|
|
3138
3150
|
check_type(argname="argument backend_configuration", value=backend_configuration, expected_type=type_hints["backend_configuration"])
|
|
3151
|
+
check_type(argname="argument cache_policy", value=cache_policy, expected_type=type_hints["cache_policy"])
|
|
3152
|
+
check_type(argname="argument edge_lambdas", value=edge_lambdas, expected_type=type_hints["edge_lambdas"])
|
|
3139
3153
|
check_type(argname="argument redirects", value=redirects, expected_type=type_hints["redirects"])
|
|
3140
3154
|
check_type(argname="argument response_headers_policy", value=response_headers_policy, expected_type=type_hints["response_headers_policy"])
|
|
3141
3155
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
@@ -3144,6 +3158,10 @@ class StaticWebsiteProps:
|
|
|
3144
3158
|
}
|
|
3145
3159
|
if backend_configuration is not None:
|
|
3146
3160
|
self._values["backend_configuration"] = backend_configuration
|
|
3161
|
+
if cache_policy is not None:
|
|
3162
|
+
self._values["cache_policy"] = cache_policy
|
|
3163
|
+
if edge_lambdas is not None:
|
|
3164
|
+
self._values["edge_lambdas"] = edge_lambdas
|
|
3147
3165
|
if redirects is not None:
|
|
3148
3166
|
self._values["redirects"] = redirects
|
|
3149
3167
|
if response_headers_policy is not None:
|
|
@@ -3181,6 +3199,28 @@ class StaticWebsiteProps:
|
|
|
3181
3199
|
result = self._values.get("backend_configuration")
|
|
3182
3200
|
return typing.cast(typing.Any, result)
|
|
3183
3201
|
|
|
3202
|
+
@builtins.property
|
|
3203
|
+
def cache_policy(
|
|
3204
|
+
self,
|
|
3205
|
+
) -> typing.Optional[_aws_cdk_aws_cloudfront_ceddda9d.ICachePolicy]:
|
|
3206
|
+
'''Cache policy for the default behavior.
|
|
3207
|
+
|
|
3208
|
+
:default: CachePolicy.CACHING_OPTIMIZED
|
|
3209
|
+
'''
|
|
3210
|
+
result = self._values.get("cache_policy")
|
|
3211
|
+
return typing.cast(typing.Optional[_aws_cdk_aws_cloudfront_ceddda9d.ICachePolicy], result)
|
|
3212
|
+
|
|
3213
|
+
@builtins.property
|
|
3214
|
+
def edge_lambdas(
|
|
3215
|
+
self,
|
|
3216
|
+
) -> typing.Optional[typing.List[_aws_cdk_aws_cloudfront_ceddda9d.EdgeLambda]]:
|
|
3217
|
+
'''The Lambda@Edge functions to invoke before serving the contents.
|
|
3218
|
+
|
|
3219
|
+
:default: - an origin request function that redirects all requests for a path to /index.html
|
|
3220
|
+
'''
|
|
3221
|
+
result = self._values.get("edge_lambdas")
|
|
3222
|
+
return typing.cast(typing.Optional[typing.List[_aws_cdk_aws_cloudfront_ceddda9d.EdgeLambda]], result)
|
|
3223
|
+
|
|
3184
3224
|
@builtins.property
|
|
3185
3225
|
def redirects(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
3186
3226
|
'''A list of domain names that should redirect to ``domainName``.
|
|
@@ -4020,6 +4060,8 @@ def _typecheckingstub__5c6cce44b6a8e2d4fefe372623c811f7e7e92ce467f8e830604203b6e
|
|
|
4020
4060
|
domain_name: builtins.str,
|
|
4021
4061
|
hosted_zone: _aws_cdk_aws_route53_ceddda9d.IHostedZone,
|
|
4022
4062
|
backend_configuration: typing.Any = None,
|
|
4063
|
+
cache_policy: typing.Optional[_aws_cdk_aws_cloudfront_ceddda9d.ICachePolicy] = None,
|
|
4064
|
+
edge_lambdas: typing.Optional[typing.Sequence[typing.Union[_aws_cdk_aws_cloudfront_ceddda9d.EdgeLambda, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4023
4065
|
redirects: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
4024
4066
|
response_headers_policy: typing.Optional[_aws_cdk_aws_cloudfront_ceddda9d.ResponseHeadersPolicy] = None,
|
|
4025
4067
|
) -> None:
|
|
@@ -4037,6 +4079,8 @@ def _typecheckingstub__4daf76d01dee77dafb229e369b86df1b96ef0477a43bf4df595b7453b
|
|
|
4037
4079
|
domain_name: builtins.str,
|
|
4038
4080
|
hosted_zone: _aws_cdk_aws_route53_ceddda9d.IHostedZone,
|
|
4039
4081
|
backend_configuration: typing.Any = None,
|
|
4082
|
+
cache_policy: typing.Optional[_aws_cdk_aws_cloudfront_ceddda9d.ICachePolicy] = None,
|
|
4083
|
+
edge_lambdas: typing.Optional[typing.Sequence[typing.Union[_aws_cdk_aws_cloudfront_ceddda9d.EdgeLambda, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4040
4084
|
redirects: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
4041
4085
|
response_headers_policy: typing.Optional[_aws_cdk_aws_cloudfront_ceddda9d.ResponseHeadersPolicy] = None,
|
|
4042
4086
|
) -> 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.4", __name__[0:-6], "cloudstructs@0.9.4.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.4.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
|