@aws-solutions-constructs/aws-cloudfront-oai-s3 2.79.1 → 2.80.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 (39) hide show
  1. package/.jsii +5 -44
  2. package/lib/index.js +1 -1
  3. package/package.json +8 -8
  4. package/test/integ.cftoais3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/cftoais3-bucket-encrypted-with-managed-key-provided-as-existingbucket.assets.json +2 -2
  5. package/test/integ.cftoais3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/cftoais3-bucket-encrypted-with-managed-key-provided-as-existingbucket.template.json +4 -4
  6. package/test/integ.cftoais3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/manifest.json +157 -10
  7. package/test/integ.cftoais3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/tree.json +154 -43
  8. package/test/integ.cftoais3-custom-headers.js.snapshot/cftoais3-custom-headers.assets.json +2 -2
  9. package/test/integ.cftoais3-custom-headers.js.snapshot/cftoais3-custom-headers.template.json +4 -4
  10. package/test/integ.cftoais3-custom-headers.js.snapshot/manifest.json +180 -10
  11. package/test/integ.cftoais3-custom-headers.js.snapshot/tree.json +175 -47
  12. package/test/integ.cftoais3-custom-originPath.js.snapshot/cftoais3-custom-originPath.assets.json +2 -2
  13. package/test/integ.cftoais3-custom-originPath.js.snapshot/cftoais3-custom-originPath.template.json +4 -4
  14. package/test/integ.cftoais3-custom-originPath.js.snapshot/manifest.json +172 -10
  15. package/test/integ.cftoais3-custom-originPath.js.snapshot/tree.json +168 -45
  16. package/test/integ.cftoais3-customLoggingBuckets.js.snapshot/cftoais3-customLoggingBuckets.assets.json +2 -2
  17. package/test/integ.cftoais3-customLoggingBuckets.js.snapshot/cftoais3-customLoggingBuckets.template.json +4 -4
  18. package/test/integ.cftoais3-customLoggingBuckets.js.snapshot/manifest.json +210 -10
  19. package/test/integ.cftoais3-customLoggingBuckets.js.snapshot/tree.json +200 -45
  20. package/test/integ.cftoais3-existing-bucket.js.snapshot/cftoais3-existing-bucket.assets.json +2 -2
  21. package/test/integ.cftoais3-existing-bucket.js.snapshot/cftoais3-existing-bucket.template.json +4 -4
  22. package/test/integ.cftoais3-existing-bucket.js.snapshot/manifest.json +174 -10
  23. package/test/integ.cftoais3-existing-bucket.js.snapshot/tree.json +168 -49
  24. package/test/integ.cftoais3-no-arguments.js.snapshot/cftoais3-no-arguments.assets.json +2 -2
  25. package/test/integ.cftoais3-no-arguments.js.snapshot/cftoais3-no-arguments.template.json +4 -4
  26. package/test/integ.cftoais3-no-arguments.js.snapshot/manifest.json +172 -10
  27. package/test/integ.cftoais3-no-arguments.js.snapshot/tree.json +168 -45
  28. package/test/integ.cftoais3-no-cloudfront-s3-access-logs.js.snapshot/cftoais3-no-cloudfront-s3-access-logs.assets.json +2 -2
  29. package/test/integ.cftoais3-no-cloudfront-s3-access-logs.js.snapshot/cftoais3-no-cloudfront-s3-access-logs.template.json +4 -4
  30. package/test/integ.cftoais3-no-cloudfront-s3-access-logs.js.snapshot/manifest.json +116 -10
  31. package/test/integ.cftoais3-no-cloudfront-s3-access-logs.js.snapshot/tree.json +118 -33
  32. package/test/integ.cftoais3-no-logging.js.snapshot/cftoais3-no-logging.assets.json +2 -2
  33. package/test/integ.cftoais3-no-logging.js.snapshot/cftoais3-no-logging.template.json +4 -4
  34. package/test/integ.cftoais3-no-logging.js.snapshot/manifest.json +88 -10
  35. package/test/integ.cftoais3-no-logging.js.snapshot/tree.json +93 -27
  36. package/test/integ.cftoais3-no-security-headers.js.snapshot/cftoais3-no-security-headers.assets.json +2 -2
  37. package/test/integ.cftoais3-no-security-headers.js.snapshot/cftoais3-no-security-headers.template.json +4 -4
  38. package/test/integ.cftoais3-no-security-headers.js.snapshot/manifest.json +157 -10
  39. package/test/integ.cftoais3-no-security-headers.js.snapshot/tree.json +154 -43
@@ -66,7 +66,7 @@
66
66
  "validateOnSynth": false,
67
67
  "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}",
68
68
  "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}/ef44108a79ee7dbfc3cdcc4184aec4db83d34781e3c065027d1281849d81b221.json",
69
+ "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/d5899bc9d5205607ed629e95130a93c5e002a6617be52f76dad224d7061e48c1.json",
70
70
  "requiresBootstrapStackVersion": 6,
71
71
  "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
72
72
  "additionalDependencies": [
@@ -82,36 +82,123 @@
82
82
  "cftoais3-no-logging.assets"
83
83
  ],
84
84
  "metadata": {
85
+ "/cftoais3-no-logging/test-cloudfront-oai-s3/S3Bucket": [
86
+ {
87
+ "type": "aws:cdk:analytics:construct",
88
+ "data": {
89
+ "encryption": "S3_MANAGED",
90
+ "versioned": true,
91
+ "blockPublicAccess": "*",
92
+ "removalPolicy": "destroy",
93
+ "enforceSSL": true,
94
+ "lifecycleRules": [
95
+ {
96
+ "noncurrentVersionTransitions": [
97
+ {
98
+ "storageClass": "*"
99
+ }
100
+ ]
101
+ }
102
+ ],
103
+ "autoDeleteObjects": true
104
+ }
105
+ },
106
+ {
107
+ "type": "aws:cdk:analytics:method",
108
+ "data": {
109
+ "addLifecycleRule": [
110
+ {
111
+ "noncurrentVersionTransitions": [
112
+ {
113
+ "storageClass": "*"
114
+ }
115
+ ]
116
+ },
117
+ "*",
118
+ "*"
119
+ ]
120
+ }
121
+ }
122
+ ],
85
123
  "/cftoais3-no-logging/test-cloudfront-oai-s3/S3Bucket/Resource": [
86
124
  {
87
125
  "type": "aws:cdk:logicalId",
88
126
  "data": "testcloudfrontoais3S3Bucket578AB9F3"
89
127
  }
90
128
  ],
129
+ "/cftoais3-no-logging/test-cloudfront-oai-s3/S3Bucket/Policy": [
130
+ {
131
+ "type": "aws:cdk:analytics:construct",
132
+ "data": {
133
+ "bucket": "*"
134
+ }
135
+ }
136
+ ],
91
137
  "/cftoais3-no-logging/test-cloudfront-oai-s3/S3Bucket/Policy/Resource": [
92
138
  {
93
139
  "type": "aws:cdk:logicalId",
94
140
  "data": "testcloudfrontoais3S3BucketPolicyD2322CC3"
95
141
  }
96
142
  ],
143
+ "/cftoais3-no-logging/test-cloudfront-oai-s3/S3Bucket/AutoDeleteObjectsCustomResource": [
144
+ {
145
+ "type": "aws:cdk:analytics:construct",
146
+ "data": "*"
147
+ }
148
+ ],
97
149
  "/cftoais3-no-logging/test-cloudfront-oai-s3/S3Bucket/AutoDeleteObjectsCustomResource/Default": [
98
150
  {
99
151
  "type": "aws:cdk:logicalId",
100
152
  "data": "testcloudfrontoais3S3BucketAutoDeleteObjectsCustomResourceA2545EE1"
101
153
  }
102
154
  ],
155
+ "/cftoais3-no-logging/test-cloudfront-oai-s3/SetHttpSecurityHeaders": [
156
+ {
157
+ "type": "aws:cdk:analytics:construct",
158
+ "data": {
159
+ "functionName": "*",
160
+ "code": "*"
161
+ }
162
+ }
163
+ ],
103
164
  "/cftoais3-no-logging/test-cloudfront-oai-s3/SetHttpSecurityHeaders/Resource": [
104
165
  {
105
166
  "type": "aws:cdk:logicalId",
106
167
  "data": "testcloudfrontoais3SetHttpSecurityHeaders4EB3C97B"
107
168
  }
108
169
  ],
170
+ "/cftoais3-no-logging/test-cloudfront-oai-s3/constructsGeneratedOai": [
171
+ {
172
+ "type": "aws:cdk:analytics:construct",
173
+ "data": "*"
174
+ }
175
+ ],
109
176
  "/cftoais3-no-logging/test-cloudfront-oai-s3/constructsGeneratedOai/Resource": [
110
177
  {
111
178
  "type": "aws:cdk:logicalId",
112
179
  "data": "testcloudfrontoais3constructsGeneratedOaiA468F478"
113
180
  }
114
181
  ],
182
+ "/cftoais3-no-logging/test-cloudfront-oai-s3/CloudFrontDistribution": [
183
+ {
184
+ "type": "aws:cdk:analytics:construct",
185
+ "data": {
186
+ "defaultBehavior": {
187
+ "origin": "*",
188
+ "viewerProtocolPolicy": "redirect-to-https",
189
+ "functionAssociations": [
190
+ {
191
+ "eventType": "viewer-response",
192
+ "function": "*"
193
+ }
194
+ ]
195
+ },
196
+ "enableLogging": false,
197
+ "logBucket": "*",
198
+ "defaultRootObject": "*"
199
+ }
200
+ }
201
+ ],
115
202
  "/cftoais3-no-logging/test-cloudfront-oai-s3/CloudFrontDistribution/Resource": [
116
203
  {
117
204
  "type": "aws:cdk:logicalId",
@@ -153,15 +240,6 @@
153
240
  "type": "aws:cdk:logicalId",
154
241
  "data": "CheckBootstrapVersion"
155
242
  }
156
- ],
157
- "testcloudfrontoais3CloudFrontDistributionOrigin1S3OriginF57A3CB1": [
158
- {
159
- "type": "aws:cdk:logicalId",
160
- "data": "testcloudfrontoais3CloudFrontDistributionOrigin1S3OriginF57A3CB1",
161
- "trace": [
162
- "!!DESTRUCTIVE_CHANGES: WILL_DESTROY"
163
- ]
164
- }
165
243
  ]
166
244
  },
167
245
  "displayName": "cftoais3-no-logging"
@@ -63,7 +63,7 @@
63
63
  },
64
64
  "constructInfo": {
65
65
  "fqn": "aws-cdk-lib.aws_s3.CfnBucket",
66
- "version": "2.177.0"
66
+ "version": "2.179.0"
67
67
  }
68
68
  },
69
69
  "Policy": {
@@ -231,13 +231,18 @@
231
231
  },
232
232
  "constructInfo": {
233
233
  "fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
234
- "version": "2.177.0"
234
+ "version": "2.179.0"
235
235
  }
236
236
  }
237
237
  },
238
238
  "constructInfo": {
239
239
  "fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
240
- "version": "2.177.0"
240
+ "version": "2.179.0",
241
+ "metadata": [
242
+ {
243
+ "bucket": "*"
244
+ }
245
+ ]
241
246
  }
242
247
  },
243
248
  "AutoDeleteObjectsCustomResource": {
@@ -249,19 +254,54 @@
249
254
  "path": "cftoais3-no-logging/test-cloudfront-oai-s3/S3Bucket/AutoDeleteObjectsCustomResource/Default",
250
255
  "constructInfo": {
251
256
  "fqn": "aws-cdk-lib.CfnResource",
252
- "version": "2.177.0"
257
+ "version": "2.179.0"
253
258
  }
254
259
  }
255
260
  },
256
261
  "constructInfo": {
257
262
  "fqn": "aws-cdk-lib.CustomResource",
258
- "version": "2.177.0"
263
+ "version": "2.179.0",
264
+ "metadata": [
265
+ "*"
266
+ ]
259
267
  }
260
268
  }
261
269
  },
262
270
  "constructInfo": {
263
271
  "fqn": "aws-cdk-lib.aws_s3.Bucket",
264
- "version": "2.177.0"
272
+ "version": "2.179.0",
273
+ "metadata": [
274
+ {
275
+ "encryption": "S3_MANAGED",
276
+ "versioned": true,
277
+ "blockPublicAccess": "*",
278
+ "removalPolicy": "destroy",
279
+ "enforceSSL": true,
280
+ "lifecycleRules": [
281
+ {
282
+ "noncurrentVersionTransitions": [
283
+ {
284
+ "storageClass": "*"
285
+ }
286
+ ]
287
+ }
288
+ ],
289
+ "autoDeleteObjects": true
290
+ },
291
+ {
292
+ "addLifecycleRule": [
293
+ {
294
+ "noncurrentVersionTransitions": [
295
+ {
296
+ "storageClass": "*"
297
+ }
298
+ ]
299
+ },
300
+ "*",
301
+ "*"
302
+ ]
303
+ }
304
+ ]
265
305
  }
266
306
  },
267
307
  "SetHttpSecurityHeaders": {
@@ -285,13 +325,19 @@
285
325
  },
286
326
  "constructInfo": {
287
327
  "fqn": "aws-cdk-lib.aws_cloudfront.CfnFunction",
288
- "version": "2.177.0"
328
+ "version": "2.179.0"
289
329
  }
290
330
  }
291
331
  },
292
332
  "constructInfo": {
293
333
  "fqn": "aws-cdk-lib.aws_cloudfront.Function",
294
- "version": "2.177.0"
334
+ "version": "2.179.0",
335
+ "metadata": [
336
+ {
337
+ "functionName": "*",
338
+ "code": "*"
339
+ }
340
+ ]
295
341
  }
296
342
  },
297
343
  "constructsGeneratedOai": {
@@ -311,13 +357,16 @@
311
357
  },
312
358
  "constructInfo": {
313
359
  "fqn": "aws-cdk-lib.aws_cloudfront.CfnCloudFrontOriginAccessIdentity",
314
- "version": "2.177.0"
360
+ "version": "2.179.0"
315
361
  }
316
362
  }
317
363
  },
318
364
  "constructInfo": {
319
365
  "fqn": "aws-cdk-lib.aws_cloudfront.OriginAccessIdentity",
320
- "version": "2.177.0"
366
+ "version": "2.179.0",
367
+ "metadata": [
368
+ "*"
369
+ ]
321
370
  }
322
371
  },
323
372
  "CloudFrontDistribution": {
@@ -390,19 +439,36 @@
390
439
  },
391
440
  "constructInfo": {
392
441
  "fqn": "aws-cdk-lib.aws_cloudfront.CfnDistribution",
393
- "version": "2.177.0"
442
+ "version": "2.179.0"
394
443
  }
395
444
  }
396
445
  },
397
446
  "constructInfo": {
398
447
  "fqn": "aws-cdk-lib.aws_cloudfront.Distribution",
399
- "version": "2.177.0"
448
+ "version": "2.179.0",
449
+ "metadata": [
450
+ {
451
+ "defaultBehavior": {
452
+ "origin": "*",
453
+ "viewerProtocolPolicy": "redirect-to-https",
454
+ "functionAssociations": [
455
+ {
456
+ "eventType": "viewer-response",
457
+ "function": "*"
458
+ }
459
+ ]
460
+ },
461
+ "enableLogging": false,
462
+ "logBucket": "*",
463
+ "defaultRootObject": "*"
464
+ }
465
+ ]
400
466
  }
401
467
  }
402
468
  },
403
469
  "constructInfo": {
404
470
  "fqn": "@aws-solutions-constructs/aws-cloudfront-oai-s3.CloudFrontToOaiToS3",
405
- "version": "2.79.0"
471
+ "version": "2.79.1"
406
472
  }
407
473
  },
408
474
  "LatestNodeRuntimeMap": {
@@ -410,7 +476,7 @@
410
476
  "path": "cftoais3-no-logging/LatestNodeRuntimeMap",
411
477
  "constructInfo": {
412
478
  "fqn": "aws-cdk-lib.CfnMapping",
413
- "version": "2.177.0"
479
+ "version": "2.179.0"
414
480
  }
415
481
  },
416
482
  "Custom::S3AutoDeleteObjectsCustomResourceProvider": {
@@ -422,7 +488,7 @@
422
488
  "path": "cftoais3-no-logging/Custom::S3AutoDeleteObjectsCustomResourceProvider/Staging",
423
489
  "constructInfo": {
424
490
  "fqn": "aws-cdk-lib.AssetStaging",
425
- "version": "2.177.0"
491
+ "version": "2.179.0"
426
492
  }
427
493
  },
428
494
  "Role": {
@@ -430,7 +496,7 @@
430
496
  "path": "cftoais3-no-logging/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role",
431
497
  "constructInfo": {
432
498
  "fqn": "aws-cdk-lib.CfnResource",
433
- "version": "2.177.0"
499
+ "version": "2.179.0"
434
500
  }
435
501
  },
436
502
  "Handler": {
@@ -438,13 +504,13 @@
438
504
  "path": "cftoais3-no-logging/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler",
439
505
  "constructInfo": {
440
506
  "fqn": "aws-cdk-lib.CfnResource",
441
- "version": "2.177.0"
507
+ "version": "2.179.0"
442
508
  }
443
509
  }
444
510
  },
445
511
  "constructInfo": {
446
512
  "fqn": "aws-cdk-lib.CustomResourceProviderBase",
447
- "version": "2.177.0"
513
+ "version": "2.179.0"
448
514
  }
449
515
  },
450
516
  "Integ": {
@@ -472,7 +538,7 @@
472
538
  "path": "cftoais3-no-logging/Integ/DefaultTest/DeployAssert/BootstrapVersion",
473
539
  "constructInfo": {
474
540
  "fqn": "aws-cdk-lib.CfnParameter",
475
- "version": "2.177.0"
541
+ "version": "2.179.0"
476
542
  }
477
543
  },
478
544
  "CheckBootstrapVersion": {
@@ -480,25 +546,25 @@
480
546
  "path": "cftoais3-no-logging/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion",
481
547
  "constructInfo": {
482
548
  "fqn": "aws-cdk-lib.CfnRule",
483
- "version": "2.177.0"
549
+ "version": "2.179.0"
484
550
  }
485
551
  }
486
552
  },
487
553
  "constructInfo": {
488
554
  "fqn": "aws-cdk-lib.Stack",
489
- "version": "2.177.0"
555
+ "version": "2.179.0"
490
556
  }
491
557
  }
492
558
  },
493
559
  "constructInfo": {
494
560
  "fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase",
495
- "version": "2.177.0-alpha.0"
561
+ "version": "2.179.0-alpha.0"
496
562
  }
497
563
  }
498
564
  },
499
565
  "constructInfo": {
500
566
  "fqn": "@aws-cdk/integ-tests-alpha.IntegTest",
501
- "version": "2.177.0-alpha.0"
567
+ "version": "2.179.0-alpha.0"
502
568
  }
503
569
  },
504
570
  "BootstrapVersion": {
@@ -506,7 +572,7 @@
506
572
  "path": "cftoais3-no-logging/BootstrapVersion",
507
573
  "constructInfo": {
508
574
  "fqn": "aws-cdk-lib.CfnParameter",
509
- "version": "2.177.0"
575
+ "version": "2.179.0"
510
576
  }
511
577
  },
512
578
  "CheckBootstrapVersion": {
@@ -514,13 +580,13 @@
514
580
  "path": "cftoais3-no-logging/CheckBootstrapVersion",
515
581
  "constructInfo": {
516
582
  "fqn": "aws-cdk-lib.CfnRule",
517
- "version": "2.177.0"
583
+ "version": "2.179.0"
518
584
  }
519
585
  }
520
586
  },
521
587
  "constructInfo": {
522
588
  "fqn": "aws-cdk-lib.Stack",
523
- "version": "2.177.0"
589
+ "version": "2.179.0"
524
590
  }
525
591
  },
526
592
  "Tree": {
@@ -534,7 +600,7 @@
534
600
  },
535
601
  "constructInfo": {
536
602
  "fqn": "aws-cdk-lib.App",
537
- "version": "2.177.0"
603
+ "version": "2.179.0"
538
604
  }
539
605
  }
540
606
  }
@@ -14,7 +14,7 @@
14
14
  }
15
15
  }
16
16
  },
17
- "6261d23fc963ec2841f829412721889013c162d9384a1d5ebb0e9ebb2392df91": {
17
+ "1453e1223ea902ff00181061cb27e297df0bfa36cd59671f9a24fa9df70610ef": {
18
18
  "source": {
19
19
  "path": "cftoais3-no-security-headers.template.json",
20
20
  "packaging": "file"
@@ -22,7 +22,7 @@
22
22
  "destinations": {
23
23
  "current_account-current_region": {
24
24
  "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
25
- "objectKey": "6261d23fc963ec2841f829412721889013c162d9384a1d5ebb0e9ebb2392df91.json",
25
+ "objectKey": "1453e1223ea902ff00181061cb27e297df0bfa36cd59671f9a24fa9df70610ef.json",
26
26
  "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
27
27
  }
28
28
  }
@@ -948,10 +948,10 @@
948
948
  "value": "nodejs20.x"
949
949
  },
950
950
  "cn-north-1": {
951
- "value": "nodejs18.x"
951
+ "value": "nodejs20.x"
952
952
  },
953
953
  "cn-northwest-1": {
954
- "value": "nodejs18.x"
954
+ "value": "nodejs20.x"
955
955
  },
956
956
  "eu-central-1": {
957
957
  "value": "nodejs20.x"
@@ -1002,10 +1002,10 @@
1002
1002
  "value": "nodejs20.x"
1003
1003
  },
1004
1004
  "us-gov-east-1": {
1005
- "value": "nodejs18.x"
1005
+ "value": "nodejs20.x"
1006
1006
  },
1007
1007
  "us-gov-west-1": {
1008
- "value": "nodejs18.x"
1008
+ "value": "nodejs20.x"
1009
1009
  },
1010
1010
  "us-iso-east-1": {
1011
1011
  "value": "nodejs18.x"