@pwrdrvr/microapps-cdk 0.3.3-alpha.1 → 0.3.4-rc1

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.
package/.jsii CHANGED
@@ -3139,22 +3139,23 @@
3139
3139
  "kind": "interface",
3140
3140
  "locationInModule": {
3141
3141
  "filename": "src/MicroAppsCF.ts",
3142
- "line": 167
3142
+ "line": 177
3143
3143
  },
3144
3144
  "name": "AddRoutesOptions",
3145
3145
  "properties": [
3146
3146
  {
3147
3147
  "abstract": true,
3148
3148
  "docs": {
3149
+ "default": "invalid URL (never used)",
3149
3150
  "stability": "experimental",
3150
- "summary": "API Gateway CloudFront Origin for API calls."
3151
+ "summary": "Default origin (invalid URL or API Gateway)."
3151
3152
  },
3152
3153
  "immutable": true,
3153
3154
  "locationInModule": {
3154
3155
  "filename": "src/MicroAppsCF.ts",
3155
- "line": 171
3156
+ "line": 183
3156
3157
  },
3157
- "name": "apiGwyOrigin",
3158
+ "name": "appOrigin",
3158
3159
  "type": {
3159
3160
  "fqn": "aws-cdk-lib.aws_cloudfront.IOrigin"
3160
3161
  }
@@ -3168,9 +3169,9 @@
3168
3169
  "immutable": true,
3169
3170
  "locationInModule": {
3170
3171
  "filename": "src/MicroAppsCF.ts",
3171
- "line": 186
3172
+ "line": 198
3172
3173
  },
3173
- "name": "apigwyOriginRequestPolicy",
3174
+ "name": "appOriginRequestPolicy",
3174
3175
  "type": {
3175
3176
  "fqn": "aws-cdk-lib.aws_cloudfront.IOriginRequestPolicy"
3176
3177
  }
@@ -3184,7 +3185,7 @@
3184
3185
  "immutable": true,
3185
3186
  "locationInModule": {
3186
3187
  "filename": "src/MicroAppsCF.ts",
3187
- "line": 176
3188
+ "line": 188
3188
3189
  },
3189
3190
  "name": "bucketAppsOrigin",
3190
3191
  "type": {
@@ -3200,7 +3201,7 @@
3200
3201
  "immutable": true,
3201
3202
  "locationInModule": {
3202
3203
  "filename": "src/MicroAppsCF.ts",
3203
- "line": 181
3204
+ "line": 193
3204
3205
  },
3205
3206
  "name": "distro",
3206
3207
  "type": {
@@ -3210,7 +3211,7 @@
3210
3211
  {
3211
3212
  "abstract": true,
3212
3213
  "docs": {
3213
- "default": "true",
3214
+ "default": "false",
3214
3215
  "remarks": "When false API routes with a period in the path will get routed to S3.\n\nWhen true API routes that contain /api/ in the path will get routed to API Gateway\neven if they have a period in the path.",
3215
3216
  "stability": "experimental",
3216
3217
  "summary": "Create an extra Behavior (Route) for /api/ that allows API routes to have a period in them."
@@ -3218,7 +3219,7 @@
3218
3219
  "immutable": true,
3219
3220
  "locationInModule": {
3220
3221
  "filename": "src/MicroAppsCF.ts",
3221
- "line": 206
3222
+ "line": 218
3222
3223
  },
3223
3224
  "name": "createAPIPathRoute",
3224
3225
  "optional": true,
@@ -3229,7 +3230,7 @@
3229
3230
  {
3230
3231
  "abstract": true,
3231
3232
  "docs": {
3232
- "default": "true",
3233
+ "default": "false",
3233
3234
  "remarks": "When false API routes with a period in the path will get routed to S3.\n\nWhen true API routes that contain /_next/data/ in the path will get routed to API Gateway\neven if they have a period in the path.",
3234
3235
  "stability": "experimental",
3235
3236
  "summary": "Create an extra Behavior (Route) for /_next/data/ This route is used by Next.js to load data from the API Gateway on `getServerSideProps` calls. The requests can end in `.json`, which would cause them to be routed to S3 if this route is not created."
@@ -3237,7 +3238,7 @@
3237
3238
  "immutable": true,
3238
3239
  "locationInModule": {
3239
3240
  "filename": "src/MicroAppsCF.ts",
3240
- "line": 221
3241
+ "line": 233
3241
3242
  },
3242
3243
  "name": "createNextDataPathRoute",
3243
3244
  "optional": true,
@@ -3254,7 +3255,7 @@
3254
3255
  "immutable": true,
3255
3256
  "locationInModule": {
3256
3257
  "filename": "src/MicroAppsCF.ts",
3257
- "line": 226
3258
+ "line": 238
3258
3259
  },
3259
3260
  "name": "edgeLambdas",
3260
3261
  "optional": true,
@@ -3277,7 +3278,7 @@
3277
3278
  "immutable": true,
3278
3279
  "locationInModule": {
3279
3280
  "filename": "src/MicroAppsCF.ts",
3280
- "line": 193
3281
+ "line": 205
3281
3282
  },
3282
3283
  "name": "rootPathPrefix",
3283
3284
  "optional": true,
@@ -3299,7 +3300,7 @@
3299
3300
  "kind": "interface",
3300
3301
  "locationInModule": {
3301
3302
  "filename": "src/MicroAppsCF.ts",
3302
- "line": 139
3303
+ "line": 149
3303
3304
  },
3304
3305
  "name": "CreateAPIOriginPolicyOptions",
3305
3306
  "properties": [
@@ -3314,7 +3315,7 @@
3314
3315
  "immutable": true,
3315
3316
  "locationInModule": {
3316
3317
  "filename": "src/MicroAppsCF.ts",
3317
- "line": 146
3318
+ "line": 156
3318
3319
  },
3319
3320
  "name": "assetNameRoot",
3320
3321
  "optional": true,
@@ -3333,7 +3334,7 @@
3333
3334
  "immutable": true,
3334
3335
  "locationInModule": {
3335
3336
  "filename": "src/MicroAppsCF.ts",
3336
- "line": 154
3337
+ "line": 164
3337
3338
  },
3338
3339
  "name": "assetNameSuffix",
3339
3340
  "optional": true,
@@ -3350,7 +3351,7 @@
3350
3351
  "immutable": true,
3351
3352
  "locationInModule": {
3352
3353
  "filename": "src/MicroAppsCF.ts",
3353
- "line": 161
3354
+ "line": 171
3354
3355
  },
3355
3356
  "name": "domainNameEdge",
3356
3357
  "optional": true,
@@ -3371,7 +3372,7 @@
3371
3372
  "kind": "interface",
3372
3373
  "locationInModule": {
3373
3374
  "filename": "src/MicroAppsEdgeToOrigin.ts",
3374
- "line": 122
3375
+ "line": 129
3375
3376
  },
3376
3377
  "name": "GenerateEdgeToOriginConfigOptions",
3377
3378
  "properties": [
@@ -3383,7 +3384,7 @@
3383
3384
  "immutable": true,
3384
3385
  "locationInModule": {
3385
3386
  "filename": "src/MicroAppsEdgeToOrigin.ts",
3386
- "line": 125
3387
+ "line": 132
3387
3388
  },
3388
3389
  "name": "addXForwardedHostHeader",
3389
3390
  "type": {
@@ -3398,7 +3399,7 @@
3398
3399
  "immutable": true,
3399
3400
  "locationInModule": {
3400
3401
  "filename": "src/MicroAppsEdgeToOrigin.ts",
3401
- "line": 123
3402
+ "line": 130
3402
3403
  },
3403
3404
  "name": "originRegion",
3404
3405
  "type": {
@@ -3413,7 +3414,7 @@
3413
3414
  "immutable": true,
3414
3415
  "locationInModule": {
3415
3416
  "filename": "src/MicroAppsEdgeToOrigin.ts",
3416
- "line": 126
3417
+ "line": 133
3417
3418
  },
3418
3419
  "name": "replaceHostHeader",
3419
3420
  "type": {
@@ -3428,7 +3429,7 @@
3428
3429
  "immutable": true,
3429
3430
  "locationInModule": {
3430
3431
  "filename": "src/MicroAppsEdgeToOrigin.ts",
3431
- "line": 124
3432
+ "line": 131
3432
3433
  },
3433
3434
  "name": "signingMode",
3434
3435
  "type": {
@@ -3443,7 +3444,7 @@
3443
3444
  "immutable": true,
3444
3445
  "locationInModule": {
3445
3446
  "filename": "src/MicroAppsEdgeToOrigin.ts",
3446
- "line": 128
3447
+ "line": 135
3447
3448
  },
3448
3449
  "name": "rootPathPrefix",
3449
3450
  "optional": true,
@@ -3459,7 +3460,7 @@
3459
3460
  "immutable": true,
3460
3461
  "locationInModule": {
3461
3462
  "filename": "src/MicroAppsEdgeToOrigin.ts",
3462
- "line": 127
3463
+ "line": 134
3463
3464
  },
3464
3465
  "name": "tableName",
3465
3466
  "optional": true,
@@ -3480,7 +3481,7 @@
3480
3481
  "kind": "interface",
3481
3482
  "locationInModule": {
3482
3483
  "filename": "src/MicroApps.ts",
3483
- "line": 271
3484
+ "line": 303
3484
3485
  },
3485
3486
  "name": "IMicroApps",
3486
3487
  "properties": [
@@ -3488,64 +3489,65 @@
3488
3489
  "abstract": true,
3489
3490
  "docs": {
3490
3491
  "stability": "experimental",
3491
- "summary": "{@inheritdoc IMicroAppsAPIGwy}."
3492
+ "summary": "{@inheritdoc IMicroAppsCF}."
3492
3493
  },
3493
3494
  "immutable": true,
3494
3495
  "locationInModule": {
3495
3496
  "filename": "src/MicroApps.ts",
3496
- "line": 285
3497
+ "line": 305
3497
3498
  },
3498
- "name": "apigwy",
3499
+ "name": "cf",
3499
3500
  "type": {
3500
- "fqn": "@pwrdrvr/microapps-cdk.IMicroAppsAPIGwy"
3501
+ "fqn": "@pwrdrvr/microapps-cdk.IMicroAppsCF"
3501
3502
  }
3502
3503
  },
3503
3504
  {
3504
3505
  "abstract": true,
3505
3506
  "docs": {
3506
3507
  "stability": "experimental",
3507
- "summary": "{@inheritdoc IMicroAppsCF}."
3508
+ "summary": "{@inheritdoc IMicroAppsS3}."
3508
3509
  },
3509
3510
  "immutable": true,
3510
3511
  "locationInModule": {
3511
3512
  "filename": "src/MicroApps.ts",
3512
- "line": 273
3513
+ "line": 311
3513
3514
  },
3514
- "name": "cf",
3515
+ "name": "s3",
3515
3516
  "type": {
3516
- "fqn": "@pwrdrvr/microapps-cdk.IMicroAppsCF"
3517
+ "fqn": "@pwrdrvr/microapps-cdk.IMicroAppsS3"
3517
3518
  }
3518
3519
  },
3519
3520
  {
3520
3521
  "abstract": true,
3521
3522
  "docs": {
3522
3523
  "stability": "experimental",
3523
- "summary": "{@inheritdoc IMicroAppsS3}."
3524
+ "summary": "{@inheritdoc IMicroAppsSvcs}."
3524
3525
  },
3525
3526
  "immutable": true,
3526
3527
  "locationInModule": {
3527
3528
  "filename": "src/MicroApps.ts",
3528
- "line": 279
3529
+ "line": 314
3529
3530
  },
3530
- "name": "s3",
3531
+ "name": "svcs",
3531
3532
  "type": {
3532
- "fqn": "@pwrdrvr/microapps-cdk.IMicroAppsS3"
3533
+ "fqn": "@pwrdrvr/microapps-cdk.IMicroAppsSvcs"
3533
3534
  }
3534
3535
  },
3535
3536
  {
3536
3537
  "abstract": true,
3537
3538
  "docs": {
3538
3539
  "stability": "experimental",
3539
- "summary": "{@inheritdoc IMicroAppsSvcs}."
3540
+ "summary": "{@inheritdoc IMicroAppsAPIGwy}."
3540
3541
  },
3541
3542
  "immutable": true,
3542
3543
  "locationInModule": {
3543
3544
  "filename": "src/MicroApps.ts",
3544
- "line": 282
3545
+ "line": 317
3545
3546
  },
3546
- "name": "svcs",
3547
+ "name": "apigwy",
3548
+ "optional": true,
3547
3549
  "type": {
3548
- "fqn": "@pwrdrvr/microapps-cdk.IMicroAppsSvcs"
3550
+ "fqn": "@pwrdrvr/microapps-cdk.IMicroAppsAPIGwy"
3549
3551
  }
3550
3552
  },
3551
3553
  {
@@ -3557,7 +3559,7 @@
3557
3559
  "immutable": true,
3558
3560
  "locationInModule": {
3559
3561
  "filename": "src/MicroApps.ts",
3560
- "line": 276
3562
+ "line": 308
3561
3563
  },
3562
3564
  "name": "edgeToOrigin",
3563
3565
  "optional": true,
@@ -3929,7 +3931,7 @@
3929
3931
  },
3930
3932
  "locationInModule": {
3931
3933
  "filename": "src/MicroApps.ts",
3932
- "line": 334
3934
+ "line": 366
3933
3935
  },
3934
3936
  "parameters": [
3935
3937
  {
@@ -3959,72 +3961,73 @@
3959
3961
  "kind": "class",
3960
3962
  "locationInModule": {
3961
3963
  "filename": "src/MicroApps.ts",
3962
- "line": 308
3964
+ "line": 340
3963
3965
  },
3964
3966
  "name": "MicroApps",
3965
3967
  "properties": [
3966
3968
  {
3967
3969
  "docs": {
3968
3970
  "stability": "experimental",
3969
- "summary": "{@inheritdoc IMicroAppsAPIGwy}."
3971
+ "summary": "{@inheritdoc IMicroAppsCF}."
3970
3972
  },
3971
3973
  "immutable": true,
3972
3974
  "locationInModule": {
3973
3975
  "filename": "src/MicroApps.ts",
3974
- "line": 325
3976
+ "line": 342
3975
3977
  },
3976
- "name": "apigwy",
3978
+ "name": "cf",
3977
3979
  "overrides": "@pwrdrvr/microapps-cdk.IMicroApps",
3978
3980
  "type": {
3979
- "fqn": "@pwrdrvr/microapps-cdk.IMicroAppsAPIGwy"
3981
+ "fqn": "@pwrdrvr/microapps-cdk.IMicroAppsCF"
3980
3982
  }
3981
3983
  },
3982
3984
  {
3983
3985
  "docs": {
3984
3986
  "stability": "experimental",
3985
- "summary": "{@inheritdoc IMicroAppsCF}."
3987
+ "summary": "{@inheritdoc IMicroAppsS3}."
3986
3988
  },
3987
3989
  "immutable": true,
3988
3990
  "locationInModule": {
3989
3991
  "filename": "src/MicroApps.ts",
3990
- "line": 310
3992
+ "line": 352
3991
3993
  },
3992
- "name": "cf",
3994
+ "name": "s3",
3993
3995
  "overrides": "@pwrdrvr/microapps-cdk.IMicroApps",
3994
3996
  "type": {
3995
- "fqn": "@pwrdrvr/microapps-cdk.IMicroAppsCF"
3997
+ "fqn": "@pwrdrvr/microapps-cdk.IMicroAppsS3"
3996
3998
  }
3997
3999
  },
3998
4000
  {
3999
4001
  "docs": {
4000
4002
  "stability": "experimental",
4001
- "summary": "{@inheritdoc IMicroAppsS3}."
4003
+ "summary": "{@inheritdoc IMicroAppsSvcs}."
4002
4004
  },
4003
4005
  "immutable": true,
4004
4006
  "locationInModule": {
4005
4007
  "filename": "src/MicroApps.ts",
4006
- "line": 320
4008
+ "line": 362
4007
4009
  },
4008
- "name": "s3",
4010
+ "name": "svcs",
4009
4011
  "overrides": "@pwrdrvr/microapps-cdk.IMicroApps",
4010
4012
  "type": {
4011
- "fqn": "@pwrdrvr/microapps-cdk.IMicroAppsS3"
4013
+ "fqn": "@pwrdrvr/microapps-cdk.IMicroAppsSvcs"
4012
4014
  }
4013
4015
  },
4014
4016
  {
4015
4017
  "docs": {
4016
4018
  "stability": "experimental",
4017
- "summary": "{@inheritdoc IMicroAppsSvcs}."
4019
+ "summary": "{@inheritdoc IMicroAppsAPIGwy}."
4018
4020
  },
4019
4021
  "immutable": true,
4020
4022
  "locationInModule": {
4021
4023
  "filename": "src/MicroApps.ts",
4022
- "line": 330
4024
+ "line": 357
4023
4025
  },
4024
- "name": "svcs",
4026
+ "name": "apigwy",
4027
+ "optional": true,
4025
4028
  "overrides": "@pwrdrvr/microapps-cdk.IMicroApps",
4026
4029
  "type": {
4027
- "fqn": "@pwrdrvr/microapps-cdk.IMicroAppsSvcs"
4030
+ "fqn": "@pwrdrvr/microapps-cdk.IMicroAppsAPIGwy"
4028
4031
  }
4029
4032
  },
4030
4033
  {
@@ -4035,7 +4038,7 @@
4035
4038
  "immutable": true,
4036
4039
  "locationInModule": {
4037
4040
  "filename": "src/MicroApps.ts",
4038
- "line": 315
4041
+ "line": 347
4039
4042
  },
4040
4043
  "name": "edgeToOrigin",
4041
4044
  "optional": true,
@@ -4329,7 +4332,7 @@
4329
4332
  },
4330
4333
  "locationInModule": {
4331
4334
  "filename": "src/MicroAppsCF.ts",
4332
- "line": 397
4335
+ "line": 409
4333
4336
  },
4334
4337
  "parameters": [
4335
4338
  {
@@ -4358,7 +4361,7 @@
4358
4361
  "kind": "class",
4359
4362
  "locationInModule": {
4360
4363
  "filename": "src/MicroAppsCF.ts",
4361
- "line": 232
4364
+ "line": 244
4362
4365
  },
4363
4366
  "methods": [
4364
4367
  {
@@ -4368,7 +4371,7 @@
4368
4371
  },
4369
4372
  "locationInModule": {
4370
4373
  "filename": "src/MicroAppsCF.ts",
4371
- "line": 291
4374
+ "line": 303
4372
4375
  },
4373
4376
  "name": "addRoutes",
4374
4377
  "parameters": [
@@ -4395,7 +4398,7 @@
4395
4398
  },
4396
4399
  "locationInModule": {
4397
4400
  "filename": "src/MicroAppsCF.ts",
4398
- "line": 246
4401
+ "line": 258
4399
4402
  },
4400
4403
  "name": "createAPIOriginPolicy",
4401
4404
  "parameters": [
@@ -4430,7 +4433,7 @@
4430
4433
  "immutable": true,
4431
4434
  "locationInModule": {
4432
4435
  "filename": "src/MicroAppsCF.ts",
4433
- "line": 393
4436
+ "line": 405
4434
4437
  },
4435
4438
  "name": "cloudFrontDistro",
4436
4439
  "overrides": "@pwrdrvr/microapps-cdk.IMicroAppsCF",
@@ -4472,22 +4475,6 @@
4472
4475
  "fqn": "aws-cdk-lib.aws_cloudfront_origins.S3Origin"
4473
4476
  }
4474
4477
  },
4475
- {
4476
- "abstract": true,
4477
- "docs": {
4478
- "stability": "experimental",
4479
- "summary": "API Gateway v2 HTTP API for apps."
4480
- },
4481
- "immutable": true,
4482
- "locationInModule": {
4483
- "filename": "src/MicroAppsCF.ts",
4484
- "line": 65
4485
- },
4486
- "name": "httpApi",
4487
- "type": {
4488
- "fqn": "@aws-cdk/aws-apigatewayv2-alpha.HttpApi"
4489
- }
4490
- },
4491
4478
  {
4492
4479
  "abstract": true,
4493
4480
  "docs": {
@@ -4563,7 +4550,7 @@
4563
4550
  {
4564
4551
  "abstract": true,
4565
4552
  "docs": {
4566
- "default": "true",
4553
+ "default": "true if httpApi is provided",
4567
4554
  "remarks": "When false API routes with a period in the path will get routed to S3.\n\nWhen true API routes that contain /api/ in the path will get routed to API Gateway\neven if they have a period in the path.",
4568
4555
  "stability": "experimental",
4569
4556
  "summary": "Create an extra Behavior (Route) for /api/ that allows API routes to have a period in them."
@@ -4582,7 +4569,7 @@
4582
4569
  {
4583
4570
  "abstract": true,
4584
4571
  "docs": {
4585
- "default": "true",
4572
+ "default": "true if httpApi is provided",
4586
4573
  "remarks": "When false API routes with a period in the path will get routed to S3.\n\nWhen true API routes that contain /_next/data/ in the path will get routed to API Gateway\neven if they have a period in the path.",
4587
4574
  "stability": "experimental",
4588
4575
  "summary": "Create an extra Behavior (Route) for /_next/data/ This route is used by Next.js to load data from the API Gateway on `getServerSideProps` calls. The requests can end in `.json`, which would cause them to be routed to S3 if this route is not created."
@@ -4659,6 +4646,42 @@
4659
4646
  }
4660
4647
  }
4661
4648
  },
4649
+ {
4650
+ "abstract": true,
4651
+ "docs": {
4652
+ "stability": "experimental",
4653
+ "summary": "API Gateway v2 HTTP API for apps."
4654
+ },
4655
+ "immutable": true,
4656
+ "locationInModule": {
4657
+ "filename": "src/MicroAppsCF.ts",
4658
+ "line": 65
4659
+ },
4660
+ "name": "httpApi",
4661
+ "optional": true,
4662
+ "type": {
4663
+ "fqn": "@aws-cdk/aws-apigatewayv2-alpha.HttpApi"
4664
+ }
4665
+ },
4666
+ {
4667
+ "abstract": true,
4668
+ "docs": {
4669
+ "default": "- none",
4670
+ "remarks": "This should be the region where the DynamoDB is located so the\nEdgeToOrigin calls have the lowest latency (~1 ms).",
4671
+ "stability": "experimental",
4672
+ "summary": "Optional Origin Shield Region."
4673
+ },
4674
+ "immutable": true,
4675
+ "locationInModule": {
4676
+ "filename": "src/MicroAppsCF.ts",
4677
+ "line": 143
4678
+ },
4679
+ "name": "originShieldRegion",
4680
+ "optional": true,
4681
+ "type": {
4682
+ "primitive": "string"
4683
+ }
4684
+ },
4662
4685
  {
4663
4686
  "abstract": true,
4664
4687
  "docs": {
@@ -4730,7 +4753,7 @@
4730
4753
  },
4731
4754
  "locationInModule": {
4732
4755
  "filename": "src/MicroAppsEdgeToOrigin.ts",
4733
- "line": 159
4756
+ "line": 166
4734
4757
  },
4735
4758
  "parameters": [
4736
4759
  {
@@ -4759,7 +4782,7 @@
4759
4782
  "kind": "class",
4760
4783
  "locationInModule": {
4761
4784
  "filename": "src/MicroAppsEdgeToOrigin.ts",
4762
- "line": 134
4785
+ "line": 141
4763
4786
  },
4764
4787
  "methods": [
4765
4788
  {
@@ -4770,7 +4793,7 @@
4770
4793
  },
4771
4794
  "locationInModule": {
4772
4795
  "filename": "src/MicroAppsEdgeToOrigin.ts",
4773
- "line": 140
4796
+ "line": 147
4774
4797
  },
4775
4798
  "name": "generateEdgeToOriginConfig",
4776
4799
  "parameters": [
@@ -4800,7 +4823,7 @@
4800
4823
  "immutable": true,
4801
4824
  "locationInModule": {
4802
4825
  "filename": "src/MicroAppsEdgeToOrigin.ts",
4803
- "line": 150
4826
+ "line": 157
4804
4827
  },
4805
4828
  "name": "edgeToOriginFunction",
4806
4829
  "overrides": "@pwrdrvr/microapps-cdk.IMicroAppsEdgeToOrigin",
@@ -4825,7 +4848,7 @@
4825
4848
  "immutable": true,
4826
4849
  "locationInModule": {
4827
4850
  "filename": "src/MicroAppsEdgeToOrigin.ts",
4828
- "line": 155
4851
+ "line": 162
4829
4852
  },
4830
4853
  "name": "edgeToOriginLambdas",
4831
4854
  "overrides": "@pwrdrvr/microapps-cdk.IMicroAppsEdgeToOrigin",
@@ -4987,6 +5010,24 @@
4987
5010
  "primitive": "string"
4988
5011
  }
4989
5012
  },
5013
+ {
5014
+ "abstract": true,
5015
+ "docs": {
5016
+ "default": "false",
5017
+ "stability": "experimental",
5018
+ "summary": "Enable invoking API Gateway from the Edge Lambda."
5019
+ },
5020
+ "immutable": true,
5021
+ "locationInModule": {
5022
+ "filename": "src/MicroAppsEdgeToOrigin.ts",
5023
+ "line": 126
5024
+ },
5025
+ "name": "setupApiGatewayPermissions",
5026
+ "optional": true,
5027
+ "type": {
5028
+ "primitive": "boolean"
5029
+ }
5030
+ },
4990
5031
  {
4991
5032
  "abstract": true,
4992
5033
  "docs": {
@@ -5070,7 +5111,7 @@
5070
5111
  "immutable": true,
5071
5112
  "locationInModule": {
5072
5113
  "filename": "src/MicroApps.ts",
5073
- "line": 203
5114
+ "line": 225
5074
5115
  },
5075
5116
  "name": "addXForwardedHostHeader",
5076
5117
  "optional": true,
@@ -5150,6 +5191,24 @@
5150
5191
  "fqn": "aws-cdk-lib.aws_certificatemanager.ICertificate"
5151
5192
  }
5152
5193
  },
5194
+ {
5195
+ "abstract": true,
5196
+ "docs": {
5197
+ "default": "false",
5198
+ "stability": "experimental",
5199
+ "summary": "Create API Gateway for non-edge invocation."
5200
+ },
5201
+ "immutable": true,
5202
+ "locationInModule": {
5203
+ "filename": "src/MicroApps.ts",
5204
+ "line": 186
5205
+ },
5206
+ "name": "createAPIGateway",
5207
+ "optional": true,
5208
+ "type": {
5209
+ "primitive": "boolean"
5210
+ }
5211
+ },
5153
5212
  {
5154
5213
  "abstract": true,
5155
5214
  "docs": {
@@ -5161,7 +5220,7 @@
5161
5220
  "immutable": true,
5162
5221
  "locationInModule": {
5163
5222
  "filename": "src/MicroApps.ts",
5164
- "line": 192
5223
+ "line": 199
5165
5224
  },
5166
5225
  "name": "createAPIPathRoute",
5167
5226
  "optional": true,
@@ -5169,6 +5228,25 @@
5169
5228
  "primitive": "boolean"
5170
5229
  }
5171
5230
  },
5231
+ {
5232
+ "abstract": true,
5233
+ "docs": {
5234
+ "default": "true",
5235
+ "remarks": "When false API routes with a period in the path will get routed to S3.\n\nWhen true API routes that contain /_next/data/ in the path will get routed to API Gateway\neven if they have a period in the path.",
5236
+ "stability": "experimental",
5237
+ "summary": "Create an extra Behavior (Route) for /_next/data/ This route is used by Next.js to load data from the API Gateway on `getServerSideProps` calls. The requests can end in `.json`, which would cause them to be routed to S3 if this route is not created."
5238
+ },
5239
+ "immutable": true,
5240
+ "locationInModule": {
5241
+ "filename": "src/MicroApps.ts",
5242
+ "line": 214
5243
+ },
5244
+ "name": "createNextDataPathRoute",
5245
+ "optional": true,
5246
+ "type": {
5247
+ "primitive": "boolean"
5248
+ }
5249
+ },
5172
5250
  {
5173
5251
  "abstract": true,
5174
5252
  "docs": {
@@ -5216,7 +5294,7 @@
5216
5294
  "immutable": true,
5217
5295
  "locationInModule": {
5218
5296
  "filename": "src/MicroApps.ts",
5219
- "line": 265
5297
+ "line": 297
5220
5298
  },
5221
5299
  "name": "edgeLambdas",
5222
5300
  "optional": true,
@@ -5234,12 +5312,12 @@
5234
5312
  "docs": {
5235
5313
  "default": "undefined",
5236
5314
  "stability": "experimental",
5237
- "summary": "Origin region that API Gateway will be deployed to, used for the config.yml on the Edge function to sign requests for the correct region."
5315
+ "summary": "Origin region that API Gateway or Lambda function will be deployed to, used for the config.yml on the Edge function to sign requests for the correct region."
5238
5316
  },
5239
5317
  "immutable": true,
5240
5318
  "locationInModule": {
5241
5319
  "filename": "src/MicroApps.ts",
5242
- "line": 237
5320
+ "line": 259
5243
5321
  },
5244
5322
  "name": "originRegion",
5245
5323
  "optional": true,
@@ -5247,6 +5325,25 @@
5247
5325
  "primitive": "string"
5248
5326
  }
5249
5327
  },
5328
+ {
5329
+ "abstract": true,
5330
+ "docs": {
5331
+ "default": "originRegion if specified, otherwise undefined",
5332
+ "remarks": "This should be the region where the DynamoDB is located so the\nEdgeToOrigin calls have the lowest latency (~1 ms).",
5333
+ "stability": "experimental",
5334
+ "summary": "Optional Origin Shield Region."
5335
+ },
5336
+ "immutable": true,
5337
+ "locationInModule": {
5338
+ "filename": "src/MicroApps.ts",
5339
+ "line": 269
5340
+ },
5341
+ "name": "originShieldRegion",
5342
+ "optional": true,
5343
+ "type": {
5344
+ "primitive": "string"
5345
+ }
5346
+ },
5250
5347
  {
5251
5348
  "abstract": true,
5252
5349
  "docs": {
@@ -5294,7 +5391,7 @@
5294
5391
  "immutable": true,
5295
5392
  "locationInModule": {
5296
5393
  "filename": "src/MicroApps.ts",
5297
- "line": 215
5394
+ "line": 237
5298
5395
  },
5299
5396
  "name": "replaceHostHeader",
5300
5397
  "optional": true,
@@ -5400,7 +5497,7 @@
5400
5497
  "immutable": true,
5401
5498
  "locationInModule": {
5402
5499
  "filename": "src/MicroApps.ts",
5403
- "line": 228
5500
+ "line": 250
5404
5501
  },
5405
5502
  "name": "signingMode",
5406
5503
  "optional": true,
@@ -5421,7 +5518,7 @@
5421
5518
  "immutable": true,
5422
5519
  "locationInModule": {
5423
5520
  "filename": "src/MicroApps.ts",
5424
- "line": 253
5521
+ "line": 285
5425
5522
  },
5426
5523
  "name": "table",
5427
5524
  "optional": true,
@@ -5439,7 +5536,7 @@
5439
5536
  "immutable": true,
5440
5537
  "locationInModule": {
5441
5538
  "filename": "src/MicroApps.ts",
5442
- "line": 260
5539
+ "line": 292
5443
5540
  },
5444
5541
  "name": "tableNameForEdgeToOrigin",
5445
5542
  "optional": true,
@@ -5465,7 +5562,7 @@
5465
5562
  },
5466
5563
  "locationInModule": {
5467
5564
  "filename": "src/MicroAppsS3.ts",
5468
- "line": 120
5565
+ "line": 130
5469
5566
  },
5470
5567
  "parameters": [
5471
5568
  {
@@ -5495,7 +5592,7 @@
5495
5592
  "kind": "class",
5496
5593
  "locationInModule": {
5497
5594
  "filename": "src/MicroAppsS3.ts",
5498
- "line": 94
5595
+ "line": 104
5499
5596
  },
5500
5597
  "name": "MicroAppsS3",
5501
5598
  "properties": [
@@ -5507,7 +5604,7 @@
5507
5604
  "immutable": true,
5508
5605
  "locationInModule": {
5509
5606
  "filename": "src/MicroAppsS3.ts",
5510
- "line": 96
5607
+ "line": 106
5511
5608
  },
5512
5609
  "name": "bucketApps",
5513
5610
  "overrides": "@pwrdrvr/microapps-cdk.IMicroAppsS3",
@@ -5523,7 +5620,7 @@
5523
5620
  "immutable": true,
5524
5621
  "locationInModule": {
5525
5622
  "filename": "src/MicroAppsS3.ts",
5526
- "line": 101
5623
+ "line": 111
5527
5624
  },
5528
5625
  "name": "bucketAppsOAI",
5529
5626
  "overrides": "@pwrdrvr/microapps-cdk.IMicroAppsS3",
@@ -5539,7 +5636,7 @@
5539
5636
  "immutable": true,
5540
5637
  "locationInModule": {
5541
5638
  "filename": "src/MicroAppsS3.ts",
5542
- "line": 106
5639
+ "line": 116
5543
5640
  },
5544
5641
  "name": "bucketAppsOrigin",
5545
5642
  "overrides": "@pwrdrvr/microapps-cdk.IMicroAppsS3",
@@ -5555,7 +5652,7 @@
5555
5652
  "immutable": true,
5556
5653
  "locationInModule": {
5557
5654
  "filename": "src/MicroAppsS3.ts",
5558
- "line": 111
5655
+ "line": 121
5559
5656
  },
5560
5657
  "name": "bucketAppsStaging",
5561
5658
  "overrides": "@pwrdrvr/microapps-cdk.IMicroAppsS3",
@@ -5571,7 +5668,7 @@
5571
5668
  "immutable": true,
5572
5669
  "locationInModule": {
5573
5670
  "filename": "src/MicroAppsS3.ts",
5574
- "line": 116
5671
+ "line": 126
5575
5672
  },
5576
5673
  "name": "bucketLogs",
5577
5674
  "overrides": "@pwrdrvr/microapps-cdk.IMicroAppsS3",
@@ -5689,6 +5786,25 @@
5689
5786
  "primitive": "string"
5690
5787
  }
5691
5788
  },
5789
+ {
5790
+ "abstract": true,
5791
+ "docs": {
5792
+ "default": "- none",
5793
+ "remarks": "This should be the region where the DynamoDB is located so the\nEdgeToOrigin calls have the lowest latency (~1 ms).",
5794
+ "stability": "experimental",
5795
+ "summary": "Optional Origin Shield Region."
5796
+ },
5797
+ "immutable": true,
5798
+ "locationInModule": {
5799
+ "filename": "src/MicroAppsS3.ts",
5800
+ "line": 95
5801
+ },
5802
+ "name": "originShieldRegion",
5803
+ "optional": true,
5804
+ "type": {
5805
+ "primitive": "string"
5806
+ }
5807
+ },
5692
5808
  {
5693
5809
  "abstract": true,
5694
5810
  "docs": {
@@ -5892,33 +6008,36 @@
5892
6008
  {
5893
6009
  "abstract": true,
5894
6010
  "docs": {
6011
+ "default": "- resource names auto assigned",
6012
+ "example": "microapps",
5895
6013
  "stability": "experimental",
5896
- "summary": "API Gateway v2 HTTP for Router and app."
6014
+ "summary": "Optional asset name root."
5897
6015
  },
5898
6016
  "immutable": true,
5899
6017
  "locationInModule": {
5900
6018
  "filename": "src/MicroAppsSvcs.ts",
5901
- "line": 47
6019
+ "line": 61
5902
6020
  },
5903
- "name": "httpApi",
6021
+ "name": "assetNameRoot",
6022
+ "optional": true,
5904
6023
  "type": {
5905
- "fqn": "@aws-cdk/aws-apigatewayv2-alpha.HttpApi"
6024
+ "primitive": "string"
5906
6025
  }
5907
6026
  },
5908
6027
  {
5909
6028
  "abstract": true,
5910
6029
  "docs": {
5911
- "default": "- resource names auto assigned",
5912
- "example": "microapps",
6030
+ "default": "none",
6031
+ "example": "-dev-pr-12",
5913
6032
  "stability": "experimental",
5914
- "summary": "Optional asset name root."
6033
+ "summary": "Optional asset name suffix."
5915
6034
  },
5916
6035
  "immutable": true,
5917
6036
  "locationInModule": {
5918
6037
  "filename": "src/MicroAppsSvcs.ts",
5919
- "line": 61
6038
+ "line": 69
5920
6039
  },
5921
- "name": "assetNameRoot",
6040
+ "name": "assetNameSuffix",
5922
6041
  "optional": true,
5923
6042
  "type": {
5924
6043
  "primitive": "string"
@@ -5927,20 +6046,18 @@
5927
6046
  {
5928
6047
  "abstract": true,
5929
6048
  "docs": {
5930
- "default": "none",
5931
- "example": "-dev-pr-12",
5932
6049
  "stability": "experimental",
5933
- "summary": "Optional asset name suffix."
6050
+ "summary": "API Gateway v2 HTTP for Router and app."
5934
6051
  },
5935
6052
  "immutable": true,
5936
6053
  "locationInModule": {
5937
6054
  "filename": "src/MicroAppsSvcs.ts",
5938
- "line": 69
6055
+ "line": 47
5939
6056
  },
5940
- "name": "assetNameSuffix",
6057
+ "name": "httpApi",
5941
6058
  "optional": true,
5942
6059
  "type": {
5943
- "primitive": "string"
6060
+ "fqn": "@aws-cdk/aws-apigatewayv2-alpha.HttpApi"
5944
6061
  }
5945
6062
  },
5946
6063
  {
@@ -6238,6 +6355,6 @@
6238
6355
  "symbolId": "src/MicroAppsTable:MicroAppsTableProps"
6239
6356
  }
6240
6357
  },
6241
- "version": "0.3.3-alpha.1",
6242
- "fingerprint": "we/Nm4BO2nQKfcx99/H2WR1RlO1CZ+g1sOvwSGNX7Zo="
6358
+ "version": "0.3.4-rc1",
6359
+ "fingerprint": "iaLk6f3pe0Noc6NDBmtdrbmIG2QFx/GfdCK9G1P/kb8="
6243
6360
  }