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

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,606 +1 @@
1
- {
2
- "version": "tree-0.1",
3
- "tree": {
4
- "id": "App",
5
- "path": "",
6
- "children": {
7
- "cftoais3-no-logging": {
8
- "id": "cftoais3-no-logging",
9
- "path": "cftoais3-no-logging",
10
- "children": {
11
- "test-cloudfront-oai-s3": {
12
- "id": "test-cloudfront-oai-s3",
13
- "path": "cftoais3-no-logging/test-cloudfront-oai-s3",
14
- "children": {
15
- "S3Bucket": {
16
- "id": "S3Bucket",
17
- "path": "cftoais3-no-logging/test-cloudfront-oai-s3/S3Bucket",
18
- "children": {
19
- "Resource": {
20
- "id": "Resource",
21
- "path": "cftoais3-no-logging/test-cloudfront-oai-s3/S3Bucket/Resource",
22
- "attributes": {
23
- "aws:cdk:cloudformation:type": "AWS::S3::Bucket",
24
- "aws:cdk:cloudformation:props": {
25
- "bucketEncryption": {
26
- "serverSideEncryptionConfiguration": [
27
- {
28
- "serverSideEncryptionByDefault": {
29
- "sseAlgorithm": "AES256"
30
- }
31
- }
32
- ]
33
- },
34
- "lifecycleConfiguration": {
35
- "rules": [
36
- {
37
- "noncurrentVersionTransitions": [
38
- {
39
- "storageClass": "GLACIER",
40
- "transitionInDays": 90
41
- }
42
- ],
43
- "status": "Enabled"
44
- }
45
- ]
46
- },
47
- "publicAccessBlockConfiguration": {
48
- "blockPublicAcls": true,
49
- "blockPublicPolicy": true,
50
- "ignorePublicAcls": true,
51
- "restrictPublicBuckets": true
52
- },
53
- "tags": [
54
- {
55
- "key": "aws-cdk:auto-delete-objects",
56
- "value": "true"
57
- }
58
- ],
59
- "versioningConfiguration": {
60
- "status": "Enabled"
61
- }
62
- }
63
- },
64
- "constructInfo": {
65
- "fqn": "aws-cdk-lib.aws_s3.CfnBucket",
66
- "version": "2.179.0"
67
- }
68
- },
69
- "Policy": {
70
- "id": "Policy",
71
- "path": "cftoais3-no-logging/test-cloudfront-oai-s3/S3Bucket/Policy",
72
- "children": {
73
- "Resource": {
74
- "id": "Resource",
75
- "path": "cftoais3-no-logging/test-cloudfront-oai-s3/S3Bucket/Policy/Resource",
76
- "attributes": {
77
- "aws:cdk:cloudformation:type": "AWS::S3::BucketPolicy",
78
- "aws:cdk:cloudformation:props": {
79
- "bucket": {
80
- "Ref": "testcloudfrontoais3S3Bucket578AB9F3"
81
- },
82
- "policyDocument": {
83
- "Statement": [
84
- {
85
- "Action": "s3:*",
86
- "Condition": {
87
- "Bool": {
88
- "aws:SecureTransport": "false"
89
- }
90
- },
91
- "Effect": "Deny",
92
- "Principal": {
93
- "AWS": "*"
94
- },
95
- "Resource": [
96
- {
97
- "Fn::GetAtt": [
98
- "testcloudfrontoais3S3Bucket578AB9F3",
99
- "Arn"
100
- ]
101
- },
102
- {
103
- "Fn::Join": [
104
- "",
105
- [
106
- {
107
- "Fn::GetAtt": [
108
- "testcloudfrontoais3S3Bucket578AB9F3",
109
- "Arn"
110
- ]
111
- },
112
- "/*"
113
- ]
114
- ]
115
- }
116
- ]
117
- },
118
- {
119
- "Action": [
120
- "s3:DeleteObject*",
121
- "s3:GetBucket*",
122
- "s3:List*",
123
- "s3:PutBucketPolicy"
124
- ],
125
- "Effect": "Allow",
126
- "Principal": {
127
- "AWS": {
128
- "Fn::GetAtt": [
129
- "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092",
130
- "Arn"
131
- ]
132
- }
133
- },
134
- "Resource": [
135
- {
136
- "Fn::GetAtt": [
137
- "testcloudfrontoais3S3Bucket578AB9F3",
138
- "Arn"
139
- ]
140
- },
141
- {
142
- "Fn::Join": [
143
- "",
144
- [
145
- {
146
- "Fn::GetAtt": [
147
- "testcloudfrontoais3S3Bucket578AB9F3",
148
- "Arn"
149
- ]
150
- },
151
- "/*"
152
- ]
153
- ]
154
- }
155
- ]
156
- },
157
- {
158
- "Action": "s3:GetObject",
159
- "Effect": "Allow",
160
- "Principal": {
161
- "CanonicalUser": {
162
- "Fn::GetAtt": [
163
- "testcloudfrontoais3constructsGeneratedOaiA468F478",
164
- "S3CanonicalUserId"
165
- ]
166
- }
167
- },
168
- "Resource": {
169
- "Fn::Join": [
170
- "",
171
- [
172
- {
173
- "Fn::GetAtt": [
174
- "testcloudfrontoais3S3Bucket578AB9F3",
175
- "Arn"
176
- ]
177
- },
178
- "/*"
179
- ]
180
- ]
181
- }
182
- },
183
- {
184
- "Action": "s3:GetObject",
185
- "Condition": {
186
- "StringEquals": {
187
- "AWS:SourceArn": {
188
- "Fn::Join": [
189
- "",
190
- [
191
- "arn:",
192
- {
193
- "Ref": "AWS::Partition"
194
- },
195
- ":cloudfront::",
196
- {
197
- "Ref": "AWS::AccountId"
198
- },
199
- ":distribution/",
200
- {
201
- "Ref": "testcloudfrontoais3CloudFrontDistribution0E089CC5"
202
- }
203
- ]
204
- ]
205
- }
206
- }
207
- },
208
- "Effect": "Allow",
209
- "Principal": {
210
- "Service": "cloudfront.amazonaws.com"
211
- },
212
- "Resource": {
213
- "Fn::Join": [
214
- "",
215
- [
216
- {
217
- "Fn::GetAtt": [
218
- "testcloudfrontoais3S3Bucket578AB9F3",
219
- "Arn"
220
- ]
221
- },
222
- "/*"
223
- ]
224
- ]
225
- }
226
- }
227
- ],
228
- "Version": "2012-10-17"
229
- }
230
- }
231
- },
232
- "constructInfo": {
233
- "fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
234
- "version": "2.179.0"
235
- }
236
- }
237
- },
238
- "constructInfo": {
239
- "fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
240
- "version": "2.179.0",
241
- "metadata": [
242
- {
243
- "bucket": "*"
244
- }
245
- ]
246
- }
247
- },
248
- "AutoDeleteObjectsCustomResource": {
249
- "id": "AutoDeleteObjectsCustomResource",
250
- "path": "cftoais3-no-logging/test-cloudfront-oai-s3/S3Bucket/AutoDeleteObjectsCustomResource",
251
- "children": {
252
- "Default": {
253
- "id": "Default",
254
- "path": "cftoais3-no-logging/test-cloudfront-oai-s3/S3Bucket/AutoDeleteObjectsCustomResource/Default",
255
- "constructInfo": {
256
- "fqn": "aws-cdk-lib.CfnResource",
257
- "version": "2.179.0"
258
- }
259
- }
260
- },
261
- "constructInfo": {
262
- "fqn": "aws-cdk-lib.CustomResource",
263
- "version": "2.179.0",
264
- "metadata": [
265
- "*"
266
- ]
267
- }
268
- }
269
- },
270
- "constructInfo": {
271
- "fqn": "aws-cdk-lib.aws_s3.Bucket",
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
- ]
305
- }
306
- },
307
- "SetHttpSecurityHeaders": {
308
- "id": "SetHttpSecurityHeaders",
309
- "path": "cftoais3-no-logging/test-cloudfront-oai-s3/SetHttpSecurityHeaders",
310
- "children": {
311
- "Resource": {
312
- "id": "Resource",
313
- "path": "cftoais3-no-logging/test-cloudfront-oai-s3/SetHttpSecurityHeaders/Resource",
314
- "attributes": {
315
- "aws:cdk:cloudformation:type": "AWS::CloudFront::Function",
316
- "aws:cdk:cloudformation:props": {
317
- "autoPublish": true,
318
- "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; }",
319
- "functionConfig": {
320
- "comment": "SetHttpSecurityHeadersc8ef3112652a2611d5eff9255f981ddb83b0566ae4",
321
- "runtime": "cloudfront-js-1.0"
322
- },
323
- "name": "SetHttpSecurityHeadersc8ef3112652a2611d5eff9255f981ddb83b0566ae4"
324
- }
325
- },
326
- "constructInfo": {
327
- "fqn": "aws-cdk-lib.aws_cloudfront.CfnFunction",
328
- "version": "2.179.0"
329
- }
330
- }
331
- },
332
- "constructInfo": {
333
- "fqn": "aws-cdk-lib.aws_cloudfront.Function",
334
- "version": "2.179.0",
335
- "metadata": [
336
- {
337
- "functionName": "*",
338
- "code": "*"
339
- }
340
- ]
341
- }
342
- },
343
- "constructsGeneratedOai": {
344
- "id": "constructsGeneratedOai",
345
- "path": "cftoais3-no-logging/test-cloudfront-oai-s3/constructsGeneratedOai",
346
- "children": {
347
- "Resource": {
348
- "id": "Resource",
349
- "path": "cftoais3-no-logging/test-cloudfront-oai-s3/constructsGeneratedOai/Resource",
350
- "attributes": {
351
- "aws:cdk:cloudformation:type": "AWS::CloudFront::CloudFrontOriginAccessIdentity",
352
- "aws:cdk:cloudformation:props": {
353
- "cloudFrontOriginAccessIdentityConfig": {
354
- "comment": "Allows CloudFront to reach the bucket"
355
- }
356
- }
357
- },
358
- "constructInfo": {
359
- "fqn": "aws-cdk-lib.aws_cloudfront.CfnCloudFrontOriginAccessIdentity",
360
- "version": "2.179.0"
361
- }
362
- }
363
- },
364
- "constructInfo": {
365
- "fqn": "aws-cdk-lib.aws_cloudfront.OriginAccessIdentity",
366
- "version": "2.179.0",
367
- "metadata": [
368
- "*"
369
- ]
370
- }
371
- },
372
- "CloudFrontDistribution": {
373
- "id": "CloudFrontDistribution",
374
- "path": "cftoais3-no-logging/test-cloudfront-oai-s3/CloudFrontDistribution",
375
- "children": {
376
- "Origin1": {
377
- "id": "Origin1",
378
- "path": "cftoais3-no-logging/test-cloudfront-oai-s3/CloudFrontDistribution/Origin1",
379
- "constructInfo": {
380
- "fqn": "constructs.Construct",
381
- "version": "10.4.2"
382
- }
383
- },
384
- "Resource": {
385
- "id": "Resource",
386
- "path": "cftoais3-no-logging/test-cloudfront-oai-s3/CloudFrontDistribution/Resource",
387
- "attributes": {
388
- "aws:cdk:cloudformation:type": "AWS::CloudFront::Distribution",
389
- "aws:cdk:cloudformation:props": {
390
- "distributionConfig": {
391
- "enabled": true,
392
- "origins": [
393
- {
394
- "domainName": {
395
- "Fn::GetAtt": [
396
- "testcloudfrontoais3S3Bucket578AB9F3",
397
- "RegionalDomainName"
398
- ]
399
- },
400
- "id": "cftoais3nologgingtestcloudfrontoais3CloudFrontDistributionOrigin18473615C",
401
- "s3OriginConfig": {
402
- "originAccessIdentity": {
403
- "Fn::Join": [
404
- "",
405
- [
406
- "origin-access-identity/cloudfront/",
407
- {
408
- "Ref": "testcloudfrontoais3constructsGeneratedOaiA468F478"
409
- }
410
- ]
411
- ]
412
- }
413
- }
414
- }
415
- ],
416
- "defaultCacheBehavior": {
417
- "pathPattern": "*",
418
- "targetOriginId": "cftoais3nologgingtestcloudfrontoais3CloudFrontDistributionOrigin18473615C",
419
- "cachePolicyId": "658327ea-f89d-4fab-a63d-7e88639e58f6",
420
- "compress": true,
421
- "viewerProtocolPolicy": "redirect-to-https",
422
- "functionAssociations": [
423
- {
424
- "functionArn": {
425
- "Fn::GetAtt": [
426
- "testcloudfrontoais3SetHttpSecurityHeaders4EB3C97B",
427
- "FunctionARN"
428
- ]
429
- },
430
- "eventType": "viewer-response"
431
- }
432
- ]
433
- },
434
- "defaultRootObject": "index.html",
435
- "httpVersion": "http2",
436
- "ipv6Enabled": true
437
- }
438
- }
439
- },
440
- "constructInfo": {
441
- "fqn": "aws-cdk-lib.aws_cloudfront.CfnDistribution",
442
- "version": "2.179.0"
443
- }
444
- }
445
- },
446
- "constructInfo": {
447
- "fqn": "aws-cdk-lib.aws_cloudfront.Distribution",
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
- ]
466
- }
467
- }
468
- },
469
- "constructInfo": {
470
- "fqn": "@aws-solutions-constructs/aws-cloudfront-oai-s3.CloudFrontToOaiToS3",
471
- "version": "2.79.1"
472
- }
473
- },
474
- "LatestNodeRuntimeMap": {
475
- "id": "LatestNodeRuntimeMap",
476
- "path": "cftoais3-no-logging/LatestNodeRuntimeMap",
477
- "constructInfo": {
478
- "fqn": "aws-cdk-lib.CfnMapping",
479
- "version": "2.179.0"
480
- }
481
- },
482
- "Custom::S3AutoDeleteObjectsCustomResourceProvider": {
483
- "id": "Custom::S3AutoDeleteObjectsCustomResourceProvider",
484
- "path": "cftoais3-no-logging/Custom::S3AutoDeleteObjectsCustomResourceProvider",
485
- "children": {
486
- "Staging": {
487
- "id": "Staging",
488
- "path": "cftoais3-no-logging/Custom::S3AutoDeleteObjectsCustomResourceProvider/Staging",
489
- "constructInfo": {
490
- "fqn": "aws-cdk-lib.AssetStaging",
491
- "version": "2.179.0"
492
- }
493
- },
494
- "Role": {
495
- "id": "Role",
496
- "path": "cftoais3-no-logging/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role",
497
- "constructInfo": {
498
- "fqn": "aws-cdk-lib.CfnResource",
499
- "version": "2.179.0"
500
- }
501
- },
502
- "Handler": {
503
- "id": "Handler",
504
- "path": "cftoais3-no-logging/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler",
505
- "constructInfo": {
506
- "fqn": "aws-cdk-lib.CfnResource",
507
- "version": "2.179.0"
508
- }
509
- }
510
- },
511
- "constructInfo": {
512
- "fqn": "aws-cdk-lib.CustomResourceProviderBase",
513
- "version": "2.179.0"
514
- }
515
- },
516
- "Integ": {
517
- "id": "Integ",
518
- "path": "cftoais3-no-logging/Integ",
519
- "children": {
520
- "DefaultTest": {
521
- "id": "DefaultTest",
522
- "path": "cftoais3-no-logging/Integ/DefaultTest",
523
- "children": {
524
- "Default": {
525
- "id": "Default",
526
- "path": "cftoais3-no-logging/Integ/DefaultTest/Default",
527
- "constructInfo": {
528
- "fqn": "constructs.Construct",
529
- "version": "10.4.2"
530
- }
531
- },
532
- "DeployAssert": {
533
- "id": "DeployAssert",
534
- "path": "cftoais3-no-logging/Integ/DefaultTest/DeployAssert",
535
- "children": {
536
- "BootstrapVersion": {
537
- "id": "BootstrapVersion",
538
- "path": "cftoais3-no-logging/Integ/DefaultTest/DeployAssert/BootstrapVersion",
539
- "constructInfo": {
540
- "fqn": "aws-cdk-lib.CfnParameter",
541
- "version": "2.179.0"
542
- }
543
- },
544
- "CheckBootstrapVersion": {
545
- "id": "CheckBootstrapVersion",
546
- "path": "cftoais3-no-logging/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion",
547
- "constructInfo": {
548
- "fqn": "aws-cdk-lib.CfnRule",
549
- "version": "2.179.0"
550
- }
551
- }
552
- },
553
- "constructInfo": {
554
- "fqn": "aws-cdk-lib.Stack",
555
- "version": "2.179.0"
556
- }
557
- }
558
- },
559
- "constructInfo": {
560
- "fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase",
561
- "version": "2.179.0-alpha.0"
562
- }
563
- }
564
- },
565
- "constructInfo": {
566
- "fqn": "@aws-cdk/integ-tests-alpha.IntegTest",
567
- "version": "2.179.0-alpha.0"
568
- }
569
- },
570
- "BootstrapVersion": {
571
- "id": "BootstrapVersion",
572
- "path": "cftoais3-no-logging/BootstrapVersion",
573
- "constructInfo": {
574
- "fqn": "aws-cdk-lib.CfnParameter",
575
- "version": "2.179.0"
576
- }
577
- },
578
- "CheckBootstrapVersion": {
579
- "id": "CheckBootstrapVersion",
580
- "path": "cftoais3-no-logging/CheckBootstrapVersion",
581
- "constructInfo": {
582
- "fqn": "aws-cdk-lib.CfnRule",
583
- "version": "2.179.0"
584
- }
585
- }
586
- },
587
- "constructInfo": {
588
- "fqn": "aws-cdk-lib.Stack",
589
- "version": "2.179.0"
590
- }
591
- },
592
- "Tree": {
593
- "id": "Tree",
594
- "path": "Tree",
595
- "constructInfo": {
596
- "fqn": "constructs.Construct",
597
- "version": "10.4.2"
598
- }
599
- }
600
- },
601
- "constructInfo": {
602
- "fqn": "aws-cdk-lib.App",
603
- "version": "2.179.0"
604
- }
605
- }
606
- }
1
+ {"version":"tree-0.1","tree":{"id":"App","path":"","children":{"cftoais3-no-logging":{"id":"cftoais3-no-logging","path":"cftoais3-no-logging","children":{"test-cloudfront-oai-s3":{"id":"test-cloudfront-oai-s3","path":"cftoais3-no-logging/test-cloudfront-oai-s3","children":{"S3Bucket":{"id":"S3Bucket","path":"cftoais3-no-logging/test-cloudfront-oai-s3/S3Bucket","children":{"Resource":{"id":"Resource","path":"cftoais3-no-logging/test-cloudfront-oai-s3/S3Bucket/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::S3::Bucket","aws:cdk:cloudformation:props":{"bucketEncryption":{"serverSideEncryptionConfiguration":[{"serverSideEncryptionByDefault":{"sseAlgorithm":"AES256"}}]},"lifecycleConfiguration":{"rules":[{"noncurrentVersionTransitions":[{"storageClass":"GLACIER","transitionInDays":90}],"status":"Enabled"}]},"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-no-logging/test-cloudfront-oai-s3/S3Bucket/Policy","children":{"Resource":{"id":"Resource","path":"cftoais3-no-logging/test-cloudfront-oai-s3/S3Bucket/Policy/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::S3::BucketPolicy","aws:cdk:cloudformation:props":{"bucket":{"Ref":"testcloudfrontoais3S3Bucket578AB9F3"},"policyDocument":{"Statement":[{"Action":"s3:*","Condition":{"Bool":{"aws:SecureTransport":"false"}},"Effect":"Deny","Principal":{"AWS":"*"},"Resource":[{"Fn::GetAtt":["testcloudfrontoais3S3Bucket578AB9F3","Arn"]},{"Fn::Join":["",[{"Fn::GetAtt":["testcloudfrontoais3S3Bucket578AB9F3","Arn"]},"/*"]]}]},{"Action":["s3:DeleteObject*","s3:GetBucket*","s3:List*","s3:PutBucketPolicy"],"Effect":"Allow","Principal":{"AWS":{"Fn::GetAtt":["CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092","Arn"]}},"Resource":[{"Fn::GetAtt":["testcloudfrontoais3S3Bucket578AB9F3","Arn"]},{"Fn::Join":["",[{"Fn::GetAtt":["testcloudfrontoais3S3Bucket578AB9F3","Arn"]},"/*"]]}]},{"Action":"s3:GetObject","Effect":"Allow","Principal":{"CanonicalUser":{"Fn::GetAtt":["testcloudfrontoais3constructsGeneratedOaiA468F478","S3CanonicalUserId"]}},"Resource":{"Fn::Join":["",[{"Fn::GetAtt":["testcloudfrontoais3S3Bucket578AB9F3","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":["testcloudfrontoais3S3Bucket578AB9F3","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-no-logging/test-cloudfront-oai-s3/S3Bucket/AutoDeleteObjectsCustomResource","children":{"Default":{"id":"Default","path":"cftoais3-no-logging/test-cloudfront-oai-s3/S3Bucket/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,"lifecycleRules":[{"noncurrentVersionTransitions":[{"storageClass":"*"}]}],"autoDeleteObjects":true},{"addLifecycleRule":[{"noncurrentVersionTransitions":[{"storageClass":"*"}]},"*","*"]}]}},"SetHttpSecurityHeaders":{"id":"SetHttpSecurityHeaders","path":"cftoais3-no-logging/test-cloudfront-oai-s3/SetHttpSecurityHeaders","children":{"Resource":{"id":"Resource","path":"cftoais3-no-logging/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":"SetHttpSecurityHeadersc8ef3112652a2611d5eff9255f981ddb83b0566ae4","runtime":"cloudfront-js-1.0"},"name":"SetHttpSecurityHeadersc8ef3112652a2611d5eff9255f981ddb83b0566ae4"}},"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":"*"}]}},"constructsGeneratedOai":{"id":"constructsGeneratedOai","path":"cftoais3-no-logging/test-cloudfront-oai-s3/constructsGeneratedOai","children":{"Resource":{"id":"Resource","path":"cftoais3-no-logging/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-no-logging/test-cloudfront-oai-s3/CloudFrontDistribution","children":{"Origin1":{"id":"Origin1","path":"cftoais3-no-logging/test-cloudfront-oai-s3/CloudFrontDistribution/Origin1","constructInfo":{"fqn":"constructs.Construct","version":"10.4.2"}},"Resource":{"id":"Resource","path":"cftoais3-no-logging/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":["testcloudfrontoais3S3Bucket578AB9F3","RegionalDomainName"]},"id":"cftoais3nologgingtestcloudfrontoais3CloudFrontDistributionOrigin18473615C","s3OriginConfig":{"originAccessIdentity":{"Fn::Join":["",["origin-access-identity/cloudfront/",{"Ref":"testcloudfrontoais3constructsGeneratedOaiA468F478"}]]}}}],"defaultCacheBehavior":{"pathPattern":"*","targetOriginId":"cftoais3nologgingtestcloudfrontoais3CloudFrontDistributionOrigin18473615C","cachePolicyId":"658327ea-f89d-4fab-a63d-7e88639e58f6","compress":true,"viewerProtocolPolicy":"redirect-to-https","functionAssociations":[{"functionArn":{"Fn::GetAtt":["testcloudfrontoais3SetHttpSecurityHeaders4EB3C97B","FunctionARN"]},"eventType":"viewer-response"}]},"defaultRootObject":"index.html","httpVersion":"http2","ipv6Enabled":true}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_cloudfront.CfnDistribution","version":"2.193.0"}}},"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":false,"logBucket":"*","defaultRootObject":"*"}]}}},"constructInfo":{"fqn":"@aws-solutions-constructs/aws-cloudfront-oai-s3.CloudFrontToOaiToS3","version":"2.85.0"}},"LatestNodeRuntimeMap":{"id":"LatestNodeRuntimeMap","path":"cftoais3-no-logging/LatestNodeRuntimeMap","constructInfo":{"fqn":"aws-cdk-lib.CfnMapping","version":"2.193.0"}},"Custom::S3AutoDeleteObjectsCustomResourceProvider":{"id":"Custom::S3AutoDeleteObjectsCustomResourceProvider","path":"cftoais3-no-logging/Custom::S3AutoDeleteObjectsCustomResourceProvider","children":{"Staging":{"id":"Staging","path":"cftoais3-no-logging/Custom::S3AutoDeleteObjectsCustomResourceProvider/Staging","constructInfo":{"fqn":"aws-cdk-lib.AssetStaging","version":"2.193.0"}},"Role":{"id":"Role","path":"cftoais3-no-logging/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role","constructInfo":{"fqn":"aws-cdk-lib.CfnResource","version":"2.193.0"}},"Handler":{"id":"Handler","path":"cftoais3-no-logging/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler","constructInfo":{"fqn":"aws-cdk-lib.CfnResource","version":"2.193.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.CustomResourceProviderBase","version":"2.193.0"}},"Integ":{"id":"Integ","path":"cftoais3-no-logging/Integ","children":{"DefaultTest":{"id":"DefaultTest","path":"cftoais3-no-logging/Integ/DefaultTest","children":{"Default":{"id":"Default","path":"cftoais3-no-logging/Integ/DefaultTest/Default","constructInfo":{"fqn":"constructs.Construct","version":"10.4.2"}},"DeployAssert":{"id":"DeployAssert","path":"cftoais3-no-logging/Integ/DefaultTest/DeployAssert","children":{"BootstrapVersion":{"id":"BootstrapVersion","path":"cftoais3-no-logging/Integ/DefaultTest/DeployAssert/BootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnParameter","version":"2.193.0"}},"CheckBootstrapVersion":{"id":"CheckBootstrapVersion","path":"cftoais3-no-logging/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-no-logging/BootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnParameter","version":"2.193.0"}},"CheckBootstrapVersion":{"id":"CheckBootstrapVersion","path":"cftoais3-no-logging/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"}}}
@@ -1 +1 @@
1
- {"version":"39.0.0"}
1
+ {"version":"41.0.0"}