cloudstructs 0.9.3__tar.gz → 0.9.5__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cloudstructs
3
- Version: 0.9.3
3
+ Version: 0.9.5
4
4
  Summary: High-level constructs for AWS CDK
5
5
  Home-page: https://github.com/jogold/cloudstructs.git
6
6
  Author: Jonathan Goldwasser<jonathan.goldwasser@gmail.com>
@@ -5,7 +5,7 @@ kwargs = json.loads(
5
5
  """
6
6
  {
7
7
  "name": "cloudstructs",
8
- "version": "0.9.3",
8
+ "version": "0.9.5",
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.3.jsii.tgz"
29
+ "cloudstructs@0.9.5.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.96.0, <2.0.0",
39
+ "jsii>=1.97.0, <2.0.0",
40
40
  "publication>=0.0.3",
41
41
  "typeguard~=2.13.3"
42
42
  ],
@@ -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
+ cache_policy: typing.Optional[_aws_cdk_aws_cloudfront_ceddda9d.ICachePolicy] = None,
3048
3049
  edge_lambdas: typing.Optional[typing.Sequence[typing.Union[_aws_cdk_aws_cloudfront_ceddda9d.EdgeLambda, typing.Dict[builtins.str, typing.Any]]]] = None,
3049
3050
  redirects: typing.Optional[typing.Sequence[builtins.str]] = None,
3050
3051
  response_headers_policy: typing.Optional[_aws_cdk_aws_cloudfront_ceddda9d.ResponseHeadersPolicy] = None,
@@ -3055,6 +3056,7 @@ class StaticWebsite(
3055
3056
  :param domain_name: The domain name for this static website.
3056
3057
  :param hosted_zone: The hosted zone where records should be added.
3057
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
3058
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
3059
3061
  :param redirects: A list of domain names that should redirect to ``domainName``. Default: - the domain name of the hosted zone
3060
3062
  :param response_headers_policy: Response headers policy for the default behavior. Default: - a new policy is created with best practice security headers
@@ -3067,6 +3069,7 @@ class StaticWebsite(
3067
3069
  domain_name=domain_name,
3068
3070
  hosted_zone=hosted_zone,
3069
3071
  backend_configuration=backend_configuration,
3072
+ cache_policy=cache_policy,
3070
3073
  edge_lambdas=edge_lambdas,
3071
3074
  redirects=redirects,
3072
3075
  response_headers_policy=response_headers_policy,
@@ -3112,6 +3115,7 @@ class StaticWebsite(
3112
3115
  "domain_name": "domainName",
3113
3116
  "hosted_zone": "hostedZone",
3114
3117
  "backend_configuration": "backendConfiguration",
3118
+ "cache_policy": "cachePolicy",
3115
3119
  "edge_lambdas": "edgeLambdas",
3116
3120
  "redirects": "redirects",
3117
3121
  "response_headers_policy": "responseHeadersPolicy",
@@ -3124,6 +3128,7 @@ class StaticWebsiteProps:
3124
3128
  domain_name: builtins.str,
3125
3129
  hosted_zone: _aws_cdk_aws_route53_ceddda9d.IHostedZone,
3126
3130
  backend_configuration: typing.Any = None,
3131
+ cache_policy: typing.Optional[_aws_cdk_aws_cloudfront_ceddda9d.ICachePolicy] = None,
3127
3132
  edge_lambdas: typing.Optional[typing.Sequence[typing.Union[_aws_cdk_aws_cloudfront_ceddda9d.EdgeLambda, typing.Dict[builtins.str, typing.Any]]]] = None,
3128
3133
  redirects: typing.Optional[typing.Sequence[builtins.str]] = None,
3129
3134
  response_headers_policy: typing.Optional[_aws_cdk_aws_cloudfront_ceddda9d.ResponseHeadersPolicy] = None,
@@ -3133,6 +3138,7 @@ class StaticWebsiteProps:
3133
3138
  :param domain_name: The domain name for this static website.
3134
3139
  :param hosted_zone: The hosted zone where records should be added.
3135
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
3136
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
3137
3143
  :param redirects: A list of domain names that should redirect to ``domainName``. Default: - the domain name of the hosted zone
3138
3144
  :param response_headers_policy: Response headers policy for the default behavior. Default: - a new policy is created with best practice security headers
@@ -3142,6 +3148,7 @@ class StaticWebsiteProps:
3142
3148
  check_type(argname="argument domain_name", value=domain_name, expected_type=type_hints["domain_name"])
3143
3149
  check_type(argname="argument hosted_zone", value=hosted_zone, expected_type=type_hints["hosted_zone"])
3144
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"])
3145
3152
  check_type(argname="argument edge_lambdas", value=edge_lambdas, expected_type=type_hints["edge_lambdas"])
3146
3153
  check_type(argname="argument redirects", value=redirects, expected_type=type_hints["redirects"])
3147
3154
  check_type(argname="argument response_headers_policy", value=response_headers_policy, expected_type=type_hints["response_headers_policy"])
@@ -3151,6 +3158,8 @@ class StaticWebsiteProps:
3151
3158
  }
3152
3159
  if backend_configuration is not None:
3153
3160
  self._values["backend_configuration"] = backend_configuration
3161
+ if cache_policy is not None:
3162
+ self._values["cache_policy"] = cache_policy
3154
3163
  if edge_lambdas is not None:
3155
3164
  self._values["edge_lambdas"] = edge_lambdas
3156
3165
  if redirects is not None:
@@ -3190,6 +3199,17 @@ class StaticWebsiteProps:
3190
3199
  result = self._values.get("backend_configuration")
3191
3200
  return typing.cast(typing.Any, result)
3192
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
+
3193
3213
  @builtins.property
3194
3214
  def edge_lambdas(
3195
3215
  self,
@@ -4040,6 +4060,7 @@ def _typecheckingstub__5c6cce44b6a8e2d4fefe372623c811f7e7e92ce467f8e830604203b6e
4040
4060
  domain_name: builtins.str,
4041
4061
  hosted_zone: _aws_cdk_aws_route53_ceddda9d.IHostedZone,
4042
4062
  backend_configuration: typing.Any = None,
4063
+ cache_policy: typing.Optional[_aws_cdk_aws_cloudfront_ceddda9d.ICachePolicy] = None,
4043
4064
  edge_lambdas: typing.Optional[typing.Sequence[typing.Union[_aws_cdk_aws_cloudfront_ceddda9d.EdgeLambda, typing.Dict[builtins.str, typing.Any]]]] = None,
4044
4065
  redirects: typing.Optional[typing.Sequence[builtins.str]] = None,
4045
4066
  response_headers_policy: typing.Optional[_aws_cdk_aws_cloudfront_ceddda9d.ResponseHeadersPolicy] = None,
@@ -4058,6 +4079,7 @@ def _typecheckingstub__4daf76d01dee77dafb229e369b86df1b96ef0477a43bf4df595b7453b
4058
4079
  domain_name: builtins.str,
4059
4080
  hosted_zone: _aws_cdk_aws_route53_ceddda9d.IHostedZone,
4060
4081
  backend_configuration: typing.Any = None,
4082
+ cache_policy: typing.Optional[_aws_cdk_aws_cloudfront_ceddda9d.ICachePolicy] = None,
4061
4083
  edge_lambdas: typing.Optional[typing.Sequence[typing.Union[_aws_cdk_aws_cloudfront_ceddda9d.EdgeLambda, typing.Dict[builtins.str, typing.Any]]]] = None,
4062
4084
  redirects: typing.Optional[typing.Sequence[builtins.str]] = None,
4063
4085
  response_headers_policy: typing.Optional[_aws_cdk_aws_cloudfront_ceddda9d.ResponseHeadersPolicy] = 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.3", __name__[0:-6], "cloudstructs@0.9.3.jsii.tgz"
20
+ "cloudstructs", "0.9.5", __name__[0:-6], "cloudstructs@0.9.5.jsii.tgz"
21
21
  )
22
22
 
23
23
  __all__ = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cloudstructs
3
- Version: 0.9.3
3
+ Version: 0.9.5
4
4
  Summary: High-level constructs for AWS CDK
5
5
  Home-page: https://github.com/jogold/cloudstructs.git
6
6
  Author: Jonathan Goldwasser<jonathan.goldwasser@gmail.com>
@@ -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.3.jsii.tgz
14
+ src/cloudstructs/_jsii/cloudstructs@0.9.5.jsii.tgz
@@ -1,5 +1,5 @@
1
1
  aws-cdk-lib<3.0.0,>=2.133.0
2
2
  constructs<11.0.0,>=10.0.5
3
- jsii<2.0.0,>=1.96.0
3
+ jsii<2.0.0,>=1.97.0
4
4
  publication>=0.0.3
5
5
  typeguard~=2.13.3
File without changes
File without changes
File without changes
File without changes