@aws-solutions-constructs/aws-cloudfront-oai-s3 2.85.0 → 2.85.1

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 (66) hide show
  1. package/.jsii +5 -5
  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/cdk.out +1 -1
  5. 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 +5 -3
  6. 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 +3 -0
  7. package/test/integ.cftoais3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/cftoais3bucketencryptedwithmanagedkeyprovidedasexistingbucketIntegDefaultTestDeployAssert105E804F.assets.json +2 -1
  8. package/test/integ.cftoais3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/integ.json +3 -2
  9. package/test/integ.cftoais3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/manifest.json +4 -3
  10. package/test/integ.cftoais3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/tree.json +1 -1214
  11. package/test/integ.cftoais3-custom-headers.js.snapshot/cdk.out +1 -1
  12. package/test/integ.cftoais3-custom-headers.js.snapshot/cftoais3-custom-headers.assets.json +5 -3
  13. package/test/integ.cftoais3-custom-headers.js.snapshot/cftoais3-custom-headers.template.json +3 -0
  14. package/test/integ.cftoais3-custom-headers.js.snapshot/cftoais3customheadersIntegDefaultTestDeployAssert5AA11BA9.assets.json +2 -1
  15. package/test/integ.cftoais3-custom-headers.js.snapshot/integ.json +3 -2
  16. package/test/integ.cftoais3-custom-headers.js.snapshot/manifest.json +4 -3
  17. package/test/integ.cftoais3-custom-headers.js.snapshot/tree.json +1 -1322
  18. package/test/integ.cftoais3-custom-originPath.js.snapshot/cdk.out +1 -1
  19. package/test/integ.cftoais3-custom-originPath.js.snapshot/cftoais3-custom-originPath.assets.json +5 -3
  20. package/test/integ.cftoais3-custom-originPath.js.snapshot/cftoais3-custom-originPath.template.json +3 -0
  21. package/test/integ.cftoais3-custom-originPath.js.snapshot/cftoais3customoriginPathIntegDefaultTestDeployAssert1C351914.assets.json +2 -1
  22. package/test/integ.cftoais3-custom-originPath.js.snapshot/integ.json +3 -2
  23. package/test/integ.cftoais3-custom-originPath.js.snapshot/manifest.json +4 -3
  24. package/test/integ.cftoais3-custom-originPath.js.snapshot/tree.json +1 -1268
  25. package/test/integ.cftoais3-customLoggingBuckets.js.snapshot/cdk.out +1 -1
  26. package/test/integ.cftoais3-customLoggingBuckets.js.snapshot/cftoais3-customLoggingBuckets.assets.json +5 -3
  27. package/test/integ.cftoais3-customLoggingBuckets.js.snapshot/cftoais3-customLoggingBuckets.template.json +3 -0
  28. package/test/integ.cftoais3-customLoggingBuckets.js.snapshot/cftoais3customLoggingBucketsIntegDefaultTestDeployAssert8F33EF2A.assets.json +2 -1
  29. package/test/integ.cftoais3-customLoggingBuckets.js.snapshot/integ.json +3 -2
  30. package/test/integ.cftoais3-customLoggingBuckets.js.snapshot/manifest.json +4 -3
  31. package/test/integ.cftoais3-customLoggingBuckets.js.snapshot/tree.json +1 -1325
  32. package/test/integ.cftoais3-existing-bucket.js.snapshot/cdk.out +1 -1
  33. package/test/integ.cftoais3-existing-bucket.js.snapshot/cftoais3-existing-bucket.assets.json +5 -3
  34. package/test/integ.cftoais3-existing-bucket.js.snapshot/cftoais3-existing-bucket.template.json +3 -0
  35. package/test/integ.cftoais3-existing-bucket.js.snapshot/cftoais3existingbucketIntegDefaultTestDeployAssertB7627F26.assets.json +2 -1
  36. package/test/integ.cftoais3-existing-bucket.js.snapshot/integ.json +3 -2
  37. package/test/integ.cftoais3-existing-bucket.js.snapshot/manifest.json +4 -3
  38. package/test/integ.cftoais3-existing-bucket.js.snapshot/tree.json +1 -1357
  39. package/test/integ.cftoais3-no-arguments.js.snapshot/cdk.out +1 -1
  40. package/test/integ.cftoais3-no-arguments.js.snapshot/cftoais3-no-arguments.assets.json +5 -3
  41. package/test/integ.cftoais3-no-arguments.js.snapshot/cftoais3-no-arguments.template.json +3 -0
  42. package/test/integ.cftoais3-no-arguments.js.snapshot/cftoais3noargumentsIntegDefaultTestDeployAssert5CF03E3D.assets.json +2 -1
  43. package/test/integ.cftoais3-no-arguments.js.snapshot/integ.json +3 -2
  44. package/test/integ.cftoais3-no-arguments.js.snapshot/manifest.json +4 -3
  45. package/test/integ.cftoais3-no-arguments.js.snapshot/tree.json +1 -1267
  46. package/test/integ.cftoais3-no-cloudfront-s3-access-logs.js.snapshot/cdk.out +1 -1
  47. package/test/integ.cftoais3-no-cloudfront-s3-access-logs.js.snapshot/cftoais3-no-cloudfront-s3-access-logs.assets.json +5 -3
  48. package/test/integ.cftoais3-no-cloudfront-s3-access-logs.js.snapshot/cftoais3-no-cloudfront-s3-access-logs.template.json +3 -0
  49. package/test/integ.cftoais3-no-cloudfront-s3-access-logs.js.snapshot/cftoais3nocloudfronts3accesslogsIntegDefaultTestDeployAssert6D810275.assets.json +2 -1
  50. package/test/integ.cftoais3-no-cloudfront-s3-access-logs.js.snapshot/integ.json +3 -2
  51. package/test/integ.cftoais3-no-cloudfront-s3-access-logs.js.snapshot/manifest.json +4 -3
  52. package/test/integ.cftoais3-no-cloudfront-s3-access-logs.js.snapshot/tree.json +1 -809
  53. package/test/integ.cftoais3-no-logging.js.snapshot/cdk.out +1 -1
  54. package/test/integ.cftoais3-no-logging.js.snapshot/cftoais3-no-logging.assets.json +5 -3
  55. package/test/integ.cftoais3-no-logging.js.snapshot/cftoais3-no-logging.template.json +3 -0
  56. package/test/integ.cftoais3-no-logging.js.snapshot/cftoais3nologgingIntegDefaultTestDeployAssertCED06EE4.assets.json +2 -1
  57. package/test/integ.cftoais3-no-logging.js.snapshot/integ.json +3 -2
  58. package/test/integ.cftoais3-no-logging.js.snapshot/manifest.json +4 -3
  59. package/test/integ.cftoais3-no-logging.js.snapshot/tree.json +1 -606
  60. package/test/integ.cftoais3-no-security-headers.js.snapshot/cdk.out +1 -1
  61. package/test/integ.cftoais3-no-security-headers.js.snapshot/cftoais3-no-security-headers.assets.json +5 -3
  62. package/test/integ.cftoais3-no-security-headers.js.snapshot/cftoais3-no-security-headers.template.json +3 -0
  63. package/test/integ.cftoais3-no-security-headers.js.snapshot/cftoais3nosecurityheadersIntegDefaultTestDeployAssertAB4B2F28.assets.json +2 -1
  64. package/test/integ.cftoais3-no-security-headers.js.snapshot/integ.json +3 -2
  65. package/test/integ.cftoais3-no-security-headers.js.snapshot/manifest.json +4 -3
  66. package/test/integ.cftoais3-no-security-headers.js.snapshot/tree.json +1 -1214
@@ -1,1357 +1 @@
1
- {
2
- "version": "tree-0.1",
3
- "tree": {
4
- "id": "App",
5
- "path": "",
6
- "children": {
7
- "cftoais3-existing-bucket": {
8
- "id": "cftoais3-existing-bucket",
9
- "path": "cftoais3-existing-bucket",
10
- "children": {
11
- "scrapBucketLog": {
12
- "id": "scrapBucketLog",
13
- "path": "cftoais3-existing-bucket/scrapBucketLog",
14
- "children": {
15
- "Resource": {
16
- "id": "Resource",
17
- "path": "cftoais3-existing-bucket/scrapBucketLog/Resource",
18
- "attributes": {
19
- "aws:cdk:cloudformation:type": "AWS::S3::Bucket",
20
- "aws:cdk:cloudformation:props": {
21
- "bucketEncryption": {
22
- "serverSideEncryptionConfiguration": [
23
- {
24
- "serverSideEncryptionByDefault": {
25
- "sseAlgorithm": "AES256"
26
- }
27
- }
28
- ]
29
- },
30
- "tags": [
31
- {
32
- "key": "aws-cdk:auto-delete-objects",
33
- "value": "true"
34
- }
35
- ],
36
- "versioningConfiguration": {
37
- "status": "Enabled"
38
- }
39
- }
40
- },
41
- "constructInfo": {
42
- "fqn": "aws-cdk-lib.aws_s3.CfnBucket",
43
- "version": "2.179.0"
44
- }
45
- },
46
- "Policy": {
47
- "id": "Policy",
48
- "path": "cftoais3-existing-bucket/scrapBucketLog/Policy",
49
- "children": {
50
- "Resource": {
51
- "id": "Resource",
52
- "path": "cftoais3-existing-bucket/scrapBucketLog/Policy/Resource",
53
- "attributes": {
54
- "aws:cdk:cloudformation:type": "AWS::S3::BucketPolicy",
55
- "aws:cdk:cloudformation:props": {
56
- "bucket": {
57
- "Ref": "scrapBucketLog7B53B25C"
58
- },
59
- "policyDocument": {
60
- "Statement": [
61
- {
62
- "Action": "s3:*",
63
- "Condition": {
64
- "Bool": {
65
- "aws:SecureTransport": "false"
66
- }
67
- },
68
- "Effect": "Deny",
69
- "Principal": {
70
- "AWS": "*"
71
- },
72
- "Resource": [
73
- {
74
- "Fn::GetAtt": [
75
- "scrapBucketLog7B53B25C",
76
- "Arn"
77
- ]
78
- },
79
- {
80
- "Fn::Join": [
81
- "",
82
- [
83
- {
84
- "Fn::GetAtt": [
85
- "scrapBucketLog7B53B25C",
86
- "Arn"
87
- ]
88
- },
89
- "/*"
90
- ]
91
- ]
92
- }
93
- ]
94
- },
95
- {
96
- "Action": [
97
- "s3:DeleteObject*",
98
- "s3:GetBucket*",
99
- "s3:List*",
100
- "s3:PutBucketPolicy"
101
- ],
102
- "Effect": "Allow",
103
- "Principal": {
104
- "AWS": {
105
- "Fn::GetAtt": [
106
- "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092",
107
- "Arn"
108
- ]
109
- }
110
- },
111
- "Resource": [
112
- {
113
- "Fn::GetAtt": [
114
- "scrapBucketLog7B53B25C",
115
- "Arn"
116
- ]
117
- },
118
- {
119
- "Fn::Join": [
120
- "",
121
- [
122
- {
123
- "Fn::GetAtt": [
124
- "scrapBucketLog7B53B25C",
125
- "Arn"
126
- ]
127
- },
128
- "/*"
129
- ]
130
- ]
131
- }
132
- ]
133
- },
134
- {
135
- "Action": "s3:PutObject",
136
- "Condition": {
137
- "ArnLike": {
138
- "aws:SourceArn": {
139
- "Fn::GetAtt": [
140
- "scrapBucketB11863B7",
141
- "Arn"
142
- ]
143
- }
144
- },
145
- "StringEquals": {
146
- "aws:SourceAccount": {
147
- "Ref": "AWS::AccountId"
148
- }
149
- }
150
- },
151
- "Effect": "Allow",
152
- "Principal": {
153
- "Service": "logging.s3.amazonaws.com"
154
- },
155
- "Resource": {
156
- "Fn::Join": [
157
- "",
158
- [
159
- {
160
- "Fn::GetAtt": [
161
- "scrapBucketLog7B53B25C",
162
- "Arn"
163
- ]
164
- },
165
- "/*"
166
- ]
167
- ]
168
- }
169
- }
170
- ],
171
- "Version": "2012-10-17"
172
- }
173
- }
174
- },
175
- "constructInfo": {
176
- "fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
177
- "version": "2.179.0"
178
- }
179
- }
180
- },
181
- "constructInfo": {
182
- "fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
183
- "version": "2.179.0",
184
- "metadata": [
185
- {
186
- "bucket": "*"
187
- }
188
- ]
189
- }
190
- },
191
- "AutoDeleteObjectsCustomResource": {
192
- "id": "AutoDeleteObjectsCustomResource",
193
- "path": "cftoais3-existing-bucket/scrapBucketLog/AutoDeleteObjectsCustomResource",
194
- "children": {
195
- "Default": {
196
- "id": "Default",
197
- "path": "cftoais3-existing-bucket/scrapBucketLog/AutoDeleteObjectsCustomResource/Default",
198
- "constructInfo": {
199
- "fqn": "aws-cdk-lib.CfnResource",
200
- "version": "2.179.0"
201
- }
202
- }
203
- },
204
- "constructInfo": {
205
- "fqn": "aws-cdk-lib.CustomResource",
206
- "version": "2.179.0",
207
- "metadata": [
208
- "*"
209
- ]
210
- }
211
- }
212
- },
213
- "constructInfo": {
214
- "fqn": "aws-cdk-lib.aws_s3.Bucket",
215
- "version": "2.179.0",
216
- "metadata": [
217
- {
218
- "versioned": true,
219
- "removalPolicy": "destroy",
220
- "autoDeleteObjects": true,
221
- "encryption": "S3_MANAGED",
222
- "enforceSSL": true
223
- }
224
- ]
225
- }
226
- },
227
- "LatestNodeRuntimeMap": {
228
- "id": "LatestNodeRuntimeMap",
229
- "path": "cftoais3-existing-bucket/LatestNodeRuntimeMap",
230
- "constructInfo": {
231
- "fqn": "aws-cdk-lib.CfnMapping",
232
- "version": "2.179.0"
233
- }
234
- },
235
- "Custom::S3AutoDeleteObjectsCustomResourceProvider": {
236
- "id": "Custom::S3AutoDeleteObjectsCustomResourceProvider",
237
- "path": "cftoais3-existing-bucket/Custom::S3AutoDeleteObjectsCustomResourceProvider",
238
- "children": {
239
- "Staging": {
240
- "id": "Staging",
241
- "path": "cftoais3-existing-bucket/Custom::S3AutoDeleteObjectsCustomResourceProvider/Staging",
242
- "constructInfo": {
243
- "fqn": "aws-cdk-lib.AssetStaging",
244
- "version": "2.179.0"
245
- }
246
- },
247
- "Role": {
248
- "id": "Role",
249
- "path": "cftoais3-existing-bucket/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role",
250
- "constructInfo": {
251
- "fqn": "aws-cdk-lib.CfnResource",
252
- "version": "2.179.0"
253
- }
254
- },
255
- "Handler": {
256
- "id": "Handler",
257
- "path": "cftoais3-existing-bucket/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler",
258
- "constructInfo": {
259
- "fqn": "aws-cdk-lib.CfnResource",
260
- "version": "2.179.0"
261
- }
262
- }
263
- },
264
- "constructInfo": {
265
- "fqn": "aws-cdk-lib.CustomResourceProviderBase",
266
- "version": "2.179.0"
267
- }
268
- },
269
- "scrapBucket": {
270
- "id": "scrapBucket",
271
- "path": "cftoais3-existing-bucket/scrapBucket",
272
- "children": {
273
- "Resource": {
274
- "id": "Resource",
275
- "path": "cftoais3-existing-bucket/scrapBucket/Resource",
276
- "attributes": {
277
- "aws:cdk:cloudformation:type": "AWS::S3::Bucket",
278
- "aws:cdk:cloudformation:props": {
279
- "bucketEncryption": {
280
- "serverSideEncryptionConfiguration": [
281
- {
282
- "serverSideEncryptionByDefault": {
283
- "sseAlgorithm": "AES256"
284
- }
285
- }
286
- ]
287
- },
288
- "loggingConfiguration": {
289
- "destinationBucketName": {
290
- "Ref": "scrapBucketLog7B53B25C"
291
- }
292
- },
293
- "tags": [
294
- {
295
- "key": "aws-cdk:auto-delete-objects",
296
- "value": "true"
297
- }
298
- ],
299
- "versioningConfiguration": {
300
- "status": "Enabled"
301
- }
302
- }
303
- },
304
- "constructInfo": {
305
- "fqn": "aws-cdk-lib.aws_s3.CfnBucket",
306
- "version": "2.179.0"
307
- }
308
- },
309
- "Policy": {
310
- "id": "Policy",
311
- "path": "cftoais3-existing-bucket/scrapBucket/Policy",
312
- "children": {
313
- "Resource": {
314
- "id": "Resource",
315
- "path": "cftoais3-existing-bucket/scrapBucket/Policy/Resource",
316
- "attributes": {
317
- "aws:cdk:cloudformation:type": "AWS::S3::BucketPolicy",
318
- "aws:cdk:cloudformation:props": {
319
- "bucket": {
320
- "Ref": "scrapBucketB11863B7"
321
- },
322
- "policyDocument": {
323
- "Statement": [
324
- {
325
- "Action": "s3:*",
326
- "Condition": {
327
- "Bool": {
328
- "aws:SecureTransport": "false"
329
- }
330
- },
331
- "Effect": "Deny",
332
- "Principal": {
333
- "AWS": "*"
334
- },
335
- "Resource": [
336
- {
337
- "Fn::GetAtt": [
338
- "scrapBucketB11863B7",
339
- "Arn"
340
- ]
341
- },
342
- {
343
- "Fn::Join": [
344
- "",
345
- [
346
- {
347
- "Fn::GetAtt": [
348
- "scrapBucketB11863B7",
349
- "Arn"
350
- ]
351
- },
352
- "/*"
353
- ]
354
- ]
355
- }
356
- ]
357
- },
358
- {
359
- "Action": [
360
- "s3:DeleteObject*",
361
- "s3:GetBucket*",
362
- "s3:List*",
363
- "s3:PutBucketPolicy"
364
- ],
365
- "Effect": "Allow",
366
- "Principal": {
367
- "AWS": {
368
- "Fn::GetAtt": [
369
- "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092",
370
- "Arn"
371
- ]
372
- }
373
- },
374
- "Resource": [
375
- {
376
- "Fn::GetAtt": [
377
- "scrapBucketB11863B7",
378
- "Arn"
379
- ]
380
- },
381
- {
382
- "Fn::Join": [
383
- "",
384
- [
385
- {
386
- "Fn::GetAtt": [
387
- "scrapBucketB11863B7",
388
- "Arn"
389
- ]
390
- },
391
- "/*"
392
- ]
393
- ]
394
- }
395
- ]
396
- },
397
- {
398
- "Action": "s3:GetObject",
399
- "Effect": "Allow",
400
- "Principal": {
401
- "CanonicalUser": [
402
- {
403
- "Fn::GetAtt": [
404
- "testcloudfrontoais3CloudFrontDistributionOrigin2S3Origin226F4E91",
405
- "S3CanonicalUserId"
406
- ]
407
- },
408
- {
409
- "Fn::GetAtt": [
410
- "testcloudfrontoais3constructsGeneratedOaiA468F478",
411
- "S3CanonicalUserId"
412
- ]
413
- }
414
- ]
415
- },
416
- "Resource": {
417
- "Fn::Join": [
418
- "",
419
- [
420
- {
421
- "Fn::GetAtt": [
422
- "scrapBucketB11863B7",
423
- "Arn"
424
- ]
425
- },
426
- "/*"
427
- ]
428
- ]
429
- }
430
- },
431
- {
432
- "Action": "s3:GetObject",
433
- "Condition": {
434
- "StringEquals": {
435
- "AWS:SourceArn": {
436
- "Fn::Join": [
437
- "",
438
- [
439
- "arn:",
440
- {
441
- "Ref": "AWS::Partition"
442
- },
443
- ":cloudfront::",
444
- {
445
- "Ref": "AWS::AccountId"
446
- },
447
- ":distribution/",
448
- {
449
- "Ref": "testcloudfrontoais3CloudFrontDistribution0E089CC5"
450
- }
451
- ]
452
- ]
453
- }
454
- }
455
- },
456
- "Effect": "Allow",
457
- "Principal": {
458
- "Service": "cloudfront.amazonaws.com"
459
- },
460
- "Resource": {
461
- "Fn::Join": [
462
- "",
463
- [
464
- {
465
- "Fn::GetAtt": [
466
- "scrapBucketB11863B7",
467
- "Arn"
468
- ]
469
- },
470
- "/*"
471
- ]
472
- ]
473
- }
474
- }
475
- ],
476
- "Version": "2012-10-17"
477
- }
478
- }
479
- },
480
- "constructInfo": {
481
- "fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
482
- "version": "2.179.0"
483
- }
484
- }
485
- },
486
- "constructInfo": {
487
- "fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
488
- "version": "2.179.0",
489
- "metadata": [
490
- {
491
- "bucket": "*"
492
- }
493
- ]
494
- }
495
- },
496
- "AutoDeleteObjectsCustomResource": {
497
- "id": "AutoDeleteObjectsCustomResource",
498
- "path": "cftoais3-existing-bucket/scrapBucket/AutoDeleteObjectsCustomResource",
499
- "children": {
500
- "Default": {
501
- "id": "Default",
502
- "path": "cftoais3-existing-bucket/scrapBucket/AutoDeleteObjectsCustomResource/Default",
503
- "constructInfo": {
504
- "fqn": "aws-cdk-lib.CfnResource",
505
- "version": "2.179.0"
506
- }
507
- }
508
- },
509
- "constructInfo": {
510
- "fqn": "aws-cdk-lib.CustomResource",
511
- "version": "2.179.0",
512
- "metadata": [
513
- "*"
514
- ]
515
- }
516
- }
517
- },
518
- "constructInfo": {
519
- "fqn": "aws-cdk-lib.aws_s3.Bucket",
520
- "version": "2.179.0",
521
- "metadata": [
522
- {
523
- "versioned": true,
524
- "removalPolicy": "destroy",
525
- "autoDeleteObjects": true,
526
- "encryption": "S3_MANAGED",
527
- "enforceSSL": true,
528
- "serverAccessLogsBucket": "*"
529
- }
530
- ]
531
- }
532
- },
533
- "test-cloudfront-oai-s3": {
534
- "id": "test-cloudfront-oai-s3",
535
- "path": "cftoais3-existing-bucket/test-cloudfront-oai-s3",
536
- "children": {
537
- "SetHttpSecurityHeaders": {
538
- "id": "SetHttpSecurityHeaders",
539
- "path": "cftoais3-existing-bucket/test-cloudfront-oai-s3/SetHttpSecurityHeaders",
540
- "children": {
541
- "Resource": {
542
- "id": "Resource",
543
- "path": "cftoais3-existing-bucket/test-cloudfront-oai-s3/SetHttpSecurityHeaders/Resource",
544
- "attributes": {
545
- "aws:cdk:cloudformation:type": "AWS::CloudFront::Function",
546
- "aws:cdk:cloudformation:props": {
547
- "autoPublish": true,
548
- "functionCode": "function handler(event) { var response = event.response; var headers = response.headers; headers['strict-transport-security'] = { value: 'max-age=63072000; includeSubdomains; preload'}; headers['content-security-policy'] = { value: \"default-src 'none'; img-src 'self'; script-src 'self'; style-src 'self'; object-src 'none'\"}; headers['x-content-type-options'] = { value: 'nosniff'}; headers['x-frame-options'] = {value: 'DENY'}; headers['x-xss-protection'] = {value: '1; mode=block'}; return response; }",
549
- "functionConfig": {
550
- "comment": "SetHttpSecurityHeadersc88f9647f3c3880b7dc1e2842431b60acc15da4a92",
551
- "runtime": "cloudfront-js-1.0"
552
- },
553
- "name": "SetHttpSecurityHeadersc88f9647f3c3880b7dc1e2842431b60acc15da4a92"
554
- }
555
- },
556
- "constructInfo": {
557
- "fqn": "aws-cdk-lib.aws_cloudfront.CfnFunction",
558
- "version": "2.179.0"
559
- }
560
- }
561
- },
562
- "constructInfo": {
563
- "fqn": "aws-cdk-lib.aws_cloudfront.Function",
564
- "version": "2.179.0",
565
- "metadata": [
566
- {
567
- "functionName": "*",
568
- "code": "*"
569
- }
570
- ]
571
- }
572
- },
573
- "CloudfrontLoggingBucketAccessLog": {
574
- "id": "CloudfrontLoggingBucketAccessLog",
575
- "path": "cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudfrontLoggingBucketAccessLog",
576
- "children": {
577
- "Resource": {
578
- "id": "Resource",
579
- "path": "cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudfrontLoggingBucketAccessLog/Resource",
580
- "attributes": {
581
- "aws:cdk:cloudformation:type": "AWS::S3::Bucket",
582
- "aws:cdk:cloudformation:props": {
583
- "bucketEncryption": {
584
- "serverSideEncryptionConfiguration": [
585
- {
586
- "serverSideEncryptionByDefault": {
587
- "sseAlgorithm": "AES256"
588
- }
589
- }
590
- ]
591
- },
592
- "publicAccessBlockConfiguration": {
593
- "blockPublicAcls": true,
594
- "blockPublicPolicy": true,
595
- "ignorePublicAcls": true,
596
- "restrictPublicBuckets": true
597
- },
598
- "tags": [
599
- {
600
- "key": "aws-cdk:auto-delete-objects",
601
- "value": "true"
602
- }
603
- ],
604
- "versioningConfiguration": {
605
- "status": "Enabled"
606
- }
607
- }
608
- },
609
- "constructInfo": {
610
- "fqn": "aws-cdk-lib.aws_s3.CfnBucket",
611
- "version": "2.179.0"
612
- }
613
- },
614
- "Policy": {
615
- "id": "Policy",
616
- "path": "cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudfrontLoggingBucketAccessLog/Policy",
617
- "children": {
618
- "Resource": {
619
- "id": "Resource",
620
- "path": "cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudfrontLoggingBucketAccessLog/Policy/Resource",
621
- "attributes": {
622
- "aws:cdk:cloudformation:type": "AWS::S3::BucketPolicy",
623
- "aws:cdk:cloudformation:props": {
624
- "bucket": {
625
- "Ref": "testcloudfrontoais3CloudfrontLoggingBucketAccessLogBF5AAF80"
626
- },
627
- "policyDocument": {
628
- "Statement": [
629
- {
630
- "Action": "s3:*",
631
- "Condition": {
632
- "Bool": {
633
- "aws:SecureTransport": "false"
634
- }
635
- },
636
- "Effect": "Deny",
637
- "Principal": {
638
- "AWS": "*"
639
- },
640
- "Resource": [
641
- {
642
- "Fn::GetAtt": [
643
- "testcloudfrontoais3CloudfrontLoggingBucketAccessLogBF5AAF80",
644
- "Arn"
645
- ]
646
- },
647
- {
648
- "Fn::Join": [
649
- "",
650
- [
651
- {
652
- "Fn::GetAtt": [
653
- "testcloudfrontoais3CloudfrontLoggingBucketAccessLogBF5AAF80",
654
- "Arn"
655
- ]
656
- },
657
- "/*"
658
- ]
659
- ]
660
- }
661
- ]
662
- },
663
- {
664
- "Action": [
665
- "s3:DeleteObject*",
666
- "s3:GetBucket*",
667
- "s3:List*",
668
- "s3:PutBucketPolicy"
669
- ],
670
- "Effect": "Allow",
671
- "Principal": {
672
- "AWS": {
673
- "Fn::GetAtt": [
674
- "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092",
675
- "Arn"
676
- ]
677
- }
678
- },
679
- "Resource": [
680
- {
681
- "Fn::GetAtt": [
682
- "testcloudfrontoais3CloudfrontLoggingBucketAccessLogBF5AAF80",
683
- "Arn"
684
- ]
685
- },
686
- {
687
- "Fn::Join": [
688
- "",
689
- [
690
- {
691
- "Fn::GetAtt": [
692
- "testcloudfrontoais3CloudfrontLoggingBucketAccessLogBF5AAF80",
693
- "Arn"
694
- ]
695
- },
696
- "/*"
697
- ]
698
- ]
699
- }
700
- ]
701
- },
702
- {
703
- "Action": "s3:PutObject",
704
- "Condition": {
705
- "ArnLike": {
706
- "aws:SourceArn": {
707
- "Fn::GetAtt": [
708
- "testcloudfrontoais3CloudfrontLoggingBucket55AA79FC",
709
- "Arn"
710
- ]
711
- }
712
- },
713
- "StringEquals": {
714
- "aws:SourceAccount": {
715
- "Ref": "AWS::AccountId"
716
- }
717
- }
718
- },
719
- "Effect": "Allow",
720
- "Principal": {
721
- "Service": "logging.s3.amazonaws.com"
722
- },
723
- "Resource": {
724
- "Fn::Join": [
725
- "",
726
- [
727
- {
728
- "Fn::GetAtt": [
729
- "testcloudfrontoais3CloudfrontLoggingBucketAccessLogBF5AAF80",
730
- "Arn"
731
- ]
732
- },
733
- "/*"
734
- ]
735
- ]
736
- }
737
- }
738
- ],
739
- "Version": "2012-10-17"
740
- }
741
- }
742
- },
743
- "constructInfo": {
744
- "fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
745
- "version": "2.179.0"
746
- }
747
- }
748
- },
749
- "constructInfo": {
750
- "fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
751
- "version": "2.179.0",
752
- "metadata": [
753
- {
754
- "bucket": "*"
755
- }
756
- ]
757
- }
758
- },
759
- "AutoDeleteObjectsCustomResource": {
760
- "id": "AutoDeleteObjectsCustomResource",
761
- "path": "cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudfrontLoggingBucketAccessLog/AutoDeleteObjectsCustomResource",
762
- "children": {
763
- "Default": {
764
- "id": "Default",
765
- "path": "cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudfrontLoggingBucketAccessLog/AutoDeleteObjectsCustomResource/Default",
766
- "constructInfo": {
767
- "fqn": "aws-cdk-lib.CfnResource",
768
- "version": "2.179.0"
769
- }
770
- }
771
- },
772
- "constructInfo": {
773
- "fqn": "aws-cdk-lib.CustomResource",
774
- "version": "2.179.0",
775
- "metadata": [
776
- "*"
777
- ]
778
- }
779
- }
780
- },
781
- "constructInfo": {
782
- "fqn": "aws-cdk-lib.aws_s3.Bucket",
783
- "version": "2.179.0",
784
- "metadata": [
785
- {
786
- "encryption": "S3_MANAGED",
787
- "versioned": true,
788
- "blockPublicAccess": "*",
789
- "removalPolicy": "destroy",
790
- "enforceSSL": true,
791
- "autoDeleteObjects": true
792
- }
793
- ]
794
- }
795
- },
796
- "CloudfrontLoggingBucket": {
797
- "id": "CloudfrontLoggingBucket",
798
- "path": "cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudfrontLoggingBucket",
799
- "children": {
800
- "Resource": {
801
- "id": "Resource",
802
- "path": "cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudfrontLoggingBucket/Resource",
803
- "attributes": {
804
- "aws:cdk:cloudformation:type": "AWS::S3::Bucket",
805
- "aws:cdk:cloudformation:props": {
806
- "bucketEncryption": {
807
- "serverSideEncryptionConfiguration": [
808
- {
809
- "serverSideEncryptionByDefault": {
810
- "sseAlgorithm": "AES256"
811
- }
812
- }
813
- ]
814
- },
815
- "loggingConfiguration": {
816
- "destinationBucketName": {
817
- "Ref": "testcloudfrontoais3CloudfrontLoggingBucketAccessLogBF5AAF80"
818
- }
819
- },
820
- "ownershipControls": {
821
- "rules": [
822
- {
823
- "objectOwnership": "ObjectWriter"
824
- }
825
- ]
826
- },
827
- "publicAccessBlockConfiguration": {
828
- "blockPublicAcls": true,
829
- "blockPublicPolicy": true,
830
- "ignorePublicAcls": true,
831
- "restrictPublicBuckets": true
832
- },
833
- "tags": [
834
- {
835
- "key": "aws-cdk:auto-delete-objects",
836
- "value": "true"
837
- }
838
- ],
839
- "versioningConfiguration": {
840
- "status": "Enabled"
841
- }
842
- }
843
- },
844
- "constructInfo": {
845
- "fqn": "aws-cdk-lib.aws_s3.CfnBucket",
846
- "version": "2.179.0"
847
- }
848
- },
849
- "Policy": {
850
- "id": "Policy",
851
- "path": "cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudfrontLoggingBucket/Policy",
852
- "children": {
853
- "Resource": {
854
- "id": "Resource",
855
- "path": "cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudfrontLoggingBucket/Policy/Resource",
856
- "attributes": {
857
- "aws:cdk:cloudformation:type": "AWS::S3::BucketPolicy",
858
- "aws:cdk:cloudformation:props": {
859
- "bucket": {
860
- "Ref": "testcloudfrontoais3CloudfrontLoggingBucket55AA79FC"
861
- },
862
- "policyDocument": {
863
- "Statement": [
864
- {
865
- "Action": "s3:*",
866
- "Condition": {
867
- "Bool": {
868
- "aws:SecureTransport": "false"
869
- }
870
- },
871
- "Effect": "Deny",
872
- "Principal": {
873
- "AWS": "*"
874
- },
875
- "Resource": [
876
- {
877
- "Fn::GetAtt": [
878
- "testcloudfrontoais3CloudfrontLoggingBucket55AA79FC",
879
- "Arn"
880
- ]
881
- },
882
- {
883
- "Fn::Join": [
884
- "",
885
- [
886
- {
887
- "Fn::GetAtt": [
888
- "testcloudfrontoais3CloudfrontLoggingBucket55AA79FC",
889
- "Arn"
890
- ]
891
- },
892
- "/*"
893
- ]
894
- ]
895
- }
896
- ]
897
- },
898
- {
899
- "Action": [
900
- "s3:DeleteObject*",
901
- "s3:GetBucket*",
902
- "s3:List*",
903
- "s3:PutBucketPolicy"
904
- ],
905
- "Effect": "Allow",
906
- "Principal": {
907
- "AWS": {
908
- "Fn::GetAtt": [
909
- "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092",
910
- "Arn"
911
- ]
912
- }
913
- },
914
- "Resource": [
915
- {
916
- "Fn::GetAtt": [
917
- "testcloudfrontoais3CloudfrontLoggingBucket55AA79FC",
918
- "Arn"
919
- ]
920
- },
921
- {
922
- "Fn::Join": [
923
- "",
924
- [
925
- {
926
- "Fn::GetAtt": [
927
- "testcloudfrontoais3CloudfrontLoggingBucket55AA79FC",
928
- "Arn"
929
- ]
930
- },
931
- "/*"
932
- ]
933
- ]
934
- }
935
- ]
936
- }
937
- ],
938
- "Version": "2012-10-17"
939
- }
940
- }
941
- },
942
- "constructInfo": {
943
- "fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
944
- "version": "2.179.0"
945
- }
946
- }
947
- },
948
- "constructInfo": {
949
- "fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
950
- "version": "2.179.0",
951
- "metadata": [
952
- {
953
- "bucket": "*"
954
- }
955
- ]
956
- }
957
- },
958
- "AutoDeleteObjectsCustomResource": {
959
- "id": "AutoDeleteObjectsCustomResource",
960
- "path": "cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudfrontLoggingBucket/AutoDeleteObjectsCustomResource",
961
- "children": {
962
- "Default": {
963
- "id": "Default",
964
- "path": "cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudfrontLoggingBucket/AutoDeleteObjectsCustomResource/Default",
965
- "constructInfo": {
966
- "fqn": "aws-cdk-lib.CfnResource",
967
- "version": "2.179.0"
968
- }
969
- }
970
- },
971
- "constructInfo": {
972
- "fqn": "aws-cdk-lib.CustomResource",
973
- "version": "2.179.0",
974
- "metadata": [
975
- "*"
976
- ]
977
- }
978
- }
979
- },
980
- "constructInfo": {
981
- "fqn": "aws-cdk-lib.aws_s3.Bucket",
982
- "version": "2.179.0",
983
- "metadata": [
984
- {
985
- "encryption": "S3_MANAGED",
986
- "versioned": true,
987
- "blockPublicAccess": "*",
988
- "removalPolicy": "destroy",
989
- "enforceSSL": true,
990
- "autoDeleteObjects": true,
991
- "objectOwnership": "ObjectWriter",
992
- "serverAccessLogsBucket": "*"
993
- }
994
- ]
995
- }
996
- },
997
- "constructsGeneratedOai": {
998
- "id": "constructsGeneratedOai",
999
- "path": "cftoais3-existing-bucket/test-cloudfront-oai-s3/constructsGeneratedOai",
1000
- "children": {
1001
- "Resource": {
1002
- "id": "Resource",
1003
- "path": "cftoais3-existing-bucket/test-cloudfront-oai-s3/constructsGeneratedOai/Resource",
1004
- "attributes": {
1005
- "aws:cdk:cloudformation:type": "AWS::CloudFront::CloudFrontOriginAccessIdentity",
1006
- "aws:cdk:cloudformation:props": {
1007
- "cloudFrontOriginAccessIdentityConfig": {
1008
- "comment": "Allows CloudFront to reach the bucket"
1009
- }
1010
- }
1011
- },
1012
- "constructInfo": {
1013
- "fqn": "aws-cdk-lib.aws_cloudfront.CfnCloudFrontOriginAccessIdentity",
1014
- "version": "2.179.0"
1015
- }
1016
- }
1017
- },
1018
- "constructInfo": {
1019
- "fqn": "aws-cdk-lib.aws_cloudfront.OriginAccessIdentity",
1020
- "version": "2.179.0",
1021
- "metadata": [
1022
- "*"
1023
- ]
1024
- }
1025
- },
1026
- "CloudFrontDistribution": {
1027
- "id": "CloudFrontDistribution",
1028
- "path": "cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudFrontDistribution",
1029
- "children": {
1030
- "Origin1": {
1031
- "id": "Origin1",
1032
- "path": "cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudFrontDistribution/Origin1",
1033
- "constructInfo": {
1034
- "fqn": "constructs.Construct",
1035
- "version": "10.4.2"
1036
- }
1037
- },
1038
- "Resource": {
1039
- "id": "Resource",
1040
- "path": "cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudFrontDistribution/Resource",
1041
- "attributes": {
1042
- "aws:cdk:cloudformation:type": "AWS::CloudFront::Distribution",
1043
- "aws:cdk:cloudformation:props": {
1044
- "distributionConfig": {
1045
- "enabled": true,
1046
- "origins": [
1047
- {
1048
- "domainName": {
1049
- "Fn::GetAtt": [
1050
- "scrapBucketB11863B7",
1051
- "RegionalDomainName"
1052
- ]
1053
- },
1054
- "id": "cftoais3existingbuckettestcloudfrontoais3CloudFrontDistributionOrigin151240FB9",
1055
- "s3OriginConfig": {
1056
- "originAccessIdentity": {
1057
- "Fn::Join": [
1058
- "",
1059
- [
1060
- "origin-access-identity/cloudfront/",
1061
- {
1062
- "Ref": "testcloudfrontoais3constructsGeneratedOaiA468F478"
1063
- }
1064
- ]
1065
- ]
1066
- }
1067
- }
1068
- },
1069
- {
1070
- "domainName": {
1071
- "Fn::GetAtt": [
1072
- "scrapBucketB11863B7",
1073
- "RegionalDomainName"
1074
- ]
1075
- },
1076
- "id": "cftoais3existingbuckettestcloudfrontoais3CloudFrontDistributionOrigin2153DAD64",
1077
- "s3OriginConfig": {
1078
- "originAccessIdentity": {
1079
- "Fn::Join": [
1080
- "",
1081
- [
1082
- "origin-access-identity/cloudfront/",
1083
- {
1084
- "Ref": "testcloudfrontoais3CloudFrontDistributionOrigin2S3Origin226F4E91"
1085
- }
1086
- ]
1087
- ]
1088
- }
1089
- }
1090
- }
1091
- ],
1092
- "defaultCacheBehavior": {
1093
- "pathPattern": "*",
1094
- "targetOriginId": "cftoais3existingbuckettestcloudfrontoais3CloudFrontDistributionOrigin151240FB9",
1095
- "cachePolicyId": "658327ea-f89d-4fab-a63d-7e88639e58f6",
1096
- "compress": true,
1097
- "viewerProtocolPolicy": "redirect-to-https",
1098
- "functionAssociations": [
1099
- {
1100
- "functionArn": {
1101
- "Fn::GetAtt": [
1102
- "testcloudfrontoais3SetHttpSecurityHeaders4EB3C97B",
1103
- "FunctionARN"
1104
- ]
1105
- },
1106
- "eventType": "viewer-response"
1107
- }
1108
- ]
1109
- },
1110
- "cacheBehaviors": [
1111
- {
1112
- "pathPattern": "/images/*.jpg",
1113
- "targetOriginId": "cftoais3existingbuckettestcloudfrontoais3CloudFrontDistributionOrigin2153DAD64",
1114
- "cachePolicyId": {
1115
- "Ref": "myCachePolicy16CE2FCF"
1116
- },
1117
- "compress": true,
1118
- "viewerProtocolPolicy": "allow-all"
1119
- }
1120
- ],
1121
- "defaultRootObject": "index.html",
1122
- "httpVersion": "http2",
1123
- "ipv6Enabled": true,
1124
- "logging": {
1125
- "bucket": {
1126
- "Fn::GetAtt": [
1127
- "testcloudfrontoais3CloudfrontLoggingBucket55AA79FC",
1128
- "RegionalDomainName"
1129
- ]
1130
- }
1131
- }
1132
- }
1133
- }
1134
- },
1135
- "constructInfo": {
1136
- "fqn": "aws-cdk-lib.aws_cloudfront.CfnDistribution",
1137
- "version": "2.179.0"
1138
- }
1139
- },
1140
- "Origin2": {
1141
- "id": "Origin2",
1142
- "path": "cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudFrontDistribution/Origin2",
1143
- "children": {
1144
- "S3Origin": {
1145
- "id": "S3Origin",
1146
- "path": "cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudFrontDistribution/Origin2/S3Origin",
1147
- "children": {
1148
- "Resource": {
1149
- "id": "Resource",
1150
- "path": "cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudFrontDistribution/Origin2/S3Origin/Resource",
1151
- "attributes": {
1152
- "aws:cdk:cloudformation:type": "AWS::CloudFront::CloudFrontOriginAccessIdentity",
1153
- "aws:cdk:cloudformation:props": {
1154
- "cloudFrontOriginAccessIdentityConfig": {
1155
- "comment": "Identity for cftoais3existingbuckettestcloudfrontoais3CloudFrontDistributionOrigin2153DAD64"
1156
- }
1157
- }
1158
- },
1159
- "constructInfo": {
1160
- "fqn": "aws-cdk-lib.aws_cloudfront.CfnCloudFrontOriginAccessIdentity",
1161
- "version": "2.179.0"
1162
- }
1163
- }
1164
- },
1165
- "constructInfo": {
1166
- "fqn": "aws-cdk-lib.aws_cloudfront.OriginAccessIdentity",
1167
- "version": "2.179.0",
1168
- "metadata": [
1169
- {}
1170
- ]
1171
- }
1172
- }
1173
- },
1174
- "constructInfo": {
1175
- "fqn": "constructs.Construct",
1176
- "version": "10.4.2"
1177
- }
1178
- }
1179
- },
1180
- "constructInfo": {
1181
- "fqn": "aws-cdk-lib.aws_cloudfront.Distribution",
1182
- "version": "2.179.0",
1183
- "metadata": [
1184
- {
1185
- "defaultBehavior": {
1186
- "origin": "*",
1187
- "viewerProtocolPolicy": "redirect-to-https",
1188
- "functionAssociations": [
1189
- {
1190
- "eventType": "viewer-response",
1191
- "function": "*"
1192
- }
1193
- ]
1194
- },
1195
- "enableLogging": true,
1196
- "logBucket": "*",
1197
- "defaultRootObject": "*"
1198
- },
1199
- {
1200
- "addBehavior": [
1201
- "*",
1202
- {},
1203
- {
1204
- "cachePolicy": "*"
1205
- }
1206
- ]
1207
- }
1208
- ]
1209
- }
1210
- }
1211
- },
1212
- "constructInfo": {
1213
- "fqn": "@aws-solutions-constructs/aws-cloudfront-oai-s3.CloudFrontToOaiToS3",
1214
- "version": "2.79.1"
1215
- }
1216
- },
1217
- "myCachePolicy": {
1218
- "id": "myCachePolicy",
1219
- "path": "cftoais3-existing-bucket/myCachePolicy",
1220
- "children": {
1221
- "Resource": {
1222
- "id": "Resource",
1223
- "path": "cftoais3-existing-bucket/myCachePolicy/Resource",
1224
- "attributes": {
1225
- "aws:cdk:cloudformation:type": "AWS::CloudFront::CachePolicy",
1226
- "aws:cdk:cloudformation:props": {
1227
- "cachePolicyConfig": {
1228
- "name": "MyPolicy",
1229
- "minTtl": 0,
1230
- "maxTtl": 0,
1231
- "defaultTtl": 0,
1232
- "parametersInCacheKeyAndForwardedToOrigin": {
1233
- "cookiesConfig": {
1234
- "cookieBehavior": "none"
1235
- },
1236
- "headersConfig": {
1237
- "headerBehavior": "none"
1238
- },
1239
- "enableAcceptEncodingGzip": false,
1240
- "enableAcceptEncodingBrotli": false,
1241
- "queryStringsConfig": {
1242
- "queryStringBehavior": "none"
1243
- }
1244
- }
1245
- }
1246
- }
1247
- },
1248
- "constructInfo": {
1249
- "fqn": "aws-cdk-lib.aws_cloudfront.CfnCachePolicy",
1250
- "version": "2.179.0"
1251
- }
1252
- }
1253
- },
1254
- "constructInfo": {
1255
- "fqn": "aws-cdk-lib.aws_cloudfront.CachePolicy",
1256
- "version": "2.179.0",
1257
- "metadata": [
1258
- {
1259
- "cachePolicyName": "*",
1260
- "defaultTtl": "*",
1261
- "minTtl": "*",
1262
- "maxTtl": "*"
1263
- }
1264
- ]
1265
- }
1266
- },
1267
- "Integ": {
1268
- "id": "Integ",
1269
- "path": "cftoais3-existing-bucket/Integ",
1270
- "children": {
1271
- "DefaultTest": {
1272
- "id": "DefaultTest",
1273
- "path": "cftoais3-existing-bucket/Integ/DefaultTest",
1274
- "children": {
1275
- "Default": {
1276
- "id": "Default",
1277
- "path": "cftoais3-existing-bucket/Integ/DefaultTest/Default",
1278
- "constructInfo": {
1279
- "fqn": "constructs.Construct",
1280
- "version": "10.4.2"
1281
- }
1282
- },
1283
- "DeployAssert": {
1284
- "id": "DeployAssert",
1285
- "path": "cftoais3-existing-bucket/Integ/DefaultTest/DeployAssert",
1286
- "children": {
1287
- "BootstrapVersion": {
1288
- "id": "BootstrapVersion",
1289
- "path": "cftoais3-existing-bucket/Integ/DefaultTest/DeployAssert/BootstrapVersion",
1290
- "constructInfo": {
1291
- "fqn": "aws-cdk-lib.CfnParameter",
1292
- "version": "2.179.0"
1293
- }
1294
- },
1295
- "CheckBootstrapVersion": {
1296
- "id": "CheckBootstrapVersion",
1297
- "path": "cftoais3-existing-bucket/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion",
1298
- "constructInfo": {
1299
- "fqn": "aws-cdk-lib.CfnRule",
1300
- "version": "2.179.0"
1301
- }
1302
- }
1303
- },
1304
- "constructInfo": {
1305
- "fqn": "aws-cdk-lib.Stack",
1306
- "version": "2.179.0"
1307
- }
1308
- }
1309
- },
1310
- "constructInfo": {
1311
- "fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase",
1312
- "version": "2.179.0-alpha.0"
1313
- }
1314
- }
1315
- },
1316
- "constructInfo": {
1317
- "fqn": "@aws-cdk/integ-tests-alpha.IntegTest",
1318
- "version": "2.179.0-alpha.0"
1319
- }
1320
- },
1321
- "BootstrapVersion": {
1322
- "id": "BootstrapVersion",
1323
- "path": "cftoais3-existing-bucket/BootstrapVersion",
1324
- "constructInfo": {
1325
- "fqn": "aws-cdk-lib.CfnParameter",
1326
- "version": "2.179.0"
1327
- }
1328
- },
1329
- "CheckBootstrapVersion": {
1330
- "id": "CheckBootstrapVersion",
1331
- "path": "cftoais3-existing-bucket/CheckBootstrapVersion",
1332
- "constructInfo": {
1333
- "fqn": "aws-cdk-lib.CfnRule",
1334
- "version": "2.179.0"
1335
- }
1336
- }
1337
- },
1338
- "constructInfo": {
1339
- "fqn": "aws-cdk-lib.Stack",
1340
- "version": "2.179.0"
1341
- }
1342
- },
1343
- "Tree": {
1344
- "id": "Tree",
1345
- "path": "Tree",
1346
- "constructInfo": {
1347
- "fqn": "constructs.Construct",
1348
- "version": "10.4.2"
1349
- }
1350
- }
1351
- },
1352
- "constructInfo": {
1353
- "fqn": "aws-cdk-lib.App",
1354
- "version": "2.179.0"
1355
- }
1356
- }
1357
- }
1
+ {"version":"tree-0.1","tree":{"id":"App","path":"","children":{"cftoais3-existing-bucket":{"id":"cftoais3-existing-bucket","path":"cftoais3-existing-bucket","children":{"scrapBucketLog":{"id":"scrapBucketLog","path":"cftoais3-existing-bucket/scrapBucketLog","children":{"Resource":{"id":"Resource","path":"cftoais3-existing-bucket/scrapBucketLog/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::S3::Bucket","aws:cdk:cloudformation:props":{"bucketEncryption":{"serverSideEncryptionConfiguration":[{"serverSideEncryptionByDefault":{"sseAlgorithm":"AES256"}}]},"tags":[{"key":"aws-cdk:auto-delete-objects","value":"true"}],"versioningConfiguration":{"status":"Enabled"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_s3.CfnBucket","version":"2.193.0"}},"Policy":{"id":"Policy","path":"cftoais3-existing-bucket/scrapBucketLog/Policy","children":{"Resource":{"id":"Resource","path":"cftoais3-existing-bucket/scrapBucketLog/Policy/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::S3::BucketPolicy","aws:cdk:cloudformation:props":{"bucket":{"Ref":"scrapBucketLog7B53B25C"},"policyDocument":{"Statement":[{"Action":"s3:*","Condition":{"Bool":{"aws:SecureTransport":"false"}},"Effect":"Deny","Principal":{"AWS":"*"},"Resource":[{"Fn::GetAtt":["scrapBucketLog7B53B25C","Arn"]},{"Fn::Join":["",[{"Fn::GetAtt":["scrapBucketLog7B53B25C","Arn"]},"/*"]]}]},{"Action":["s3:DeleteObject*","s3:GetBucket*","s3:List*","s3:PutBucketPolicy"],"Effect":"Allow","Principal":{"AWS":{"Fn::GetAtt":["CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092","Arn"]}},"Resource":[{"Fn::GetAtt":["scrapBucketLog7B53B25C","Arn"]},{"Fn::Join":["",[{"Fn::GetAtt":["scrapBucketLog7B53B25C","Arn"]},"/*"]]}]},{"Action":"s3:PutObject","Condition":{"ArnLike":{"aws:SourceArn":{"Fn::GetAtt":["scrapBucketB11863B7","Arn"]}},"StringEquals":{"aws:SourceAccount":{"Ref":"AWS::AccountId"}}},"Effect":"Allow","Principal":{"Service":"logging.s3.amazonaws.com"},"Resource":{"Fn::Join":["",[{"Fn::GetAtt":["scrapBucketLog7B53B25C","Arn"]},"/*"]]}}],"Version":"2012-10-17"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_s3.CfnBucketPolicy","version":"2.193.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_s3.BucketPolicy","version":"2.193.0","metadata":[{"bucket":"*"}]}},"AutoDeleteObjectsCustomResource":{"id":"AutoDeleteObjectsCustomResource","path":"cftoais3-existing-bucket/scrapBucketLog/AutoDeleteObjectsCustomResource","children":{"Default":{"id":"Default","path":"cftoais3-existing-bucket/scrapBucketLog/AutoDeleteObjectsCustomResource/Default","constructInfo":{"fqn":"aws-cdk-lib.CfnResource","version":"2.193.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.CustomResource","version":"2.193.0","metadata":["*"]}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_s3.Bucket","version":"2.193.0","metadata":[{"versioned":true,"removalPolicy":"destroy","autoDeleteObjects":true,"encryption":"S3_MANAGED","enforceSSL":true}]}},"LatestNodeRuntimeMap":{"id":"LatestNodeRuntimeMap","path":"cftoais3-existing-bucket/LatestNodeRuntimeMap","constructInfo":{"fqn":"aws-cdk-lib.CfnMapping","version":"2.193.0"}},"Custom::S3AutoDeleteObjectsCustomResourceProvider":{"id":"Custom::S3AutoDeleteObjectsCustomResourceProvider","path":"cftoais3-existing-bucket/Custom::S3AutoDeleteObjectsCustomResourceProvider","children":{"Staging":{"id":"Staging","path":"cftoais3-existing-bucket/Custom::S3AutoDeleteObjectsCustomResourceProvider/Staging","constructInfo":{"fqn":"aws-cdk-lib.AssetStaging","version":"2.193.0"}},"Role":{"id":"Role","path":"cftoais3-existing-bucket/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role","constructInfo":{"fqn":"aws-cdk-lib.CfnResource","version":"2.193.0"}},"Handler":{"id":"Handler","path":"cftoais3-existing-bucket/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler","constructInfo":{"fqn":"aws-cdk-lib.CfnResource","version":"2.193.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.CustomResourceProviderBase","version":"2.193.0"}},"scrapBucket":{"id":"scrapBucket","path":"cftoais3-existing-bucket/scrapBucket","children":{"Resource":{"id":"Resource","path":"cftoais3-existing-bucket/scrapBucket/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::S3::Bucket","aws:cdk:cloudformation:props":{"bucketEncryption":{"serverSideEncryptionConfiguration":[{"serverSideEncryptionByDefault":{"sseAlgorithm":"AES256"}}]},"loggingConfiguration":{"destinationBucketName":{"Ref":"scrapBucketLog7B53B25C"}},"tags":[{"key":"aws-cdk:auto-delete-objects","value":"true"}],"versioningConfiguration":{"status":"Enabled"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_s3.CfnBucket","version":"2.193.0"}},"Policy":{"id":"Policy","path":"cftoais3-existing-bucket/scrapBucket/Policy","children":{"Resource":{"id":"Resource","path":"cftoais3-existing-bucket/scrapBucket/Policy/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::S3::BucketPolicy","aws:cdk:cloudformation:props":{"bucket":{"Ref":"scrapBucketB11863B7"},"policyDocument":{"Statement":[{"Action":"s3:*","Condition":{"Bool":{"aws:SecureTransport":"false"}},"Effect":"Deny","Principal":{"AWS":"*"},"Resource":[{"Fn::GetAtt":["scrapBucketB11863B7","Arn"]},{"Fn::Join":["",[{"Fn::GetAtt":["scrapBucketB11863B7","Arn"]},"/*"]]}]},{"Action":["s3:DeleteObject*","s3:GetBucket*","s3:List*","s3:PutBucketPolicy"],"Effect":"Allow","Principal":{"AWS":{"Fn::GetAtt":["CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092","Arn"]}},"Resource":[{"Fn::GetAtt":["scrapBucketB11863B7","Arn"]},{"Fn::Join":["",[{"Fn::GetAtt":["scrapBucketB11863B7","Arn"]},"/*"]]}]},{"Action":"s3:GetObject","Effect":"Allow","Principal":{"CanonicalUser":[{"Fn::GetAtt":["testcloudfrontoais3CloudFrontDistributionOrigin2S3Origin226F4E91","S3CanonicalUserId"]},{"Fn::GetAtt":["testcloudfrontoais3constructsGeneratedOaiA468F478","S3CanonicalUserId"]}]},"Resource":{"Fn::Join":["",[{"Fn::GetAtt":["scrapBucketB11863B7","Arn"]},"/*"]]}},{"Action":"s3:GetObject","Condition":{"StringEquals":{"AWS:SourceArn":{"Fn::Join":["",["arn:",{"Ref":"AWS::Partition"},":cloudfront::",{"Ref":"AWS::AccountId"},":distribution/",{"Ref":"testcloudfrontoais3CloudFrontDistribution0E089CC5"}]]}}},"Effect":"Allow","Principal":{"Service":"cloudfront.amazonaws.com"},"Resource":{"Fn::Join":["",[{"Fn::GetAtt":["scrapBucketB11863B7","Arn"]},"/*"]]}}],"Version":"2012-10-17"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_s3.CfnBucketPolicy","version":"2.193.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_s3.BucketPolicy","version":"2.193.0","metadata":[{"bucket":"*"}]}},"AutoDeleteObjectsCustomResource":{"id":"AutoDeleteObjectsCustomResource","path":"cftoais3-existing-bucket/scrapBucket/AutoDeleteObjectsCustomResource","children":{"Default":{"id":"Default","path":"cftoais3-existing-bucket/scrapBucket/AutoDeleteObjectsCustomResource/Default","constructInfo":{"fqn":"aws-cdk-lib.CfnResource","version":"2.193.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.CustomResource","version":"2.193.0","metadata":["*"]}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_s3.Bucket","version":"2.193.0","metadata":[{"versioned":true,"removalPolicy":"destroy","autoDeleteObjects":true,"encryption":"S3_MANAGED","enforceSSL":true,"serverAccessLogsBucket":"*"}]}},"test-cloudfront-oai-s3":{"id":"test-cloudfront-oai-s3","path":"cftoais3-existing-bucket/test-cloudfront-oai-s3","children":{"SetHttpSecurityHeaders":{"id":"SetHttpSecurityHeaders","path":"cftoais3-existing-bucket/test-cloudfront-oai-s3/SetHttpSecurityHeaders","children":{"Resource":{"id":"Resource","path":"cftoais3-existing-bucket/test-cloudfront-oai-s3/SetHttpSecurityHeaders/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::CloudFront::Function","aws:cdk:cloudformation:props":{"autoPublish":true,"functionCode":"function handler(event) { var response = event.response; var headers = response.headers; headers['strict-transport-security'] = { value: 'max-age=63072000; includeSubdomains; preload'}; headers['content-security-policy'] = { value: \"default-src 'none'; img-src 'self'; script-src 'self'; style-src 'self'; object-src 'none'\"}; headers['x-content-type-options'] = { value: 'nosniff'}; headers['x-frame-options'] = {value: 'DENY'}; headers['x-xss-protection'] = {value: '1; mode=block'}; return response; }","functionConfig":{"comment":"SetHttpSecurityHeadersc88f9647f3c3880b7dc1e2842431b60acc15da4a92","runtime":"cloudfront-js-1.0"},"name":"SetHttpSecurityHeadersc88f9647f3c3880b7dc1e2842431b60acc15da4a92"}},"constructInfo":{"fqn":"aws-cdk-lib.aws_cloudfront.CfnFunction","version":"2.193.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_cloudfront.Function","version":"2.193.0","metadata":[{"functionName":"*","code":"*"}]}},"CloudfrontLoggingBucketAccessLog":{"id":"CloudfrontLoggingBucketAccessLog","path":"cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudfrontLoggingBucketAccessLog","children":{"Resource":{"id":"Resource","path":"cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudfrontLoggingBucketAccessLog/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::S3::Bucket","aws:cdk:cloudformation:props":{"bucketEncryption":{"serverSideEncryptionConfiguration":[{"serverSideEncryptionByDefault":{"sseAlgorithm":"AES256"}}]},"publicAccessBlockConfiguration":{"blockPublicAcls":true,"blockPublicPolicy":true,"ignorePublicAcls":true,"restrictPublicBuckets":true},"tags":[{"key":"aws-cdk:auto-delete-objects","value":"true"}],"versioningConfiguration":{"status":"Enabled"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_s3.CfnBucket","version":"2.193.0"}},"Policy":{"id":"Policy","path":"cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudfrontLoggingBucketAccessLog/Policy","children":{"Resource":{"id":"Resource","path":"cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudfrontLoggingBucketAccessLog/Policy/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::S3::BucketPolicy","aws:cdk:cloudformation:props":{"bucket":{"Ref":"testcloudfrontoais3CloudfrontLoggingBucketAccessLogBF5AAF80"},"policyDocument":{"Statement":[{"Action":"s3:*","Condition":{"Bool":{"aws:SecureTransport":"false"}},"Effect":"Deny","Principal":{"AWS":"*"},"Resource":[{"Fn::GetAtt":["testcloudfrontoais3CloudfrontLoggingBucketAccessLogBF5AAF80","Arn"]},{"Fn::Join":["",[{"Fn::GetAtt":["testcloudfrontoais3CloudfrontLoggingBucketAccessLogBF5AAF80","Arn"]},"/*"]]}]},{"Action":["s3:DeleteObject*","s3:GetBucket*","s3:List*","s3:PutBucketPolicy"],"Effect":"Allow","Principal":{"AWS":{"Fn::GetAtt":["CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092","Arn"]}},"Resource":[{"Fn::GetAtt":["testcloudfrontoais3CloudfrontLoggingBucketAccessLogBF5AAF80","Arn"]},{"Fn::Join":["",[{"Fn::GetAtt":["testcloudfrontoais3CloudfrontLoggingBucketAccessLogBF5AAF80","Arn"]},"/*"]]}]},{"Action":"s3:PutObject","Condition":{"ArnLike":{"aws:SourceArn":{"Fn::GetAtt":["testcloudfrontoais3CloudfrontLoggingBucket55AA79FC","Arn"]}},"StringEquals":{"aws:SourceAccount":{"Ref":"AWS::AccountId"}}},"Effect":"Allow","Principal":{"Service":"logging.s3.amazonaws.com"},"Resource":{"Fn::Join":["",[{"Fn::GetAtt":["testcloudfrontoais3CloudfrontLoggingBucketAccessLogBF5AAF80","Arn"]},"/*"]]}}],"Version":"2012-10-17"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_s3.CfnBucketPolicy","version":"2.193.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_s3.BucketPolicy","version":"2.193.0","metadata":[{"bucket":"*"}]}},"AutoDeleteObjectsCustomResource":{"id":"AutoDeleteObjectsCustomResource","path":"cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudfrontLoggingBucketAccessLog/AutoDeleteObjectsCustomResource","children":{"Default":{"id":"Default","path":"cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudfrontLoggingBucketAccessLog/AutoDeleteObjectsCustomResource/Default","constructInfo":{"fqn":"aws-cdk-lib.CfnResource","version":"2.193.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.CustomResource","version":"2.193.0","metadata":["*"]}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_s3.Bucket","version":"2.193.0","metadata":[{"encryption":"S3_MANAGED","versioned":true,"blockPublicAccess":"*","removalPolicy":"destroy","enforceSSL":true,"autoDeleteObjects":true}]}},"CloudfrontLoggingBucket":{"id":"CloudfrontLoggingBucket","path":"cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudfrontLoggingBucket","children":{"Resource":{"id":"Resource","path":"cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudfrontLoggingBucket/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::S3::Bucket","aws:cdk:cloudformation:props":{"bucketEncryption":{"serverSideEncryptionConfiguration":[{"serverSideEncryptionByDefault":{"sseAlgorithm":"AES256"}}]},"loggingConfiguration":{"destinationBucketName":{"Ref":"testcloudfrontoais3CloudfrontLoggingBucketAccessLogBF5AAF80"}},"ownershipControls":{"rules":[{"objectOwnership":"ObjectWriter"}]},"publicAccessBlockConfiguration":{"blockPublicAcls":true,"blockPublicPolicy":true,"ignorePublicAcls":true,"restrictPublicBuckets":true},"tags":[{"key":"aws-cdk:auto-delete-objects","value":"true"}],"versioningConfiguration":{"status":"Enabled"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_s3.CfnBucket","version":"2.193.0"}},"Policy":{"id":"Policy","path":"cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudfrontLoggingBucket/Policy","children":{"Resource":{"id":"Resource","path":"cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudfrontLoggingBucket/Policy/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::S3::BucketPolicy","aws:cdk:cloudformation:props":{"bucket":{"Ref":"testcloudfrontoais3CloudfrontLoggingBucket55AA79FC"},"policyDocument":{"Statement":[{"Action":"s3:*","Condition":{"Bool":{"aws:SecureTransport":"false"}},"Effect":"Deny","Principal":{"AWS":"*"},"Resource":[{"Fn::GetAtt":["testcloudfrontoais3CloudfrontLoggingBucket55AA79FC","Arn"]},{"Fn::Join":["",[{"Fn::GetAtt":["testcloudfrontoais3CloudfrontLoggingBucket55AA79FC","Arn"]},"/*"]]}]},{"Action":["s3:DeleteObject*","s3:GetBucket*","s3:List*","s3:PutBucketPolicy"],"Effect":"Allow","Principal":{"AWS":{"Fn::GetAtt":["CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092","Arn"]}},"Resource":[{"Fn::GetAtt":["testcloudfrontoais3CloudfrontLoggingBucket55AA79FC","Arn"]},{"Fn::Join":["",[{"Fn::GetAtt":["testcloudfrontoais3CloudfrontLoggingBucket55AA79FC","Arn"]},"/*"]]}]}],"Version":"2012-10-17"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_s3.CfnBucketPolicy","version":"2.193.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_s3.BucketPolicy","version":"2.193.0","metadata":[{"bucket":"*"}]}},"AutoDeleteObjectsCustomResource":{"id":"AutoDeleteObjectsCustomResource","path":"cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudfrontLoggingBucket/AutoDeleteObjectsCustomResource","children":{"Default":{"id":"Default","path":"cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudfrontLoggingBucket/AutoDeleteObjectsCustomResource/Default","constructInfo":{"fqn":"aws-cdk-lib.CfnResource","version":"2.193.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.CustomResource","version":"2.193.0","metadata":["*"]}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_s3.Bucket","version":"2.193.0","metadata":[{"encryption":"S3_MANAGED","versioned":true,"blockPublicAccess":"*","removalPolicy":"destroy","enforceSSL":true,"autoDeleteObjects":true,"objectOwnership":"ObjectWriter","serverAccessLogsBucket":"*"}]}},"constructsGeneratedOai":{"id":"constructsGeneratedOai","path":"cftoais3-existing-bucket/test-cloudfront-oai-s3/constructsGeneratedOai","children":{"Resource":{"id":"Resource","path":"cftoais3-existing-bucket/test-cloudfront-oai-s3/constructsGeneratedOai/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::CloudFront::CloudFrontOriginAccessIdentity","aws:cdk:cloudformation:props":{"cloudFrontOriginAccessIdentityConfig":{"comment":"Allows CloudFront to reach the bucket"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_cloudfront.CfnCloudFrontOriginAccessIdentity","version":"2.193.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_cloudfront.OriginAccessIdentity","version":"2.193.0","metadata":["*"]}},"CloudFrontDistribution":{"id":"CloudFrontDistribution","path":"cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudFrontDistribution","children":{"Origin1":{"id":"Origin1","path":"cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudFrontDistribution/Origin1","constructInfo":{"fqn":"constructs.Construct","version":"10.4.2"}},"Resource":{"id":"Resource","path":"cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudFrontDistribution/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::CloudFront::Distribution","aws:cdk:cloudformation:props":{"distributionConfig":{"enabled":true,"origins":[{"domainName":{"Fn::GetAtt":["scrapBucketB11863B7","RegionalDomainName"]},"id":"cftoais3existingbuckettestcloudfrontoais3CloudFrontDistributionOrigin151240FB9","s3OriginConfig":{"originAccessIdentity":{"Fn::Join":["",["origin-access-identity/cloudfront/",{"Ref":"testcloudfrontoais3constructsGeneratedOaiA468F478"}]]}}},{"domainName":{"Fn::GetAtt":["scrapBucketB11863B7","RegionalDomainName"]},"id":"cftoais3existingbuckettestcloudfrontoais3CloudFrontDistributionOrigin2153DAD64","s3OriginConfig":{"originAccessIdentity":{"Fn::Join":["",["origin-access-identity/cloudfront/",{"Ref":"testcloudfrontoais3CloudFrontDistributionOrigin2S3Origin226F4E91"}]]}}}],"defaultCacheBehavior":{"pathPattern":"*","targetOriginId":"cftoais3existingbuckettestcloudfrontoais3CloudFrontDistributionOrigin151240FB9","cachePolicyId":"658327ea-f89d-4fab-a63d-7e88639e58f6","compress":true,"viewerProtocolPolicy":"redirect-to-https","functionAssociations":[{"functionArn":{"Fn::GetAtt":["testcloudfrontoais3SetHttpSecurityHeaders4EB3C97B","FunctionARN"]},"eventType":"viewer-response"}]},"cacheBehaviors":[{"pathPattern":"/images/*.jpg","targetOriginId":"cftoais3existingbuckettestcloudfrontoais3CloudFrontDistributionOrigin2153DAD64","cachePolicyId":{"Ref":"myCachePolicy16CE2FCF"},"compress":true,"viewerProtocolPolicy":"allow-all"}],"defaultRootObject":"index.html","httpVersion":"http2","ipv6Enabled":true,"logging":{"bucket":{"Fn::GetAtt":["testcloudfrontoais3CloudfrontLoggingBucket55AA79FC","RegionalDomainName"]}}}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_cloudfront.CfnDistribution","version":"2.193.0"}},"Origin2":{"id":"Origin2","path":"cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudFrontDistribution/Origin2","children":{"S3Origin":{"id":"S3Origin","path":"cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudFrontDistribution/Origin2/S3Origin","children":{"Resource":{"id":"Resource","path":"cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudFrontDistribution/Origin2/S3Origin/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::CloudFront::CloudFrontOriginAccessIdentity","aws:cdk:cloudformation:props":{"cloudFrontOriginAccessIdentityConfig":{"comment":"Identity for cftoais3existingbuckettestcloudfrontoais3CloudFrontDistributionOrigin2153DAD64"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_cloudfront.CfnCloudFrontOriginAccessIdentity","version":"2.193.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_cloudfront.OriginAccessIdentity","version":"2.193.0","metadata":[{}]}}},"constructInfo":{"fqn":"constructs.Construct","version":"10.4.2"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_cloudfront.Distribution","version":"2.193.0","metadata":[{"defaultBehavior":{"origin":"*","viewerProtocolPolicy":"redirect-to-https","functionAssociations":[{"eventType":"viewer-response","function":"*"}]},"enableLogging":true,"logBucket":"*","defaultRootObject":"*"},{"addBehavior":["*",{},{"cachePolicy":"*"}]}]}}},"constructInfo":{"fqn":"@aws-solutions-constructs/aws-cloudfront-oai-s3.CloudFrontToOaiToS3","version":"2.85.0"}},"myCachePolicy":{"id":"myCachePolicy","path":"cftoais3-existing-bucket/myCachePolicy","children":{"Resource":{"id":"Resource","path":"cftoais3-existing-bucket/myCachePolicy/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::CloudFront::CachePolicy","aws:cdk:cloudformation:props":{"cachePolicyConfig":{"name":"MyPolicy","minTtl":0,"maxTtl":0,"defaultTtl":0,"parametersInCacheKeyAndForwardedToOrigin":{"cookiesConfig":{"cookieBehavior":"none"},"headersConfig":{"headerBehavior":"none"},"enableAcceptEncodingGzip":false,"enableAcceptEncodingBrotli":false,"queryStringsConfig":{"queryStringBehavior":"none"}}}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_cloudfront.CfnCachePolicy","version":"2.193.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_cloudfront.CachePolicy","version":"2.193.0","metadata":[{"cachePolicyName":"*","defaultTtl":"*","minTtl":"*","maxTtl":"*"}]}},"Integ":{"id":"Integ","path":"cftoais3-existing-bucket/Integ","children":{"DefaultTest":{"id":"DefaultTest","path":"cftoais3-existing-bucket/Integ/DefaultTest","children":{"Default":{"id":"Default","path":"cftoais3-existing-bucket/Integ/DefaultTest/Default","constructInfo":{"fqn":"constructs.Construct","version":"10.4.2"}},"DeployAssert":{"id":"DeployAssert","path":"cftoais3-existing-bucket/Integ/DefaultTest/DeployAssert","children":{"BootstrapVersion":{"id":"BootstrapVersion","path":"cftoais3-existing-bucket/Integ/DefaultTest/DeployAssert/BootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnParameter","version":"2.193.0"}},"CheckBootstrapVersion":{"id":"CheckBootstrapVersion","path":"cftoais3-existing-bucket/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnRule","version":"2.193.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.Stack","version":"2.193.0"}}},"constructInfo":{"fqn":"@aws-cdk/integ-tests-alpha.IntegTestCase","version":"2.193.0-alpha.0"}}},"constructInfo":{"fqn":"@aws-cdk/integ-tests-alpha.IntegTest","version":"2.193.0-alpha.0"}},"BootstrapVersion":{"id":"BootstrapVersion","path":"cftoais3-existing-bucket/BootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnParameter","version":"2.193.0"}},"CheckBootstrapVersion":{"id":"CheckBootstrapVersion","path":"cftoais3-existing-bucket/CheckBootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnRule","version":"2.193.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.Stack","version":"2.193.0"}},"Tree":{"id":"Tree","path":"Tree","constructInfo":{"fqn":"constructs.Construct","version":"10.4.2"}}},"constructInfo":{"fqn":"aws-cdk-lib.App","version":"2.193.0"}}}