cloudstructs 0.11.0__tar.gz → 0.12.0__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.11.0
3
+ Version: 0.12.0
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.11.0",
8
+ "version": "0.12.0",
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.11.0.jsii.tgz"
29
+ "cloudstructs@0.12.0.jsii.tgz"
30
30
  ],
31
31
  "cloudstructs": [
32
32
  "py.typed"
@@ -67,6 +67,7 @@ from ._jsii import *
67
67
 
68
68
  import aws_cdk as _aws_cdk_ceddda9d
69
69
  import aws_cdk.aws_apigateway as _aws_cdk_aws_apigateway_ceddda9d
70
+ import aws_cdk.aws_certificatemanager as _aws_cdk_aws_certificatemanager_ceddda9d
70
71
  import aws_cdk.aws_cloudfront as _aws_cdk_aws_cloudfront_ceddda9d
71
72
  import aws_cdk.aws_ec2 as _aws_cdk_aws_ec2_ceddda9d
72
73
  import aws_cdk.aws_ecs as _aws_cdk_aws_ecs_ceddda9d
@@ -3201,6 +3202,7 @@ class StaticWebsite(
3201
3202
  scope: "_constructs_77d1e7e8.Construct",
3202
3203
  id: builtins.str,
3203
3204
  *,
3205
+ certificate: "_aws_cdk_aws_certificatemanager_ceddda9d.ICertificate",
3204
3206
  domain_name: builtins.str,
3205
3207
  hosted_zone: "_aws_cdk_aws_route53_ceddda9d.IHostedZone",
3206
3208
  backend_configuration: typing.Any = None,
@@ -3212,6 +3214,7 @@ class StaticWebsite(
3212
3214
  '''
3213
3215
  :param scope: -
3214
3216
  :param id: -
3217
+ :param certificate: The ACM certificate to use for the CloudFront distribution. Must be in us-east-1.
3215
3218
  :param domain_name: The domain name for this static website.
3216
3219
  :param hosted_zone: The hosted zone where records should be added.
3217
3220
  :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')``.
@@ -3225,6 +3228,7 @@ class StaticWebsite(
3225
3228
  check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
3226
3229
  check_type(argname="argument id", value=id, expected_type=type_hints["id"])
3227
3230
  props = StaticWebsiteProps(
3231
+ certificate=certificate,
3228
3232
  domain_name=domain_name,
3229
3233
  hosted_zone=hosted_zone,
3230
3234
  backend_configuration=backend_configuration,
@@ -3271,6 +3275,7 @@ class StaticWebsite(
3271
3275
  jsii_type="cloudstructs.StaticWebsiteProps",
3272
3276
  jsii_struct_bases=[],
3273
3277
  name_mapping={
3278
+ "certificate": "certificate",
3274
3279
  "domain_name": "domainName",
3275
3280
  "hosted_zone": "hostedZone",
3276
3281
  "backend_configuration": "backendConfiguration",
@@ -3284,6 +3289,7 @@ class StaticWebsiteProps:
3284
3289
  def __init__(
3285
3290
  self,
3286
3291
  *,
3292
+ certificate: "_aws_cdk_aws_certificatemanager_ceddda9d.ICertificate",
3287
3293
  domain_name: builtins.str,
3288
3294
  hosted_zone: "_aws_cdk_aws_route53_ceddda9d.IHostedZone",
3289
3295
  backend_configuration: typing.Any = None,
@@ -3294,6 +3300,7 @@ class StaticWebsiteProps:
3294
3300
  ) -> None:
3295
3301
  '''Properties for a StaticWebsite.
3296
3302
 
3303
+ :param certificate: The ACM certificate to use for the CloudFront distribution. Must be in us-east-1.
3297
3304
  :param domain_name: The domain name for this static website.
3298
3305
  :param hosted_zone: The hosted zone where records should be added.
3299
3306
  :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')``.
@@ -3304,6 +3311,7 @@ class StaticWebsiteProps:
3304
3311
  '''
3305
3312
  if __debug__:
3306
3313
  type_hints = typing.get_type_hints(_typecheckingstub__4daf76d01dee77dafb229e369b86df1b96ef0477a43bf4df595b7453b0e74392)
3314
+ check_type(argname="argument certificate", value=certificate, expected_type=type_hints["certificate"])
3307
3315
  check_type(argname="argument domain_name", value=domain_name, expected_type=type_hints["domain_name"])
3308
3316
  check_type(argname="argument hosted_zone", value=hosted_zone, expected_type=type_hints["hosted_zone"])
3309
3317
  check_type(argname="argument backend_configuration", value=backend_configuration, expected_type=type_hints["backend_configuration"])
@@ -3312,6 +3320,7 @@ class StaticWebsiteProps:
3312
3320
  check_type(argname="argument redirects", value=redirects, expected_type=type_hints["redirects"])
3313
3321
  check_type(argname="argument response_headers_policy", value=response_headers_policy, expected_type=type_hints["response_headers_policy"])
3314
3322
  self._values: typing.Dict[builtins.str, typing.Any] = {
3323
+ "certificate": certificate,
3315
3324
  "domain_name": domain_name,
3316
3325
  "hosted_zone": hosted_zone,
3317
3326
  }
@@ -3326,6 +3335,16 @@ class StaticWebsiteProps:
3326
3335
  if response_headers_policy is not None:
3327
3336
  self._values["response_headers_policy"] = response_headers_policy
3328
3337
 
3338
+ @builtins.property
3339
+ def certificate(self) -> "_aws_cdk_aws_certificatemanager_ceddda9d.ICertificate":
3340
+ '''The ACM certificate to use for the CloudFront distribution.
3341
+
3342
+ Must be in us-east-1.
3343
+ '''
3344
+ result = self._values.get("certificate")
3345
+ assert result is not None, "Required property 'certificate' is missing"
3346
+ return typing.cast("_aws_cdk_aws_certificatemanager_ceddda9d.ICertificate", result)
3347
+
3329
3348
  @builtins.property
3330
3349
  def domain_name(self) -> builtins.str:
3331
3350
  '''The domain name for this static website.
@@ -3573,6 +3592,7 @@ class UrlShortener(
3573
3592
  scope: "_constructs_77d1e7e8.Construct",
3574
3593
  id: builtins.str,
3575
3594
  *,
3595
+ certificate: "_aws_cdk_aws_certificatemanager_ceddda9d.ICertificate",
3576
3596
  hosted_zone: "_aws_cdk_aws_route53_ceddda9d.IHostedZone",
3577
3597
  api_gateway_authorizer: typing.Optional["_aws_cdk_aws_apigateway_ceddda9d.IAuthorizer"] = None,
3578
3598
  api_gateway_endpoint: typing.Optional["_aws_cdk_aws_ec2_ceddda9d.IInterfaceVpcEndpoint"] = None,
@@ -3585,6 +3605,7 @@ class UrlShortener(
3585
3605
  '''
3586
3606
  :param scope: -
3587
3607
  :param id: -
3608
+ :param certificate: The ACM certificate to use for the CloudFront distribution. Must be in us-east-1.
3588
3609
  :param hosted_zone: The hosted zone for the short URLs domain.
3589
3610
  :param api_gateway_authorizer: Authorizer for API gateway. Default: - do not use an authorizer for the API
3590
3611
  :param api_gateway_endpoint: An interface VPC endpoint for API gateway. Specifying this property will make the API private. Default: - API is public
@@ -3599,6 +3620,7 @@ class UrlShortener(
3599
3620
  check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
3600
3621
  check_type(argname="argument id", value=id, expected_type=type_hints["id"])
3601
3622
  props = UrlShortenerProps(
3623
+ certificate=certificate,
3602
3624
  hosted_zone=hosted_zone,
3603
3625
  api_gateway_authorizer=api_gateway_authorizer,
3604
3626
  api_gateway_endpoint=api_gateway_endpoint,
@@ -3642,6 +3664,7 @@ class UrlShortener(
3642
3664
  jsii_type="cloudstructs.UrlShortenerProps",
3643
3665
  jsii_struct_bases=[],
3644
3666
  name_mapping={
3667
+ "certificate": "certificate",
3645
3668
  "hosted_zone": "hostedZone",
3646
3669
  "api_gateway_authorizer": "apiGatewayAuthorizer",
3647
3670
  "api_gateway_endpoint": "apiGatewayEndpoint",
@@ -3656,6 +3679,7 @@ class UrlShortenerProps:
3656
3679
  def __init__(
3657
3680
  self,
3658
3681
  *,
3682
+ certificate: "_aws_cdk_aws_certificatemanager_ceddda9d.ICertificate",
3659
3683
  hosted_zone: "_aws_cdk_aws_route53_ceddda9d.IHostedZone",
3660
3684
  api_gateway_authorizer: typing.Optional["_aws_cdk_aws_apigateway_ceddda9d.IAuthorizer"] = None,
3661
3685
  api_gateway_endpoint: typing.Optional["_aws_cdk_aws_ec2_ceddda9d.IInterfaceVpcEndpoint"] = None,
@@ -3667,6 +3691,7 @@ class UrlShortenerProps:
3667
3691
  ) -> None:
3668
3692
  '''Properties for a UrlShortener.
3669
3693
 
3694
+ :param certificate: The ACM certificate to use for the CloudFront distribution. Must be in us-east-1.
3670
3695
  :param hosted_zone: The hosted zone for the short URLs domain.
3671
3696
  :param api_gateway_authorizer: Authorizer for API gateway. Default: - do not use an authorizer for the API
3672
3697
  :param api_gateway_endpoint: An interface VPC endpoint for API gateway. Specifying this property will make the API private. Default: - API is public
@@ -3678,6 +3703,7 @@ class UrlShortenerProps:
3678
3703
  '''
3679
3704
  if __debug__:
3680
3705
  type_hints = typing.get_type_hints(_typecheckingstub__8e3b7727492b636232f327e92ab8db610427777b8176a1c90738cf41ebadf9e8)
3706
+ check_type(argname="argument certificate", value=certificate, expected_type=type_hints["certificate"])
3681
3707
  check_type(argname="argument hosted_zone", value=hosted_zone, expected_type=type_hints["hosted_zone"])
3682
3708
  check_type(argname="argument api_gateway_authorizer", value=api_gateway_authorizer, expected_type=type_hints["api_gateway_authorizer"])
3683
3709
  check_type(argname="argument api_gateway_endpoint", value=api_gateway_endpoint, expected_type=type_hints["api_gateway_endpoint"])
@@ -3687,6 +3713,7 @@ class UrlShortenerProps:
3687
3713
  check_type(argname="argument iam_authorization", value=iam_authorization, expected_type=type_hints["iam_authorization"])
3688
3714
  check_type(argname="argument record_name", value=record_name, expected_type=type_hints["record_name"])
3689
3715
  self._values: typing.Dict[builtins.str, typing.Any] = {
3716
+ "certificate": certificate,
3690
3717
  "hosted_zone": hosted_zone,
3691
3718
  }
3692
3719
  if api_gateway_authorizer is not None:
@@ -3704,6 +3731,16 @@ class UrlShortenerProps:
3704
3731
  if record_name is not None:
3705
3732
  self._values["record_name"] = record_name
3706
3733
 
3734
+ @builtins.property
3735
+ def certificate(self) -> "_aws_cdk_aws_certificatemanager_ceddda9d.ICertificate":
3736
+ '''The ACM certificate to use for the CloudFront distribution.
3737
+
3738
+ Must be in us-east-1.
3739
+ '''
3740
+ result = self._values.get("certificate")
3741
+ assert result is not None, "Required property 'certificate' is missing"
3742
+ return typing.cast("_aws_cdk_aws_certificatemanager_ceddda9d.ICertificate", result)
3743
+
3707
3744
  @builtins.property
3708
3745
  def hosted_zone(self) -> "_aws_cdk_aws_route53_ceddda9d.IHostedZone":
3709
3746
  '''The hosted zone for the short URLs domain.'''
@@ -4260,6 +4297,7 @@ def _typecheckingstub__5c6cce44b6a8e2d4fefe372623c811f7e7e92ce467f8e830604203b6e
4260
4297
  scope: _constructs_77d1e7e8.Construct,
4261
4298
  id: builtins.str,
4262
4299
  *,
4300
+ certificate: _aws_cdk_aws_certificatemanager_ceddda9d.ICertificate,
4263
4301
  domain_name: builtins.str,
4264
4302
  hosted_zone: _aws_cdk_aws_route53_ceddda9d.IHostedZone,
4265
4303
  backend_configuration: typing.Any = None,
@@ -4279,6 +4317,7 @@ def _typecheckingstub__ff35a947730004c6e0408e6ec18be077978abf81aaf6d875e50506463
4279
4317
 
4280
4318
  def _typecheckingstub__4daf76d01dee77dafb229e369b86df1b96ef0477a43bf4df595b7453b0e74392(
4281
4319
  *,
4320
+ certificate: _aws_cdk_aws_certificatemanager_ceddda9d.ICertificate,
4282
4321
  domain_name: builtins.str,
4283
4322
  hosted_zone: _aws_cdk_aws_route53_ceddda9d.IHostedZone,
4284
4323
  backend_configuration: typing.Any = None,
@@ -4318,6 +4357,7 @@ def _typecheckingstub__167f33600ab96baf2049b3f60519f5b2752e085a16e7fb198ede85d7e
4318
4357
  scope: _constructs_77d1e7e8.Construct,
4319
4358
  id: builtins.str,
4320
4359
  *,
4360
+ certificate: _aws_cdk_aws_certificatemanager_ceddda9d.ICertificate,
4321
4361
  hosted_zone: _aws_cdk_aws_route53_ceddda9d.IHostedZone,
4322
4362
  api_gateway_authorizer: typing.Optional[_aws_cdk_aws_apigateway_ceddda9d.IAuthorizer] = None,
4323
4363
  api_gateway_endpoint: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IInterfaceVpcEndpoint] = None,
@@ -4338,6 +4378,7 @@ def _typecheckingstub__46a7eb08de5218cee5cd8528a6e312f96935b2aa46d50090cf09844b5
4338
4378
 
4339
4379
  def _typecheckingstub__8e3b7727492b636232f327e92ab8db610427777b8176a1c90738cf41ebadf9e8(
4340
4380
  *,
4381
+ certificate: _aws_cdk_aws_certificatemanager_ceddda9d.ICertificate,
4341
4382
  hosted_zone: _aws_cdk_aws_route53_ceddda9d.IHostedZone,
4342
4383
  api_gateway_authorizer: typing.Optional[_aws_cdk_aws_apigateway_ceddda9d.IAuthorizer] = None,
4343
4384
  api_gateway_endpoint: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IInterfaceVpcEndpoint] = None,
@@ -32,7 +32,7 @@ import aws_cdk._jsii
32
32
  import constructs._jsii
33
33
 
34
34
  __jsii_assembly__ = jsii.JSIIAssembly.load(
35
- "cloudstructs", "0.11.0", __name__[0:-6], "cloudstructs@0.11.0.jsii.tgz"
35
+ "cloudstructs", "0.12.0", __name__[0:-6], "cloudstructs@0.12.0.jsii.tgz"
36
36
  )
37
37
 
38
38
  __all__ = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cloudstructs
3
- Version: 0.11.0
3
+ Version: 0.12.0
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.11.0.jsii.tgz
14
+ src/cloudstructs/_jsii/cloudstructs@0.12.0.jsii.tgz
File without changes
File without changes
File without changes
File without changes