cloudstructs 0.10.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.
- {cloudstructs-0.10.0/src/cloudstructs.egg-info → cloudstructs-0.12.0}/PKG-INFO +1 -1
- {cloudstructs-0.10.0 → cloudstructs-0.12.0}/setup.py +2 -2
- {cloudstructs-0.10.0 → cloudstructs-0.12.0}/src/cloudstructs/__init__.py +67 -24
- {cloudstructs-0.10.0 → cloudstructs-0.12.0}/src/cloudstructs/_jsii/__init__.py +1 -1
- cloudstructs-0.10.0/src/cloudstructs/_jsii/cloudstructs@0.10.0.jsii.tgz → cloudstructs-0.12.0/src/cloudstructs/_jsii/cloudstructs@0.12.0.jsii.tgz +0 -0
- {cloudstructs-0.10.0 → cloudstructs-0.12.0/src/cloudstructs.egg-info}/PKG-INFO +1 -1
- {cloudstructs-0.10.0 → cloudstructs-0.12.0}/src/cloudstructs.egg-info/SOURCES.txt +1 -1
- {cloudstructs-0.10.0 → cloudstructs-0.12.0}/LICENSE +0 -0
- {cloudstructs-0.10.0 → cloudstructs-0.12.0}/MANIFEST.in +0 -0
- {cloudstructs-0.10.0 → cloudstructs-0.12.0}/README.md +0 -0
- {cloudstructs-0.10.0 → cloudstructs-0.12.0}/pyproject.toml +0 -0
- {cloudstructs-0.10.0 → cloudstructs-0.12.0}/setup.cfg +0 -0
- {cloudstructs-0.10.0 → cloudstructs-0.12.0}/src/cloudstructs/py.typed +0 -0
- {cloudstructs-0.10.0 → cloudstructs-0.12.0}/src/cloudstructs.egg-info/dependency_links.txt +0 -0
- {cloudstructs-0.10.0 → cloudstructs-0.12.0}/src/cloudstructs.egg-info/requires.txt +0 -0
- {cloudstructs-0.10.0 → cloudstructs-0.12.0}/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.
|
|
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.
|
|
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.
|
|
@@ -3427,17 +3446,17 @@ class ToolkitCleaner(
|
|
|
3427
3446
|
clean_assets_timeout: typing.Optional["_aws_cdk_ceddda9d.Duration"] = None,
|
|
3428
3447
|
dry_run: typing.Optional[builtins.bool] = None,
|
|
3429
3448
|
retain_assets_newer_than: typing.Optional["_aws_cdk_ceddda9d.Duration"] = None,
|
|
3430
|
-
schedule: typing.Optional["_aws_cdk_aws_events_ceddda9d.Schedule"] = None,
|
|
3431
3449
|
schedule_enabled: typing.Optional[builtins.bool] = None,
|
|
3450
|
+
schedule_expression: typing.Optional["_aws_cdk_aws_scheduler_ceddda9d.ScheduleExpression"] = None,
|
|
3432
3451
|
) -> None:
|
|
3433
3452
|
'''
|
|
3434
3453
|
:param scope: -
|
|
3435
3454
|
:param id: -
|
|
3436
|
-
:param clean_assets_timeout: The timeout for the
|
|
3455
|
+
:param clean_assets_timeout: The timeout for the clean function. Default: Duration.minutes(30)
|
|
3437
3456
|
:param dry_run: Only output number of assets and total size that would be deleted but without actually deleting assets.
|
|
3438
3457
|
:param retain_assets_newer_than: Retain unused assets that were created recently. Default: - all unused assets are removed
|
|
3439
|
-
:param schedule: The schedule for the cleaner. Default: - every day
|
|
3440
3458
|
:param schedule_enabled: Whether to clean on schedule. If you'd like to run the cleanup manually via the console, set to ``false``. Default: true
|
|
3459
|
+
:param schedule_expression: The schedule for the cleaner. Default: - every day
|
|
3441
3460
|
'''
|
|
3442
3461
|
if __debug__:
|
|
3443
3462
|
type_hints = typing.get_type_hints(_typecheckingstub__00fb1018addaa6fbbee6e44dc96b9421d79e37fba0a61f552b58d39e4f614888)
|
|
@@ -3447,8 +3466,8 @@ class ToolkitCleaner(
|
|
|
3447
3466
|
clean_assets_timeout=clean_assets_timeout,
|
|
3448
3467
|
dry_run=dry_run,
|
|
3449
3468
|
retain_assets_newer_than=retain_assets_newer_than,
|
|
3450
|
-
schedule=schedule,
|
|
3451
3469
|
schedule_enabled=schedule_enabled,
|
|
3470
|
+
schedule_expression=schedule_expression,
|
|
3452
3471
|
)
|
|
3453
3472
|
|
|
3454
3473
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
@@ -3461,8 +3480,8 @@ class ToolkitCleaner(
|
|
|
3461
3480
|
"clean_assets_timeout": "cleanAssetsTimeout",
|
|
3462
3481
|
"dry_run": "dryRun",
|
|
3463
3482
|
"retain_assets_newer_than": "retainAssetsNewerThan",
|
|
3464
|
-
"schedule": "schedule",
|
|
3465
3483
|
"schedule_enabled": "scheduleEnabled",
|
|
3484
|
+
"schedule_expression": "scheduleExpression",
|
|
3466
3485
|
},
|
|
3467
3486
|
)
|
|
3468
3487
|
class ToolkitCleanerProps:
|
|
@@ -3472,24 +3491,24 @@ class ToolkitCleanerProps:
|
|
|
3472
3491
|
clean_assets_timeout: typing.Optional["_aws_cdk_ceddda9d.Duration"] = None,
|
|
3473
3492
|
dry_run: typing.Optional[builtins.bool] = None,
|
|
3474
3493
|
retain_assets_newer_than: typing.Optional["_aws_cdk_ceddda9d.Duration"] = None,
|
|
3475
|
-
schedule: typing.Optional["_aws_cdk_aws_events_ceddda9d.Schedule"] = None,
|
|
3476
3494
|
schedule_enabled: typing.Optional[builtins.bool] = None,
|
|
3495
|
+
schedule_expression: typing.Optional["_aws_cdk_aws_scheduler_ceddda9d.ScheduleExpression"] = None,
|
|
3477
3496
|
) -> None:
|
|
3478
3497
|
'''Properties for a ToolkitCleaner.
|
|
3479
3498
|
|
|
3480
|
-
:param clean_assets_timeout: The timeout for the
|
|
3499
|
+
:param clean_assets_timeout: The timeout for the clean function. Default: Duration.minutes(30)
|
|
3481
3500
|
:param dry_run: Only output number of assets and total size that would be deleted but without actually deleting assets.
|
|
3482
3501
|
:param retain_assets_newer_than: Retain unused assets that were created recently. Default: - all unused assets are removed
|
|
3483
|
-
:param schedule: The schedule for the cleaner. Default: - every day
|
|
3484
3502
|
:param schedule_enabled: Whether to clean on schedule. If you'd like to run the cleanup manually via the console, set to ``false``. Default: true
|
|
3503
|
+
:param schedule_expression: The schedule for the cleaner. Default: - every day
|
|
3485
3504
|
'''
|
|
3486
3505
|
if __debug__:
|
|
3487
3506
|
type_hints = typing.get_type_hints(_typecheckingstub__72a9c40653a5bdf69499b5627cdaf6eb4c23945c6111027ebe1d6a9b524f87d3)
|
|
3488
3507
|
check_type(argname="argument clean_assets_timeout", value=clean_assets_timeout, expected_type=type_hints["clean_assets_timeout"])
|
|
3489
3508
|
check_type(argname="argument dry_run", value=dry_run, expected_type=type_hints["dry_run"])
|
|
3490
3509
|
check_type(argname="argument retain_assets_newer_than", value=retain_assets_newer_than, expected_type=type_hints["retain_assets_newer_than"])
|
|
3491
|
-
check_type(argname="argument schedule", value=schedule, expected_type=type_hints["schedule"])
|
|
3492
3510
|
check_type(argname="argument schedule_enabled", value=schedule_enabled, expected_type=type_hints["schedule_enabled"])
|
|
3511
|
+
check_type(argname="argument schedule_expression", value=schedule_expression, expected_type=type_hints["schedule_expression"])
|
|
3493
3512
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
3494
3513
|
if clean_assets_timeout is not None:
|
|
3495
3514
|
self._values["clean_assets_timeout"] = clean_assets_timeout
|
|
@@ -3497,16 +3516,16 @@ class ToolkitCleanerProps:
|
|
|
3497
3516
|
self._values["dry_run"] = dry_run
|
|
3498
3517
|
if retain_assets_newer_than is not None:
|
|
3499
3518
|
self._values["retain_assets_newer_than"] = retain_assets_newer_than
|
|
3500
|
-
if schedule is not None:
|
|
3501
|
-
self._values["schedule"] = schedule
|
|
3502
3519
|
if schedule_enabled is not None:
|
|
3503
3520
|
self._values["schedule_enabled"] = schedule_enabled
|
|
3521
|
+
if schedule_expression is not None:
|
|
3522
|
+
self._values["schedule_expression"] = schedule_expression
|
|
3504
3523
|
|
|
3505
3524
|
@builtins.property
|
|
3506
3525
|
def clean_assets_timeout(self) -> typing.Optional["_aws_cdk_ceddda9d.Duration"]:
|
|
3507
|
-
'''The timeout for the
|
|
3526
|
+
'''The timeout for the clean function.
|
|
3508
3527
|
|
|
3509
|
-
:default: Duration.minutes(
|
|
3528
|
+
:default: Duration.minutes(30)
|
|
3510
3529
|
'''
|
|
3511
3530
|
result = self._values.get("clean_assets_timeout")
|
|
3512
3531
|
return typing.cast(typing.Optional["_aws_cdk_ceddda9d.Duration"], result)
|
|
@@ -3526,15 +3545,6 @@ class ToolkitCleanerProps:
|
|
|
3526
3545
|
result = self._values.get("retain_assets_newer_than")
|
|
3527
3546
|
return typing.cast(typing.Optional["_aws_cdk_ceddda9d.Duration"], result)
|
|
3528
3547
|
|
|
3529
|
-
@builtins.property
|
|
3530
|
-
def schedule(self) -> typing.Optional["_aws_cdk_aws_events_ceddda9d.Schedule"]:
|
|
3531
|
-
'''The schedule for the cleaner.
|
|
3532
|
-
|
|
3533
|
-
:default: - every day
|
|
3534
|
-
'''
|
|
3535
|
-
result = self._values.get("schedule")
|
|
3536
|
-
return typing.cast(typing.Optional["_aws_cdk_aws_events_ceddda9d.Schedule"], result)
|
|
3537
|
-
|
|
3538
3548
|
@builtins.property
|
|
3539
3549
|
def schedule_enabled(self) -> typing.Optional[builtins.bool]:
|
|
3540
3550
|
'''Whether to clean on schedule.
|
|
@@ -3547,6 +3557,17 @@ class ToolkitCleanerProps:
|
|
|
3547
3557
|
result = self._values.get("schedule_enabled")
|
|
3548
3558
|
return typing.cast(typing.Optional[builtins.bool], result)
|
|
3549
3559
|
|
|
3560
|
+
@builtins.property
|
|
3561
|
+
def schedule_expression(
|
|
3562
|
+
self,
|
|
3563
|
+
) -> typing.Optional["_aws_cdk_aws_scheduler_ceddda9d.ScheduleExpression"]:
|
|
3564
|
+
'''The schedule for the cleaner.
|
|
3565
|
+
|
|
3566
|
+
:default: - every day
|
|
3567
|
+
'''
|
|
3568
|
+
result = self._values.get("schedule_expression")
|
|
3569
|
+
return typing.cast(typing.Optional["_aws_cdk_aws_scheduler_ceddda9d.ScheduleExpression"], result)
|
|
3570
|
+
|
|
3550
3571
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
3551
3572
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
3552
3573
|
|
|
@@ -3571,6 +3592,7 @@ class UrlShortener(
|
|
|
3571
3592
|
scope: "_constructs_77d1e7e8.Construct",
|
|
3572
3593
|
id: builtins.str,
|
|
3573
3594
|
*,
|
|
3595
|
+
certificate: "_aws_cdk_aws_certificatemanager_ceddda9d.ICertificate",
|
|
3574
3596
|
hosted_zone: "_aws_cdk_aws_route53_ceddda9d.IHostedZone",
|
|
3575
3597
|
api_gateway_authorizer: typing.Optional["_aws_cdk_aws_apigateway_ceddda9d.IAuthorizer"] = None,
|
|
3576
3598
|
api_gateway_endpoint: typing.Optional["_aws_cdk_aws_ec2_ceddda9d.IInterfaceVpcEndpoint"] = None,
|
|
@@ -3583,6 +3605,7 @@ class UrlShortener(
|
|
|
3583
3605
|
'''
|
|
3584
3606
|
:param scope: -
|
|
3585
3607
|
:param id: -
|
|
3608
|
+
:param certificate: The ACM certificate to use for the CloudFront distribution. Must be in us-east-1.
|
|
3586
3609
|
:param hosted_zone: The hosted zone for the short URLs domain.
|
|
3587
3610
|
:param api_gateway_authorizer: Authorizer for API gateway. Default: - do not use an authorizer for the API
|
|
3588
3611
|
:param api_gateway_endpoint: An interface VPC endpoint for API gateway. Specifying this property will make the API private. Default: - API is public
|
|
@@ -3597,6 +3620,7 @@ class UrlShortener(
|
|
|
3597
3620
|
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
3598
3621
|
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
3599
3622
|
props = UrlShortenerProps(
|
|
3623
|
+
certificate=certificate,
|
|
3600
3624
|
hosted_zone=hosted_zone,
|
|
3601
3625
|
api_gateway_authorizer=api_gateway_authorizer,
|
|
3602
3626
|
api_gateway_endpoint=api_gateway_endpoint,
|
|
@@ -3640,6 +3664,7 @@ class UrlShortener(
|
|
|
3640
3664
|
jsii_type="cloudstructs.UrlShortenerProps",
|
|
3641
3665
|
jsii_struct_bases=[],
|
|
3642
3666
|
name_mapping={
|
|
3667
|
+
"certificate": "certificate",
|
|
3643
3668
|
"hosted_zone": "hostedZone",
|
|
3644
3669
|
"api_gateway_authorizer": "apiGatewayAuthorizer",
|
|
3645
3670
|
"api_gateway_endpoint": "apiGatewayEndpoint",
|
|
@@ -3654,6 +3679,7 @@ class UrlShortenerProps:
|
|
|
3654
3679
|
def __init__(
|
|
3655
3680
|
self,
|
|
3656
3681
|
*,
|
|
3682
|
+
certificate: "_aws_cdk_aws_certificatemanager_ceddda9d.ICertificate",
|
|
3657
3683
|
hosted_zone: "_aws_cdk_aws_route53_ceddda9d.IHostedZone",
|
|
3658
3684
|
api_gateway_authorizer: typing.Optional["_aws_cdk_aws_apigateway_ceddda9d.IAuthorizer"] = None,
|
|
3659
3685
|
api_gateway_endpoint: typing.Optional["_aws_cdk_aws_ec2_ceddda9d.IInterfaceVpcEndpoint"] = None,
|
|
@@ -3665,6 +3691,7 @@ class UrlShortenerProps:
|
|
|
3665
3691
|
) -> None:
|
|
3666
3692
|
'''Properties for a UrlShortener.
|
|
3667
3693
|
|
|
3694
|
+
:param certificate: The ACM certificate to use for the CloudFront distribution. Must be in us-east-1.
|
|
3668
3695
|
:param hosted_zone: The hosted zone for the short URLs domain.
|
|
3669
3696
|
:param api_gateway_authorizer: Authorizer for API gateway. Default: - do not use an authorizer for the API
|
|
3670
3697
|
:param api_gateway_endpoint: An interface VPC endpoint for API gateway. Specifying this property will make the API private. Default: - API is public
|
|
@@ -3676,6 +3703,7 @@ class UrlShortenerProps:
|
|
|
3676
3703
|
'''
|
|
3677
3704
|
if __debug__:
|
|
3678
3705
|
type_hints = typing.get_type_hints(_typecheckingstub__8e3b7727492b636232f327e92ab8db610427777b8176a1c90738cf41ebadf9e8)
|
|
3706
|
+
check_type(argname="argument certificate", value=certificate, expected_type=type_hints["certificate"])
|
|
3679
3707
|
check_type(argname="argument hosted_zone", value=hosted_zone, expected_type=type_hints["hosted_zone"])
|
|
3680
3708
|
check_type(argname="argument api_gateway_authorizer", value=api_gateway_authorizer, expected_type=type_hints["api_gateway_authorizer"])
|
|
3681
3709
|
check_type(argname="argument api_gateway_endpoint", value=api_gateway_endpoint, expected_type=type_hints["api_gateway_endpoint"])
|
|
@@ -3685,6 +3713,7 @@ class UrlShortenerProps:
|
|
|
3685
3713
|
check_type(argname="argument iam_authorization", value=iam_authorization, expected_type=type_hints["iam_authorization"])
|
|
3686
3714
|
check_type(argname="argument record_name", value=record_name, expected_type=type_hints["record_name"])
|
|
3687
3715
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
3716
|
+
"certificate": certificate,
|
|
3688
3717
|
"hosted_zone": hosted_zone,
|
|
3689
3718
|
}
|
|
3690
3719
|
if api_gateway_authorizer is not None:
|
|
@@ -3702,6 +3731,16 @@ class UrlShortenerProps:
|
|
|
3702
3731
|
if record_name is not None:
|
|
3703
3732
|
self._values["record_name"] = record_name
|
|
3704
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
|
+
|
|
3705
3744
|
@builtins.property
|
|
3706
3745
|
def hosted_zone(self) -> "_aws_cdk_aws_route53_ceddda9d.IHostedZone":
|
|
3707
3746
|
'''The hosted zone for the short URLs domain.'''
|
|
@@ -4258,6 +4297,7 @@ def _typecheckingstub__5c6cce44b6a8e2d4fefe372623c811f7e7e92ce467f8e830604203b6e
|
|
|
4258
4297
|
scope: _constructs_77d1e7e8.Construct,
|
|
4259
4298
|
id: builtins.str,
|
|
4260
4299
|
*,
|
|
4300
|
+
certificate: _aws_cdk_aws_certificatemanager_ceddda9d.ICertificate,
|
|
4261
4301
|
domain_name: builtins.str,
|
|
4262
4302
|
hosted_zone: _aws_cdk_aws_route53_ceddda9d.IHostedZone,
|
|
4263
4303
|
backend_configuration: typing.Any = None,
|
|
@@ -4277,6 +4317,7 @@ def _typecheckingstub__ff35a947730004c6e0408e6ec18be077978abf81aaf6d875e50506463
|
|
|
4277
4317
|
|
|
4278
4318
|
def _typecheckingstub__4daf76d01dee77dafb229e369b86df1b96ef0477a43bf4df595b7453b0e74392(
|
|
4279
4319
|
*,
|
|
4320
|
+
certificate: _aws_cdk_aws_certificatemanager_ceddda9d.ICertificate,
|
|
4280
4321
|
domain_name: builtins.str,
|
|
4281
4322
|
hosted_zone: _aws_cdk_aws_route53_ceddda9d.IHostedZone,
|
|
4282
4323
|
backend_configuration: typing.Any = None,
|
|
@@ -4295,8 +4336,8 @@ def _typecheckingstub__00fb1018addaa6fbbee6e44dc96b9421d79e37fba0a61f552b58d39e4
|
|
|
4295
4336
|
clean_assets_timeout: typing.Optional[_aws_cdk_ceddda9d.Duration] = None,
|
|
4296
4337
|
dry_run: typing.Optional[builtins.bool] = None,
|
|
4297
4338
|
retain_assets_newer_than: typing.Optional[_aws_cdk_ceddda9d.Duration] = None,
|
|
4298
|
-
schedule: typing.Optional[_aws_cdk_aws_events_ceddda9d.Schedule] = None,
|
|
4299
4339
|
schedule_enabled: typing.Optional[builtins.bool] = None,
|
|
4340
|
+
schedule_expression: typing.Optional[_aws_cdk_aws_scheduler_ceddda9d.ScheduleExpression] = None,
|
|
4300
4341
|
) -> None:
|
|
4301
4342
|
"""Type checking stubs"""
|
|
4302
4343
|
pass
|
|
@@ -4306,8 +4347,8 @@ def _typecheckingstub__72a9c40653a5bdf69499b5627cdaf6eb4c23945c6111027ebe1d6a9b5
|
|
|
4306
4347
|
clean_assets_timeout: typing.Optional[_aws_cdk_ceddda9d.Duration] = None,
|
|
4307
4348
|
dry_run: typing.Optional[builtins.bool] = None,
|
|
4308
4349
|
retain_assets_newer_than: typing.Optional[_aws_cdk_ceddda9d.Duration] = None,
|
|
4309
|
-
schedule: typing.Optional[_aws_cdk_aws_events_ceddda9d.Schedule] = None,
|
|
4310
4350
|
schedule_enabled: typing.Optional[builtins.bool] = None,
|
|
4351
|
+
schedule_expression: typing.Optional[_aws_cdk_aws_scheduler_ceddda9d.ScheduleExpression] = None,
|
|
4311
4352
|
) -> None:
|
|
4312
4353
|
"""Type checking stubs"""
|
|
4313
4354
|
pass
|
|
@@ -4316,6 +4357,7 @@ def _typecheckingstub__167f33600ab96baf2049b3f60519f5b2752e085a16e7fb198ede85d7e
|
|
|
4316
4357
|
scope: _constructs_77d1e7e8.Construct,
|
|
4317
4358
|
id: builtins.str,
|
|
4318
4359
|
*,
|
|
4360
|
+
certificate: _aws_cdk_aws_certificatemanager_ceddda9d.ICertificate,
|
|
4319
4361
|
hosted_zone: _aws_cdk_aws_route53_ceddda9d.IHostedZone,
|
|
4320
4362
|
api_gateway_authorizer: typing.Optional[_aws_cdk_aws_apigateway_ceddda9d.IAuthorizer] = None,
|
|
4321
4363
|
api_gateway_endpoint: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IInterfaceVpcEndpoint] = None,
|
|
@@ -4336,6 +4378,7 @@ def _typecheckingstub__46a7eb08de5218cee5cd8528a6e312f96935b2aa46d50090cf09844b5
|
|
|
4336
4378
|
|
|
4337
4379
|
def _typecheckingstub__8e3b7727492b636232f327e92ab8db610427777b8176a1c90738cf41ebadf9e8(
|
|
4338
4380
|
*,
|
|
4381
|
+
certificate: _aws_cdk_aws_certificatemanager_ceddda9d.ICertificate,
|
|
4339
4382
|
hosted_zone: _aws_cdk_aws_route53_ceddda9d.IHostedZone,
|
|
4340
4383
|
api_gateway_authorizer: typing.Optional[_aws_cdk_aws_apigateway_ceddda9d.IAuthorizer] = None,
|
|
4341
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.
|
|
35
|
+
"cloudstructs", "0.12.0", __name__[0:-6], "cloudstructs@0.12.0.jsii.tgz"
|
|
36
36
|
)
|
|
37
37
|
|
|
38
38
|
__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.
|
|
14
|
+
src/cloudstructs/_jsii/cloudstructs@0.12.0.jsii.tgz
|
|
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
|