@aws-solutions-constructs/aws-cloudfront-s3 2.71.0 → 2.72.0

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.
Files changed (92) hide show
  1. package/.jsii +6 -6
  2. package/lib/index.js +3 -3
  3. package/package.json +8 -8
  4. package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/asset.4dc48ffba382f93077a1e6824599bbd4ceb6f91eb3d9442eca3b85bdb1a20b1e/framework.js +3 -0
  5. package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/cdk.out +1 -1
  6. package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.assets.json +6 -6
  7. package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.template.json +6 -2
  8. package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/cfts3bucketencryptedwithcmkprovidedasexistingbucketIntegDefaultTestDeployAssertF6031114.assets.json +1 -1
  9. package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/integ.json +1 -1
  10. package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/manifest.json +10 -2
  11. package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/tree.json +75 -71
  12. package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/cdk.out +1 -1
  13. package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.assets.json +3 -3
  14. package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.template.json +5 -1
  15. package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/cfts3bucketencryptedwithmanagedkeyprovidedasexistingbucketIntegDefaultTestDeployAssert03A82C16.assets.json +1 -1
  16. package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/integ.json +1 -1
  17. package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/manifest.json +10 -2
  18. package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/tree.json +47 -43
  19. package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/asset.4dc48ffba382f93077a1e6824599bbd4ceb6f91eb3d9442eca3b85bdb1a20b1e/framework.js +3 -0
  20. package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/cdk.out +1 -1
  21. package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/cfts3-cmk-provided-as-bucket-prop.assets.json +6 -6
  22. package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/cfts3-cmk-provided-as-bucket-prop.template.json +6 -2
  23. package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/cfts3cmkprovidedasbucketpropIntegDefaultTestDeployAssert38E63D55.assets.json +1 -1
  24. package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/integ.json +1 -1
  25. package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/manifest.json +10 -2
  26. package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/tree.json +73 -69
  27. package/test/integ.cfts3-custom-headers.js.snapshot/cdk.out +1 -1
  28. package/test/integ.cfts3-custom-headers.js.snapshot/cfts3-custom-headers.assets.json +3 -3
  29. package/test/integ.cfts3-custom-headers.js.snapshot/cfts3-custom-headers.template.json +5 -1
  30. package/test/integ.cfts3-custom-headers.js.snapshot/cfts3customheadersIntegDefaultTestDeployAssert6EEC9973.assets.json +1 -1
  31. package/test/integ.cfts3-custom-headers.js.snapshot/integ.json +1 -1
  32. package/test/integ.cfts3-custom-headers.js.snapshot/manifest.json +10 -2
  33. package/test/integ.cfts3-custom-headers.js.snapshot/tree.json +51 -47
  34. package/test/integ.cfts3-custom-originPath.js.snapshot/cdk.out +1 -1
  35. package/test/integ.cfts3-custom-originPath.js.snapshot/cfts3-custom-originPath.assets.json +3 -3
  36. package/test/integ.cfts3-custom-originPath.js.snapshot/cfts3-custom-originPath.template.json +5 -1
  37. package/test/integ.cfts3-custom-originPath.js.snapshot/cfts3customoriginPathIntegDefaultTestDeployAssert61F499B2.assets.json +1 -1
  38. package/test/integ.cfts3-custom-originPath.js.snapshot/integ.json +1 -1
  39. package/test/integ.cfts3-custom-originPath.js.snapshot/manifest.json +10 -2
  40. package/test/integ.cfts3-custom-originPath.js.snapshot/tree.json +49 -45
  41. package/test/integ.cfts3-customLoggingBuckets.js.snapshot/cdk.out +1 -1
  42. package/test/integ.cfts3-customLoggingBuckets.js.snapshot/cfts3-customLoggingBuckets.assets.json +3 -3
  43. package/test/integ.cfts3-customLoggingBuckets.js.snapshot/cfts3-customLoggingBuckets.template.json +5 -1
  44. package/test/integ.cfts3-customLoggingBuckets.js.snapshot/cfts3customLoggingBucketsIntegDefaultTestDeployAssert4D171F9F.assets.json +1 -1
  45. package/test/integ.cfts3-customLoggingBuckets.js.snapshot/integ.json +1 -1
  46. package/test/integ.cfts3-customLoggingBuckets.js.snapshot/manifest.json +10 -2
  47. package/test/integ.cfts3-customLoggingBuckets.js.snapshot/tree.json +49 -45
  48. package/test/integ.cfts3-existing-bucket.js.snapshot/cdk.out +1 -1
  49. package/test/integ.cfts3-existing-bucket.js.snapshot/cfts3-existing-bucket.assets.json +3 -3
  50. package/test/integ.cfts3-existing-bucket.js.snapshot/cfts3-existing-bucket.template.json +5 -1
  51. package/test/integ.cfts3-existing-bucket.js.snapshot/cfts3existingbucketIntegDefaultTestDeployAssertA6D4EB49.assets.json +1 -1
  52. package/test/integ.cfts3-existing-bucket.js.snapshot/integ.json +1 -1
  53. package/test/integ.cfts3-existing-bucket.js.snapshot/manifest.json +10 -2
  54. package/test/integ.cfts3-existing-bucket.js.snapshot/tree.json +53 -49
  55. package/test/integ.cfts3-no-arguments.js.snapshot/cdk.out +1 -1
  56. package/test/integ.cfts3-no-arguments.js.snapshot/cfts3-no-arguments.assets.json +3 -3
  57. package/test/integ.cfts3-no-arguments.js.snapshot/cfts3-no-arguments.template.json +5 -1
  58. package/test/integ.cfts3-no-arguments.js.snapshot/cfts3noargumentsIntegDefaultTestDeployAssertBA5AFA25.assets.json +1 -1
  59. package/test/integ.cfts3-no-arguments.js.snapshot/integ.json +1 -1
  60. package/test/integ.cfts3-no-arguments.js.snapshot/manifest.json +10 -2
  61. package/test/integ.cfts3-no-arguments.js.snapshot/tree.json +49 -45
  62. package/test/integ.cfts3-no-cloudfront-s3-access-logs.js.snapshot/cdk.out +1 -1
  63. package/test/integ.cfts3-no-cloudfront-s3-access-logs.js.snapshot/cfts3-no-cloudfront-s3-access-logs.assets.json +3 -3
  64. package/test/integ.cfts3-no-cloudfront-s3-access-logs.js.snapshot/cfts3-no-cloudfront-s3-access-logs.template.json +5 -1
  65. package/test/integ.cfts3-no-cloudfront-s3-access-logs.js.snapshot/cfts3nocloudfronts3accesslogsIntegDefaultTestDeployAssertAD28C87A.assets.json +1 -1
  66. package/test/integ.cfts3-no-cloudfront-s3-access-logs.js.snapshot/integ.json +1 -1
  67. package/test/integ.cfts3-no-cloudfront-s3-access-logs.js.snapshot/manifest.json +10 -2
  68. package/test/integ.cfts3-no-cloudfront-s3-access-logs.js.snapshot/tree.json +37 -33
  69. package/test/integ.cfts3-no-logging.js.snapshot/cdk.out +1 -1
  70. package/test/integ.cfts3-no-logging.js.snapshot/cfts3-no-logging.assets.json +3 -3
  71. package/test/integ.cfts3-no-logging.js.snapshot/cfts3-no-logging.template.json +5 -1
  72. package/test/integ.cfts3-no-logging.js.snapshot/cfts3nologgingIntegDefaultTestDeployAssert18393DDB.assets.json +1 -1
  73. package/test/integ.cfts3-no-logging.js.snapshot/integ.json +1 -1
  74. package/test/integ.cfts3-no-logging.js.snapshot/manifest.json +10 -2
  75. package/test/integ.cfts3-no-logging.js.snapshot/tree.json +31 -27
  76. package/test/integ.cfts3-no-security-headers.js.snapshot/cdk.out +1 -1
  77. package/test/integ.cfts3-no-security-headers.js.snapshot/cfts3-no-security-headers.assets.json +3 -3
  78. package/test/integ.cfts3-no-security-headers.js.snapshot/cfts3-no-security-headers.template.json +5 -1
  79. package/test/integ.cfts3-no-security-headers.js.snapshot/cfts3nosecurityheadersIntegDefaultTestDeployAssert38FE05BE.assets.json +1 -1
  80. package/test/integ.cfts3-no-security-headers.js.snapshot/integ.json +1 -1
  81. package/test/integ.cfts3-no-security-headers.js.snapshot/manifest.json +10 -2
  82. package/test/integ.cfts3-no-security-headers.js.snapshot/tree.json +47 -43
  83. package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/asset.d9861ea7a45affd23e47a614acb2fddc6e45c20a891284c958187dafbf9ee36b/framework.js +0 -3
  84. package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/asset.d9861ea7a45affd23e47a614acb2fddc6e45c20a891284c958187dafbf9ee36b/framework.js +0 -3
  85. /package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/{asset.d9861ea7a45affd23e47a614acb2fddc6e45c20a891284c958187dafbf9ee36b → asset.4dc48ffba382f93077a1e6824599bbd4ceb6f91eb3d9442eca3b85bdb1a20b1e}/cfn-response.js +0 -0
  86. /package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/{asset.d9861ea7a45affd23e47a614acb2fddc6e45c20a891284c958187dafbf9ee36b → asset.4dc48ffba382f93077a1e6824599bbd4ceb6f91eb3d9442eca3b85bdb1a20b1e}/consts.js +0 -0
  87. /package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/{asset.d9861ea7a45affd23e47a614acb2fddc6e45c20a891284c958187dafbf9ee36b → asset.4dc48ffba382f93077a1e6824599bbd4ceb6f91eb3d9442eca3b85bdb1a20b1e}/outbound.js +0 -0
  88. /package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/{asset.d9861ea7a45affd23e47a614acb2fddc6e45c20a891284c958187dafbf9ee36b → asset.4dc48ffba382f93077a1e6824599bbd4ceb6f91eb3d9442eca3b85bdb1a20b1e}/util.js +0 -0
  89. /package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/{asset.d9861ea7a45affd23e47a614acb2fddc6e45c20a891284c958187dafbf9ee36b → asset.4dc48ffba382f93077a1e6824599bbd4ceb6f91eb3d9442eca3b85bdb1a20b1e}/cfn-response.js +0 -0
  90. /package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/{asset.d9861ea7a45affd23e47a614acb2fddc6e45c20a891284c958187dafbf9ee36b → asset.4dc48ffba382f93077a1e6824599bbd4ceb6f91eb3d9442eca3b85bdb1a20b1e}/consts.js +0 -0
  91. /package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/{asset.d9861ea7a45affd23e47a614acb2fddc6e45c20a891284c958187dafbf9ee36b → asset.4dc48ffba382f93077a1e6824599bbd4ceb6f91eb3d9442eca3b85bdb1a20b1e}/outbound.js +0 -0
  92. /package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/{asset.d9861ea7a45affd23e47a614acb2fddc6e45c20a891284c958187dafbf9ee36b → asset.4dc48ffba382f93077a1e6824599bbd4ceb6f91eb3d9442eca3b85bdb1a20b1e}/util.js +0 -0
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "36.0.0",
2
+ "version": "38.0.1",
3
3
  "artifacts": {
4
4
  "cfts3bucketencryptedwithmanagedkeyprovidedasexistingbucketIntegDefaultTestDeployAssert03A82C16.assets": {
5
5
  "type": "cdk:asset-manifest",
@@ -16,6 +16,7 @@
16
16
  "templateFile": "cfts3bucketencryptedwithmanagedkeyprovidedasexistingbucketIntegDefaultTestDeployAssert03A82C16.template.json",
17
17
  "terminationProtection": false,
18
18
  "validateOnSynth": false,
19
+ "notificationArns": [],
19
20
  "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}",
20
21
  "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}",
21
22
  "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22.json",
@@ -64,9 +65,10 @@
64
65
  "templateFile": "cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.template.json",
65
66
  "terminationProtection": false,
66
67
  "validateOnSynth": false,
68
+ "notificationArns": [],
67
69
  "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}",
68
70
  "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}",
69
- "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/610a9f96763e71a36144d02b6a282132461f958137d7f830085f89b26e0fca93.json",
71
+ "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a19c7e27a7bb089090dde0e096b4e31a89bdb3b94abe033041e486d6029d6829.json",
70
72
  "requiresBootstrapStackVersion": 6,
71
73
  "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
72
74
  "additionalDependencies": [
@@ -106,6 +108,12 @@
106
108
  "data": "LatestNodeRuntimeMap"
107
109
  }
108
110
  ],
111
+ "/cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket/Custom::S3AutoDeleteObjectsCustomResourceProvider": [
112
+ {
113
+ "type": "aws:cdk:is-custom-resource-handler-customResourceProvider",
114
+ "data": true
115
+ }
116
+ ],
109
117
  "/cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role": [
110
118
  {
111
119
  "type": "aws:cdk:logicalId",
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "constructInfo": {
48
48
  "fqn": "aws-cdk-lib.aws_s3.CfnBucket",
49
- "version": "2.149.0"
49
+ "version": "2.160.0"
50
50
  }
51
51
  },
52
52
  "Policy": {
@@ -180,13 +180,13 @@
180
180
  },
181
181
  "constructInfo": {
182
182
  "fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
183
- "version": "2.149.0"
183
+ "version": "2.160.0"
184
184
  }
185
185
  }
186
186
  },
187
187
  "constructInfo": {
188
188
  "fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
189
- "version": "2.149.0"
189
+ "version": "2.160.0"
190
190
  }
191
191
  },
192
192
  "AutoDeleteObjectsCustomResource": {
@@ -198,19 +198,19 @@
198
198
  "path": "cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket/existing-s3-bucket-encrypted-with-s3-managed-keyS3LoggingBucket/AutoDeleteObjectsCustomResource/Default",
199
199
  "constructInfo": {
200
200
  "fqn": "aws-cdk-lib.CfnResource",
201
- "version": "2.149.0"
201
+ "version": "2.160.0"
202
202
  }
203
203
  }
204
204
  },
205
205
  "constructInfo": {
206
206
  "fqn": "aws-cdk-lib.CustomResource",
207
- "version": "2.149.0"
207
+ "version": "2.160.0"
208
208
  }
209
209
  }
210
210
  },
211
211
  "constructInfo": {
212
212
  "fqn": "aws-cdk-lib.aws_s3.Bucket",
213
- "version": "2.149.0"
213
+ "version": "2.160.0"
214
214
  }
215
215
  },
216
216
  "LatestNodeRuntimeMap": {
@@ -218,7 +218,7 @@
218
218
  "path": "cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket/LatestNodeRuntimeMap",
219
219
  "constructInfo": {
220
220
  "fqn": "aws-cdk-lib.CfnMapping",
221
- "version": "2.149.0"
221
+ "version": "2.160.0"
222
222
  }
223
223
  },
224
224
  "Custom::S3AutoDeleteObjectsCustomResourceProvider": {
@@ -230,7 +230,7 @@
230
230
  "path": "cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket/Custom::S3AutoDeleteObjectsCustomResourceProvider/Staging",
231
231
  "constructInfo": {
232
232
  "fqn": "aws-cdk-lib.AssetStaging",
233
- "version": "2.149.0"
233
+ "version": "2.160.0"
234
234
  }
235
235
  },
236
236
  "Role": {
@@ -238,7 +238,7 @@
238
238
  "path": "cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role",
239
239
  "constructInfo": {
240
240
  "fqn": "aws-cdk-lib.CfnResource",
241
- "version": "2.149.0"
241
+ "version": "2.160.0"
242
242
  }
243
243
  },
244
244
  "Handler": {
@@ -246,13 +246,13 @@
246
246
  "path": "cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler",
247
247
  "constructInfo": {
248
248
  "fqn": "aws-cdk-lib.CfnResource",
249
- "version": "2.149.0"
249
+ "version": "2.160.0"
250
250
  }
251
251
  }
252
252
  },
253
253
  "constructInfo": {
254
254
  "fqn": "aws-cdk-lib.CustomResourceProviderBase",
255
- "version": "2.149.0"
255
+ "version": "2.160.0"
256
256
  }
257
257
  },
258
258
  "existing-s3-bucket-encrypted-with-s3-managed-keyS3Bucket": {
@@ -311,7 +311,7 @@
311
311
  },
312
312
  "constructInfo": {
313
313
  "fqn": "aws-cdk-lib.aws_s3.CfnBucket",
314
- "version": "2.149.0"
314
+ "version": "2.160.0"
315
315
  }
316
316
  },
317
317
  "Policy": {
@@ -410,7 +410,11 @@
410
410
  "Fn::Join": [
411
411
  "",
412
412
  [
413
- "arn:aws:cloudfront::",
413
+ "arn:",
414
+ {
415
+ "Ref": "AWS::Partition"
416
+ },
417
+ ":cloudfront::",
414
418
  {
415
419
  "Ref": "AWS::AccountId"
416
420
  },
@@ -449,13 +453,13 @@
449
453
  },
450
454
  "constructInfo": {
451
455
  "fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
452
- "version": "2.149.0"
456
+ "version": "2.160.0"
453
457
  }
454
458
  }
455
459
  },
456
460
  "constructInfo": {
457
461
  "fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
458
- "version": "2.149.0"
462
+ "version": "2.160.0"
459
463
  }
460
464
  },
461
465
  "AutoDeleteObjectsCustomResource": {
@@ -467,19 +471,19 @@
467
471
  "path": "cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket/existing-s3-bucket-encrypted-with-s3-managed-keyS3Bucket/AutoDeleteObjectsCustomResource/Default",
468
472
  "constructInfo": {
469
473
  "fqn": "aws-cdk-lib.CfnResource",
470
- "version": "2.149.0"
474
+ "version": "2.160.0"
471
475
  }
472
476
  }
473
477
  },
474
478
  "constructInfo": {
475
479
  "fqn": "aws-cdk-lib.CustomResource",
476
- "version": "2.149.0"
480
+ "version": "2.160.0"
477
481
  }
478
482
  }
479
483
  },
480
484
  "constructInfo": {
481
485
  "fqn": "aws-cdk-lib.aws_s3.Bucket",
482
- "version": "2.149.0"
486
+ "version": "2.160.0"
483
487
  }
484
488
  },
485
489
  "test-cloudfront-s3-managed-key": {
@@ -524,7 +528,7 @@
524
528
  },
525
529
  "constructInfo": {
526
530
  "fqn": "aws-cdk-lib.aws_s3.CfnBucket",
527
- "version": "2.149.0"
531
+ "version": "2.160.0"
528
532
  }
529
533
  },
530
534
  "Policy": {
@@ -658,13 +662,13 @@
658
662
  },
659
663
  "constructInfo": {
660
664
  "fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
661
- "version": "2.149.0"
665
+ "version": "2.160.0"
662
666
  }
663
667
  }
664
668
  },
665
669
  "constructInfo": {
666
670
  "fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
667
- "version": "2.149.0"
671
+ "version": "2.160.0"
668
672
  }
669
673
  },
670
674
  "AutoDeleteObjectsCustomResource": {
@@ -676,19 +680,19 @@
676
680
  "path": "cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket/test-cloudfront-s3-managed-key/CloudfrontLoggingBucketAccessLog/AutoDeleteObjectsCustomResource/Default",
677
681
  "constructInfo": {
678
682
  "fqn": "aws-cdk-lib.CfnResource",
679
- "version": "2.149.0"
683
+ "version": "2.160.0"
680
684
  }
681
685
  }
682
686
  },
683
687
  "constructInfo": {
684
688
  "fqn": "aws-cdk-lib.CustomResource",
685
- "version": "2.149.0"
689
+ "version": "2.160.0"
686
690
  }
687
691
  }
688
692
  },
689
693
  "constructInfo": {
690
694
  "fqn": "aws-cdk-lib.aws_s3.Bucket",
691
- "version": "2.149.0"
695
+ "version": "2.160.0"
692
696
  }
693
697
  },
694
698
  "CloudfrontLoggingBucket": {
@@ -741,7 +745,7 @@
741
745
  },
742
746
  "constructInfo": {
743
747
  "fqn": "aws-cdk-lib.aws_s3.CfnBucket",
744
- "version": "2.149.0"
748
+ "version": "2.160.0"
745
749
  }
746
750
  },
747
751
  "Policy": {
@@ -839,13 +843,13 @@
839
843
  },
840
844
  "constructInfo": {
841
845
  "fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
842
- "version": "2.149.0"
846
+ "version": "2.160.0"
843
847
  }
844
848
  }
845
849
  },
846
850
  "constructInfo": {
847
851
  "fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
848
- "version": "2.149.0"
852
+ "version": "2.160.0"
849
853
  }
850
854
  },
851
855
  "AutoDeleteObjectsCustomResource": {
@@ -857,19 +861,19 @@
857
861
  "path": "cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket/test-cloudfront-s3-managed-key/CloudfrontLoggingBucket/AutoDeleteObjectsCustomResource/Default",
858
862
  "constructInfo": {
859
863
  "fqn": "aws-cdk-lib.CfnResource",
860
- "version": "2.149.0"
864
+ "version": "2.160.0"
861
865
  }
862
866
  }
863
867
  },
864
868
  "constructInfo": {
865
869
  "fqn": "aws-cdk-lib.CustomResource",
866
- "version": "2.149.0"
870
+ "version": "2.160.0"
867
871
  }
868
872
  }
869
873
  },
870
874
  "constructInfo": {
871
875
  "fqn": "aws-cdk-lib.aws_s3.Bucket",
872
- "version": "2.149.0"
876
+ "version": "2.160.0"
873
877
  }
874
878
  },
875
879
  "CloudFrontOac": {
@@ -909,7 +913,7 @@
909
913
  },
910
914
  "constructInfo": {
911
915
  "fqn": "aws-cdk-lib.aws_cloudfront.CfnOriginAccessControl",
912
- "version": "2.149.0"
916
+ "version": "2.160.0"
913
917
  }
914
918
  },
915
919
  "CloudFrontDistribution": {
@@ -969,19 +973,19 @@
969
973
  },
970
974
  "constructInfo": {
971
975
  "fqn": "aws-cdk-lib.aws_cloudfront.CfnDistribution",
972
- "version": "2.149.0"
976
+ "version": "2.160.0"
973
977
  }
974
978
  }
975
979
  },
976
980
  "constructInfo": {
977
981
  "fqn": "aws-cdk-lib.aws_cloudfront.Distribution",
978
- "version": "2.149.0"
982
+ "version": "2.160.0"
979
983
  }
980
984
  }
981
985
  },
982
986
  "constructInfo": {
983
987
  "fqn": "@aws-solutions-constructs/aws-cloudfront-s3.CloudFrontToS3",
984
- "version": "2.62.0"
988
+ "version": "2.71.0"
985
989
  }
986
990
  },
987
991
  "Integ": {
@@ -1009,7 +1013,7 @@
1009
1013
  "path": "cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket/Integ/DefaultTest/DeployAssert/BootstrapVersion",
1010
1014
  "constructInfo": {
1011
1015
  "fqn": "aws-cdk-lib.CfnParameter",
1012
- "version": "2.149.0"
1016
+ "version": "2.160.0"
1013
1017
  }
1014
1018
  },
1015
1019
  "CheckBootstrapVersion": {
@@ -1017,25 +1021,25 @@
1017
1021
  "path": "cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion",
1018
1022
  "constructInfo": {
1019
1023
  "fqn": "aws-cdk-lib.CfnRule",
1020
- "version": "2.149.0"
1024
+ "version": "2.160.0"
1021
1025
  }
1022
1026
  }
1023
1027
  },
1024
1028
  "constructInfo": {
1025
1029
  "fqn": "aws-cdk-lib.Stack",
1026
- "version": "2.149.0"
1030
+ "version": "2.160.0"
1027
1031
  }
1028
1032
  }
1029
1033
  },
1030
1034
  "constructInfo": {
1031
1035
  "fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase",
1032
- "version": "2.149.0-alpha.0"
1036
+ "version": "2.160.0-alpha.0"
1033
1037
  }
1034
1038
  }
1035
1039
  },
1036
1040
  "constructInfo": {
1037
1041
  "fqn": "@aws-cdk/integ-tests-alpha.IntegTest",
1038
- "version": "2.149.0-alpha.0"
1042
+ "version": "2.160.0-alpha.0"
1039
1043
  }
1040
1044
  },
1041
1045
  "BootstrapVersion": {
@@ -1043,7 +1047,7 @@
1043
1047
  "path": "cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket/BootstrapVersion",
1044
1048
  "constructInfo": {
1045
1049
  "fqn": "aws-cdk-lib.CfnParameter",
1046
- "version": "2.149.0"
1050
+ "version": "2.160.0"
1047
1051
  }
1048
1052
  },
1049
1053
  "CheckBootstrapVersion": {
@@ -1051,13 +1055,13 @@
1051
1055
  "path": "cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket/CheckBootstrapVersion",
1052
1056
  "constructInfo": {
1053
1057
  "fqn": "aws-cdk-lib.CfnRule",
1054
- "version": "2.149.0"
1058
+ "version": "2.160.0"
1055
1059
  }
1056
1060
  }
1057
1061
  },
1058
1062
  "constructInfo": {
1059
1063
  "fqn": "aws-cdk-lib.Stack",
1060
- "version": "2.149.0"
1064
+ "version": "2.160.0"
1061
1065
  }
1062
1066
  },
1063
1067
  "Tree": {
@@ -1071,7 +1075,7 @@
1071
1075
  },
1072
1076
  "constructInfo": {
1073
1077
  "fqn": "aws-cdk-lib.App",
1074
- "version": "2.149.0"
1078
+ "version": "2.160.0"
1075
1079
  }
1076
1080
  }
1077
1081
  }
@@ -0,0 +1,3 @@
1
+ "use strict";const cfnResponse=require("./cfn-response"),consts=require("./consts"),outbound_1=require("./outbound"),util_1=require("./util");async function onEvent(cfnRequest){const sanitizedRequest={...cfnRequest,ResponseURL:"..."};(0,util_1.log)("onEventHandler",sanitizedRequest),cfnRequest.ResourceProperties=cfnRequest.ResourceProperties||{};const onEventResult=await invokeUserFunction(consts.USER_ON_EVENT_FUNCTION_ARN_ENV,sanitizedRequest,cfnRequest.ResponseURL);onEventResult?.NoEcho?(0,util_1.log)("redacted onEvent returned:",cfnResponse.redactDataFromPayload(onEventResult)):(0,util_1.log)("onEvent returned:",onEventResult);const resourceEvent=createResponseEvent(cfnRequest,onEventResult),sanitizedEvent={...resourceEvent,ResponseURL:"..."};if(onEventResult?.NoEcho?(0,util_1.log)("readacted event:",cfnResponse.redactDataFromPayload(sanitizedEvent)):(0,util_1.log)("event:",sanitizedEvent),!process.env[consts.USER_IS_COMPLETE_FUNCTION_ARN_ENV])return cfnResponse.submitResponse("SUCCESS",resourceEvent,{noEcho:resourceEvent.NoEcho});const waiter={stateMachineArn:(0,util_1.getEnv)(consts.WAITER_STATE_MACHINE_ARN_ENV),name:resourceEvent.RequestId,input:JSON.stringify(resourceEvent)};(0,util_1.log)("starting waiter",{stateMachineArn:(0,util_1.getEnv)(consts.WAITER_STATE_MACHINE_ARN_ENV),name:resourceEvent.RequestId}),await(0,outbound_1.startExecution)(waiter)}async function isComplete(event){const sanitizedRequest={...event,ResponseURL:"..."};event?.NoEcho?(0,util_1.log)("redacted isComplete request",cfnResponse.redactDataFromPayload(sanitizedRequest)):(0,util_1.log)("isComplete",sanitizedRequest);const isCompleteResult=await invokeUserFunction(consts.USER_IS_COMPLETE_FUNCTION_ARN_ENV,sanitizedRequest,event.ResponseURL);if(event?.NoEcho?(0,util_1.log)("redacted user isComplete returned:",cfnResponse.redactDataFromPayload(isCompleteResult)):(0,util_1.log)("user isComplete returned:",isCompleteResult),!isCompleteResult.IsComplete)throw isCompleteResult.Data&&Object.keys(isCompleteResult.Data).length>0?new Error('"Data" is not allowed if "IsComplete" is "False"'):new cfnResponse.Retry(JSON.stringify(event));const response={...event,...isCompleteResult,Data:{...event.Data,...isCompleteResult.Data}};await cfnResponse.submitResponse("SUCCESS",response,{noEcho:event.NoEcho})}async function onTimeout(timeoutEvent){(0,util_1.log)("timeoutHandler",timeoutEvent);const isCompleteRequest=JSON.parse(JSON.parse(timeoutEvent.Cause).errorMessage);await cfnResponse.submitResponse("FAILED",isCompleteRequest,{reason:"Operation timed out"})}async function invokeUserFunction(functionArnEnv,sanitizedPayload,responseUrl){const functionArn=(0,util_1.getEnv)(functionArnEnv);(0,util_1.log)(`executing user function ${functionArn} with payload`,sanitizedPayload);const resp=await(0,outbound_1.invokeFunction)({FunctionName:functionArn,Payload:JSON.stringify({...sanitizedPayload,ResponseURL:responseUrl})});(0,util_1.log)("user function response:",resp,typeof resp);const jsonPayload=(0,util_1.parseJsonPayload)(resp.Payload);if(resp.FunctionError){(0,util_1.log)("user function threw an error:",resp.FunctionError);const errorMessage=jsonPayload.errorMessage||"error",arn=functionArn.split(":"),functionName=arn[arn.length-1],message=[errorMessage,"",`Logs: /aws/lambda/${functionName}`,""].join(`
2
+ `),e=new Error(message);throw jsonPayload.trace&&(e.stack=[message,...jsonPayload.trace.slice(1)].join(`
3
+ `)),e}return jsonPayload}function createResponseEvent(cfnRequest,onEventResult){onEventResult=onEventResult||{};const physicalResourceId=onEventResult.PhysicalResourceId||defaultPhysicalResourceId(cfnRequest);if(cfnRequest.RequestType==="Delete"&&physicalResourceId!==cfnRequest.PhysicalResourceId)throw new Error(`DELETE: cannot change the physical resource ID from "${cfnRequest.PhysicalResourceId}" to "${onEventResult.PhysicalResourceId}" during deletion`);return cfnRequest.RequestType==="Update"&&physicalResourceId!==cfnRequest.PhysicalResourceId&&(0,util_1.log)(`UPDATE: changing physical resource ID from "${cfnRequest.PhysicalResourceId}" to "${onEventResult.PhysicalResourceId}"`),{...cfnRequest,...onEventResult,PhysicalResourceId:physicalResourceId}}function defaultPhysicalResourceId(req){switch(req.RequestType){case"Create":return req.RequestId;case"Update":case"Delete":return req.PhysicalResourceId;default:throw new Error(`Invalid "RequestType" in request "${JSON.stringify(req)}"`)}}module.exports={[consts.FRAMEWORK_ON_EVENT_HANDLER_NAME]:cfnResponse.safeHandler(onEvent),[consts.FRAMEWORK_IS_COMPLETE_HANDLER_NAME]:cfnResponse.safeHandler(isComplete),[consts.FRAMEWORK_ON_TIMEOUT_HANDLER_NAME]:onTimeout};
@@ -1 +1 @@
1
- {"version":"36.0.0"}
1
+ {"version":"38.0.1"}
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "36.0.0",
2
+ "version": "38.0.1",
3
3
  "files": {
4
4
  "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6": {
5
5
  "source": {
@@ -27,20 +27,20 @@
27
27
  }
28
28
  }
29
29
  },
30
- "d9861ea7a45affd23e47a614acb2fddc6e45c20a891284c958187dafbf9ee36b": {
30
+ "4dc48ffba382f93077a1e6824599bbd4ceb6f91eb3d9442eca3b85bdb1a20b1e": {
31
31
  "source": {
32
- "path": "asset.d9861ea7a45affd23e47a614acb2fddc6e45c20a891284c958187dafbf9ee36b",
32
+ "path": "asset.4dc48ffba382f93077a1e6824599bbd4ceb6f91eb3d9442eca3b85bdb1a20b1e",
33
33
  "packaging": "zip"
34
34
  },
35
35
  "destinations": {
36
36
  "current_account-current_region": {
37
37
  "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
38
- "objectKey": "d9861ea7a45affd23e47a614acb2fddc6e45c20a891284c958187dafbf9ee36b.zip",
38
+ "objectKey": "4dc48ffba382f93077a1e6824599bbd4ceb6f91eb3d9442eca3b85bdb1a20b1e.zip",
39
39
  "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
40
40
  }
41
41
  }
42
42
  },
43
- "bc30619e412e17dfb136edfe511bbba347f6627fdac9ad02c948945be0477aa8": {
43
+ "ce274cef7a9cf88674ce9c84fc8ed4daadbf30f7a6e58e6f0e0c64d7d6b338b5": {
44
44
  "source": {
45
45
  "path": "cfts3-cmk-provided-as-bucket-prop.template.json",
46
46
  "packaging": "file"
@@ -48,7 +48,7 @@
48
48
  "destinations": {
49
49
  "current_account-current_region": {
50
50
  "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
51
- "objectKey": "bc30619e412e17dfb136edfe511bbba347f6627fdac9ad02c948945be0477aa8.json",
51
+ "objectKey": "ce274cef7a9cf88674ce9c84fc8ed4daadbf30f7a6e58e6f0e0c64d7d6b338b5.json",
52
52
  "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
53
53
  }
54
54
  }
@@ -318,7 +318,11 @@
318
318
  "Fn::Join": [
319
319
  "",
320
320
  [
321
- "arn:aws:cloudfront::",
321
+ "arn:",
322
+ {
323
+ "Ref": "AWS::Partition"
324
+ },
325
+ ":cloudfront::",
322
326
  {
323
327
  "Ref": "AWS::AccountId"
324
328
  },
@@ -1039,7 +1043,7 @@
1039
1043
  "S3Bucket": {
1040
1044
  "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
1041
1045
  },
1042
- "S3Key": "d9861ea7a45affd23e47a614acb2fddc6e45c20a891284c958187dafbf9ee36b.zip"
1046
+ "S3Key": "4dc48ffba382f93077a1e6824599bbd4ceb6f91eb3d9442eca3b85bdb1a20b1e.zip"
1043
1047
  },
1044
1048
  "Description": "AWS CDK resource provider framework - onEvent (cfts3-cmk-provided-as-bucket-prop/test-cloudfront-s3-cmk-encryption-key/KmsKeyPolicyUpdateProvider)",
1045
1049
  "Environment": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "36.0.0",
2
+ "version": "38.0.1",
3
3
  "files": {
4
4
  "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": {
5
5
  "source": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "36.0.0",
2
+ "version": "38.0.1",
3
3
  "testCases": {
4
4
  "cfts3-cmk-provided-as-bucket-prop/Integ/DefaultTest": {
5
5
  "stacks": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "36.0.0",
2
+ "version": "38.0.1",
3
3
  "artifacts": {
4
4
  "cfts3cmkprovidedasbucketpropIntegDefaultTestDeployAssert38E63D55.assets": {
5
5
  "type": "cdk:asset-manifest",
@@ -16,6 +16,7 @@
16
16
  "templateFile": "cfts3cmkprovidedasbucketpropIntegDefaultTestDeployAssert38E63D55.template.json",
17
17
  "terminationProtection": false,
18
18
  "validateOnSynth": false,
19
+ "notificationArns": [],
19
20
  "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}",
20
21
  "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}",
21
22
  "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22.json",
@@ -64,9 +65,10 @@
64
65
  "templateFile": "cfts3-cmk-provided-as-bucket-prop.template.json",
65
66
  "terminationProtection": false,
66
67
  "validateOnSynth": false,
68
+ "notificationArns": [],
67
69
  "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}",
68
70
  "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}",
69
- "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/bc30619e412e17dfb136edfe511bbba347f6627fdac9ad02c948945be0477aa8.json",
71
+ "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/ce274cef7a9cf88674ce9c84fc8ed4daadbf30f7a6e58e6f0e0c64d7d6b338b5.json",
70
72
  "requiresBootstrapStackVersion": 6,
71
73
  "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
72
74
  "additionalDependencies": [
@@ -220,6 +222,12 @@
220
222
  "data": "LatestNodeRuntimeMap"
221
223
  }
222
224
  ],
225
+ "/cfts3-cmk-provided-as-bucket-prop/Custom::S3AutoDeleteObjectsCustomResourceProvider": [
226
+ {
227
+ "type": "aws:cdk:is-custom-resource-handler-customResourceProvider",
228
+ "data": true
229
+ }
230
+ ],
223
231
  "/cfts3-cmk-provided-as-bucket-prop/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role": [
224
232
  {
225
233
  "type": "aws:cdk:logicalId",