@aws-solutions-constructs/aws-cloudfront-s3 2.71.0 → 2.72.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +6 -6
- package/lib/index.js +3 -3
- package/package.json +8 -8
- package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/asset.4dc48ffba382f93077a1e6824599bbd4ceb6f91eb3d9442eca3b85bdb1a20b1e/framework.js +3 -0
- package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/cdk.out +1 -1
- package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.assets.json +6 -6
- package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.template.json +6 -2
- package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/cfts3bucketencryptedwithcmkprovidedasexistingbucketIntegDefaultTestDeployAssertF6031114.assets.json +1 -1
- package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/integ.json +1 -1
- package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/manifest.json +10 -2
- package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/tree.json +75 -71
- package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/cdk.out +1 -1
- package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.assets.json +3 -3
- package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.template.json +5 -1
- package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/cfts3bucketencryptedwithmanagedkeyprovidedasexistingbucketIntegDefaultTestDeployAssert03A82C16.assets.json +1 -1
- package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/integ.json +1 -1
- package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/manifest.json +10 -2
- package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/tree.json +47 -43
- package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/asset.4dc48ffba382f93077a1e6824599bbd4ceb6f91eb3d9442eca3b85bdb1a20b1e/framework.js +3 -0
- package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/cdk.out +1 -1
- package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/cfts3-cmk-provided-as-bucket-prop.assets.json +6 -6
- package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/cfts3-cmk-provided-as-bucket-prop.template.json +6 -2
- package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/cfts3cmkprovidedasbucketpropIntegDefaultTestDeployAssert38E63D55.assets.json +1 -1
- package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/integ.json +1 -1
- package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/manifest.json +10 -2
- package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/tree.json +73 -69
- package/test/integ.cfts3-custom-headers.js.snapshot/cdk.out +1 -1
- package/test/integ.cfts3-custom-headers.js.snapshot/cfts3-custom-headers.assets.json +3 -3
- package/test/integ.cfts3-custom-headers.js.snapshot/cfts3-custom-headers.template.json +5 -1
- package/test/integ.cfts3-custom-headers.js.snapshot/cfts3customheadersIntegDefaultTestDeployAssert6EEC9973.assets.json +1 -1
- package/test/integ.cfts3-custom-headers.js.snapshot/integ.json +1 -1
- package/test/integ.cfts3-custom-headers.js.snapshot/manifest.json +10 -2
- package/test/integ.cfts3-custom-headers.js.snapshot/tree.json +51 -47
- package/test/integ.cfts3-custom-originPath.js.snapshot/cdk.out +1 -1
- package/test/integ.cfts3-custom-originPath.js.snapshot/cfts3-custom-originPath.assets.json +3 -3
- package/test/integ.cfts3-custom-originPath.js.snapshot/cfts3-custom-originPath.template.json +5 -1
- package/test/integ.cfts3-custom-originPath.js.snapshot/cfts3customoriginPathIntegDefaultTestDeployAssert61F499B2.assets.json +1 -1
- package/test/integ.cfts3-custom-originPath.js.snapshot/integ.json +1 -1
- package/test/integ.cfts3-custom-originPath.js.snapshot/manifest.json +10 -2
- package/test/integ.cfts3-custom-originPath.js.snapshot/tree.json +49 -45
- package/test/integ.cfts3-customLoggingBuckets.js.snapshot/cdk.out +1 -1
- package/test/integ.cfts3-customLoggingBuckets.js.snapshot/cfts3-customLoggingBuckets.assets.json +3 -3
- package/test/integ.cfts3-customLoggingBuckets.js.snapshot/cfts3-customLoggingBuckets.template.json +5 -1
- package/test/integ.cfts3-customLoggingBuckets.js.snapshot/cfts3customLoggingBucketsIntegDefaultTestDeployAssert4D171F9F.assets.json +1 -1
- package/test/integ.cfts3-customLoggingBuckets.js.snapshot/integ.json +1 -1
- package/test/integ.cfts3-customLoggingBuckets.js.snapshot/manifest.json +10 -2
- package/test/integ.cfts3-customLoggingBuckets.js.snapshot/tree.json +49 -45
- package/test/integ.cfts3-existing-bucket.js.snapshot/cdk.out +1 -1
- package/test/integ.cfts3-existing-bucket.js.snapshot/cfts3-existing-bucket.assets.json +3 -3
- package/test/integ.cfts3-existing-bucket.js.snapshot/cfts3-existing-bucket.template.json +5 -1
- package/test/integ.cfts3-existing-bucket.js.snapshot/cfts3existingbucketIntegDefaultTestDeployAssertA6D4EB49.assets.json +1 -1
- package/test/integ.cfts3-existing-bucket.js.snapshot/integ.json +1 -1
- package/test/integ.cfts3-existing-bucket.js.snapshot/manifest.json +10 -2
- package/test/integ.cfts3-existing-bucket.js.snapshot/tree.json +53 -49
- package/test/integ.cfts3-no-arguments.js.snapshot/cdk.out +1 -1
- package/test/integ.cfts3-no-arguments.js.snapshot/cfts3-no-arguments.assets.json +3 -3
- package/test/integ.cfts3-no-arguments.js.snapshot/cfts3-no-arguments.template.json +5 -1
- package/test/integ.cfts3-no-arguments.js.snapshot/cfts3noargumentsIntegDefaultTestDeployAssertBA5AFA25.assets.json +1 -1
- package/test/integ.cfts3-no-arguments.js.snapshot/integ.json +1 -1
- package/test/integ.cfts3-no-arguments.js.snapshot/manifest.json +10 -2
- package/test/integ.cfts3-no-arguments.js.snapshot/tree.json +49 -45
- package/test/integ.cfts3-no-cloudfront-s3-access-logs.js.snapshot/cdk.out +1 -1
- package/test/integ.cfts3-no-cloudfront-s3-access-logs.js.snapshot/cfts3-no-cloudfront-s3-access-logs.assets.json +3 -3
- package/test/integ.cfts3-no-cloudfront-s3-access-logs.js.snapshot/cfts3-no-cloudfront-s3-access-logs.template.json +5 -1
- package/test/integ.cfts3-no-cloudfront-s3-access-logs.js.snapshot/cfts3nocloudfronts3accesslogsIntegDefaultTestDeployAssertAD28C87A.assets.json +1 -1
- package/test/integ.cfts3-no-cloudfront-s3-access-logs.js.snapshot/integ.json +1 -1
- package/test/integ.cfts3-no-cloudfront-s3-access-logs.js.snapshot/manifest.json +10 -2
- package/test/integ.cfts3-no-cloudfront-s3-access-logs.js.snapshot/tree.json +37 -33
- package/test/integ.cfts3-no-logging.js.snapshot/cdk.out +1 -1
- package/test/integ.cfts3-no-logging.js.snapshot/cfts3-no-logging.assets.json +3 -3
- package/test/integ.cfts3-no-logging.js.snapshot/cfts3-no-logging.template.json +5 -1
- package/test/integ.cfts3-no-logging.js.snapshot/cfts3nologgingIntegDefaultTestDeployAssert18393DDB.assets.json +1 -1
- package/test/integ.cfts3-no-logging.js.snapshot/integ.json +1 -1
- package/test/integ.cfts3-no-logging.js.snapshot/manifest.json +10 -2
- package/test/integ.cfts3-no-logging.js.snapshot/tree.json +31 -27
- package/test/integ.cfts3-no-security-headers.js.snapshot/cdk.out +1 -1
- package/test/integ.cfts3-no-security-headers.js.snapshot/cfts3-no-security-headers.assets.json +3 -3
- package/test/integ.cfts3-no-security-headers.js.snapshot/cfts3-no-security-headers.template.json +5 -1
- package/test/integ.cfts3-no-security-headers.js.snapshot/cfts3nosecurityheadersIntegDefaultTestDeployAssert38FE05BE.assets.json +1 -1
- package/test/integ.cfts3-no-security-headers.js.snapshot/integ.json +1 -1
- package/test/integ.cfts3-no-security-headers.js.snapshot/manifest.json +10 -2
- package/test/integ.cfts3-no-security-headers.js.snapshot/tree.json +47 -43
- package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/asset.d9861ea7a45affd23e47a614acb2fddc6e45c20a891284c958187dafbf9ee36b/framework.js +0 -3
- package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/asset.d9861ea7a45affd23e47a614acb2fddc6e45c20a891284c958187dafbf9ee36b/framework.js +0 -3
- /package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/{asset.d9861ea7a45affd23e47a614acb2fddc6e45c20a891284c958187dafbf9ee36b → asset.4dc48ffba382f93077a1e6824599bbd4ceb6f91eb3d9442eca3b85bdb1a20b1e}/cfn-response.js +0 -0
- /package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/{asset.d9861ea7a45affd23e47a614acb2fddc6e45c20a891284c958187dafbf9ee36b → asset.4dc48ffba382f93077a1e6824599bbd4ceb6f91eb3d9442eca3b85bdb1a20b1e}/consts.js +0 -0
- /package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/{asset.d9861ea7a45affd23e47a614acb2fddc6e45c20a891284c958187dafbf9ee36b → asset.4dc48ffba382f93077a1e6824599bbd4ceb6f91eb3d9442eca3b85bdb1a20b1e}/outbound.js +0 -0
- /package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/{asset.d9861ea7a45affd23e47a614acb2fddc6e45c20a891284c958187dafbf9ee36b → asset.4dc48ffba382f93077a1e6824599bbd4ceb6f91eb3d9442eca3b85bdb1a20b1e}/util.js +0 -0
- /package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/{asset.d9861ea7a45affd23e47a614acb2fddc6e45c20a891284c958187dafbf9ee36b → asset.4dc48ffba382f93077a1e6824599bbd4ceb6f91eb3d9442eca3b85bdb1a20b1e}/cfn-response.js +0 -0
- /package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/{asset.d9861ea7a45affd23e47a614acb2fddc6e45c20a891284c958187dafbf9ee36b → asset.4dc48ffba382f93077a1e6824599bbd4ceb6f91eb3d9442eca3b85bdb1a20b1e}/consts.js +0 -0
- /package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/{asset.d9861ea7a45affd23e47a614acb2fddc6e45c20a891284c958187dafbf9ee36b → asset.4dc48ffba382f93077a1e6824599bbd4ceb6f91eb3d9442eca3b85bdb1a20b1e}/outbound.js +0 -0
- /package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/{asset.d9861ea7a45affd23e47a614acb2fddc6e45c20a891284c958187dafbf9ee36b → asset.4dc48ffba382f93077a1e6824599bbd4ceb6f91eb3d9442eca3b85bdb1a20b1e}/util.js +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "
|
|
2
|
+
"version": "38.0.1",
|
|
3
3
|
"artifacts": {
|
|
4
4
|
"cfts3nosecurityheadersIntegDefaultTestDeployAssert38FE05BE.assets": {
|
|
5
5
|
"type": "cdk:asset-manifest",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"templateFile": "cfts3nosecurityheadersIntegDefaultTestDeployAssert38FE05BE.template.json",
|
|
17
17
|
"terminationProtection": false,
|
|
18
18
|
"validateOnSynth": false,
|
|
19
|
+
"notificationArns": [],
|
|
19
20
|
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}",
|
|
20
21
|
"cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}",
|
|
21
22
|
"stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22.json",
|
|
@@ -64,9 +65,10 @@
|
|
|
64
65
|
"templateFile": "cfts3-no-security-headers.template.json",
|
|
65
66
|
"terminationProtection": false,
|
|
66
67
|
"validateOnSynth": false,
|
|
68
|
+
"notificationArns": [],
|
|
67
69
|
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}",
|
|
68
70
|
"cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}",
|
|
69
|
-
"stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/
|
|
71
|
+
"stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f81214d0e4f1c5e0426e9d602d3cb8371c75674b6f876e3ec444adeedcba1e5a.json",
|
|
70
72
|
"requiresBootstrapStackVersion": 6,
|
|
71
73
|
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
|
|
72
74
|
"additionalDependencies": [
|
|
@@ -172,6 +174,12 @@
|
|
|
172
174
|
"data": "LatestNodeRuntimeMap"
|
|
173
175
|
}
|
|
174
176
|
],
|
|
177
|
+
"/cfts3-no-security-headers/Custom::S3AutoDeleteObjectsCustomResourceProvider": [
|
|
178
|
+
{
|
|
179
|
+
"type": "aws:cdk:is-custom-resource-handler-customResourceProvider",
|
|
180
|
+
"data": true
|
|
181
|
+
}
|
|
182
|
+
],
|
|
175
183
|
"/cfts3-no-security-headers/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role": [
|
|
176
184
|
{
|
|
177
185
|
"type": "aws:cdk:logicalId",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"constructInfo": {
|
|
52
52
|
"fqn": "aws-cdk-lib.aws_s3.CfnBucket",
|
|
53
|
-
"version": "2.
|
|
53
|
+
"version": "2.160.0"
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"Policy": {
|
|
@@ -184,13 +184,13 @@
|
|
|
184
184
|
},
|
|
185
185
|
"constructInfo": {
|
|
186
186
|
"fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
|
|
187
|
-
"version": "2.
|
|
187
|
+
"version": "2.160.0"
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
},
|
|
191
191
|
"constructInfo": {
|
|
192
192
|
"fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
|
|
193
|
-
"version": "2.
|
|
193
|
+
"version": "2.160.0"
|
|
194
194
|
}
|
|
195
195
|
},
|
|
196
196
|
"AutoDeleteObjectsCustomResource": {
|
|
@@ -202,19 +202,19 @@
|
|
|
202
202
|
"path": "cfts3-no-security-headers/test-cloudfront-s3-no-security-headers/S3LoggingBucket/AutoDeleteObjectsCustomResource/Default",
|
|
203
203
|
"constructInfo": {
|
|
204
204
|
"fqn": "aws-cdk-lib.CfnResource",
|
|
205
|
-
"version": "2.
|
|
205
|
+
"version": "2.160.0"
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
},
|
|
209
209
|
"constructInfo": {
|
|
210
210
|
"fqn": "aws-cdk-lib.CustomResource",
|
|
211
|
-
"version": "2.
|
|
211
|
+
"version": "2.160.0"
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
},
|
|
215
215
|
"constructInfo": {
|
|
216
216
|
"fqn": "aws-cdk-lib.aws_s3.Bucket",
|
|
217
|
-
"version": "2.
|
|
217
|
+
"version": "2.160.0"
|
|
218
218
|
}
|
|
219
219
|
},
|
|
220
220
|
"S3Bucket": {
|
|
@@ -273,7 +273,7 @@
|
|
|
273
273
|
},
|
|
274
274
|
"constructInfo": {
|
|
275
275
|
"fqn": "aws-cdk-lib.aws_s3.CfnBucket",
|
|
276
|
-
"version": "2.
|
|
276
|
+
"version": "2.160.0"
|
|
277
277
|
}
|
|
278
278
|
},
|
|
279
279
|
"Policy": {
|
|
@@ -372,7 +372,11 @@
|
|
|
372
372
|
"Fn::Join": [
|
|
373
373
|
"",
|
|
374
374
|
[
|
|
375
|
-
"arn:
|
|
375
|
+
"arn:",
|
|
376
|
+
{
|
|
377
|
+
"Ref": "AWS::Partition"
|
|
378
|
+
},
|
|
379
|
+
":cloudfront::",
|
|
376
380
|
{
|
|
377
381
|
"Ref": "AWS::AccountId"
|
|
378
382
|
},
|
|
@@ -411,13 +415,13 @@
|
|
|
411
415
|
},
|
|
412
416
|
"constructInfo": {
|
|
413
417
|
"fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
|
|
414
|
-
"version": "2.
|
|
418
|
+
"version": "2.160.0"
|
|
415
419
|
}
|
|
416
420
|
}
|
|
417
421
|
},
|
|
418
422
|
"constructInfo": {
|
|
419
423
|
"fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
|
|
420
|
-
"version": "2.
|
|
424
|
+
"version": "2.160.0"
|
|
421
425
|
}
|
|
422
426
|
},
|
|
423
427
|
"AutoDeleteObjectsCustomResource": {
|
|
@@ -429,19 +433,19 @@
|
|
|
429
433
|
"path": "cfts3-no-security-headers/test-cloudfront-s3-no-security-headers/S3Bucket/AutoDeleteObjectsCustomResource/Default",
|
|
430
434
|
"constructInfo": {
|
|
431
435
|
"fqn": "aws-cdk-lib.CfnResource",
|
|
432
|
-
"version": "2.
|
|
436
|
+
"version": "2.160.0"
|
|
433
437
|
}
|
|
434
438
|
}
|
|
435
439
|
},
|
|
436
440
|
"constructInfo": {
|
|
437
441
|
"fqn": "aws-cdk-lib.CustomResource",
|
|
438
|
-
"version": "2.
|
|
442
|
+
"version": "2.160.0"
|
|
439
443
|
}
|
|
440
444
|
}
|
|
441
445
|
},
|
|
442
446
|
"constructInfo": {
|
|
443
447
|
"fqn": "aws-cdk-lib.aws_s3.Bucket",
|
|
444
|
-
"version": "2.
|
|
448
|
+
"version": "2.160.0"
|
|
445
449
|
}
|
|
446
450
|
},
|
|
447
451
|
"CloudfrontLoggingBucketAccessLog": {
|
|
@@ -482,7 +486,7 @@
|
|
|
482
486
|
},
|
|
483
487
|
"constructInfo": {
|
|
484
488
|
"fqn": "aws-cdk-lib.aws_s3.CfnBucket",
|
|
485
|
-
"version": "2.
|
|
489
|
+
"version": "2.160.0"
|
|
486
490
|
}
|
|
487
491
|
},
|
|
488
492
|
"Policy": {
|
|
@@ -616,13 +620,13 @@
|
|
|
616
620
|
},
|
|
617
621
|
"constructInfo": {
|
|
618
622
|
"fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
|
|
619
|
-
"version": "2.
|
|
623
|
+
"version": "2.160.0"
|
|
620
624
|
}
|
|
621
625
|
}
|
|
622
626
|
},
|
|
623
627
|
"constructInfo": {
|
|
624
628
|
"fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
|
|
625
|
-
"version": "2.
|
|
629
|
+
"version": "2.160.0"
|
|
626
630
|
}
|
|
627
631
|
},
|
|
628
632
|
"AutoDeleteObjectsCustomResource": {
|
|
@@ -634,19 +638,19 @@
|
|
|
634
638
|
"path": "cfts3-no-security-headers/test-cloudfront-s3-no-security-headers/CloudfrontLoggingBucketAccessLog/AutoDeleteObjectsCustomResource/Default",
|
|
635
639
|
"constructInfo": {
|
|
636
640
|
"fqn": "aws-cdk-lib.CfnResource",
|
|
637
|
-
"version": "2.
|
|
641
|
+
"version": "2.160.0"
|
|
638
642
|
}
|
|
639
643
|
}
|
|
640
644
|
},
|
|
641
645
|
"constructInfo": {
|
|
642
646
|
"fqn": "aws-cdk-lib.CustomResource",
|
|
643
|
-
"version": "2.
|
|
647
|
+
"version": "2.160.0"
|
|
644
648
|
}
|
|
645
649
|
}
|
|
646
650
|
},
|
|
647
651
|
"constructInfo": {
|
|
648
652
|
"fqn": "aws-cdk-lib.aws_s3.Bucket",
|
|
649
|
-
"version": "2.
|
|
653
|
+
"version": "2.160.0"
|
|
650
654
|
}
|
|
651
655
|
},
|
|
652
656
|
"CloudfrontLoggingBucket": {
|
|
@@ -699,7 +703,7 @@
|
|
|
699
703
|
},
|
|
700
704
|
"constructInfo": {
|
|
701
705
|
"fqn": "aws-cdk-lib.aws_s3.CfnBucket",
|
|
702
|
-
"version": "2.
|
|
706
|
+
"version": "2.160.0"
|
|
703
707
|
}
|
|
704
708
|
},
|
|
705
709
|
"Policy": {
|
|
@@ -797,13 +801,13 @@
|
|
|
797
801
|
},
|
|
798
802
|
"constructInfo": {
|
|
799
803
|
"fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
|
|
800
|
-
"version": "2.
|
|
804
|
+
"version": "2.160.0"
|
|
801
805
|
}
|
|
802
806
|
}
|
|
803
807
|
},
|
|
804
808
|
"constructInfo": {
|
|
805
809
|
"fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
|
|
806
|
-
"version": "2.
|
|
810
|
+
"version": "2.160.0"
|
|
807
811
|
}
|
|
808
812
|
},
|
|
809
813
|
"AutoDeleteObjectsCustomResource": {
|
|
@@ -815,19 +819,19 @@
|
|
|
815
819
|
"path": "cfts3-no-security-headers/test-cloudfront-s3-no-security-headers/CloudfrontLoggingBucket/AutoDeleteObjectsCustomResource/Default",
|
|
816
820
|
"constructInfo": {
|
|
817
821
|
"fqn": "aws-cdk-lib.CfnResource",
|
|
818
|
-
"version": "2.
|
|
822
|
+
"version": "2.160.0"
|
|
819
823
|
}
|
|
820
824
|
}
|
|
821
825
|
},
|
|
822
826
|
"constructInfo": {
|
|
823
827
|
"fqn": "aws-cdk-lib.CustomResource",
|
|
824
|
-
"version": "2.
|
|
828
|
+
"version": "2.160.0"
|
|
825
829
|
}
|
|
826
830
|
}
|
|
827
831
|
},
|
|
828
832
|
"constructInfo": {
|
|
829
833
|
"fqn": "aws-cdk-lib.aws_s3.Bucket",
|
|
830
|
-
"version": "2.
|
|
834
|
+
"version": "2.160.0"
|
|
831
835
|
}
|
|
832
836
|
},
|
|
833
837
|
"CloudFrontOac": {
|
|
@@ -867,7 +871,7 @@
|
|
|
867
871
|
},
|
|
868
872
|
"constructInfo": {
|
|
869
873
|
"fqn": "aws-cdk-lib.aws_cloudfront.CfnOriginAccessControl",
|
|
870
|
-
"version": "2.
|
|
874
|
+
"version": "2.160.0"
|
|
871
875
|
}
|
|
872
876
|
},
|
|
873
877
|
"CloudFrontDistribution": {
|
|
@@ -927,19 +931,19 @@
|
|
|
927
931
|
},
|
|
928
932
|
"constructInfo": {
|
|
929
933
|
"fqn": "aws-cdk-lib.aws_cloudfront.CfnDistribution",
|
|
930
|
-
"version": "2.
|
|
934
|
+
"version": "2.160.0"
|
|
931
935
|
}
|
|
932
936
|
}
|
|
933
937
|
},
|
|
934
938
|
"constructInfo": {
|
|
935
939
|
"fqn": "aws-cdk-lib.aws_cloudfront.Distribution",
|
|
936
|
-
"version": "2.
|
|
940
|
+
"version": "2.160.0"
|
|
937
941
|
}
|
|
938
942
|
}
|
|
939
943
|
},
|
|
940
944
|
"constructInfo": {
|
|
941
945
|
"fqn": "@aws-solutions-constructs/aws-cloudfront-s3.CloudFrontToS3",
|
|
942
|
-
"version": "2.
|
|
946
|
+
"version": "2.71.0"
|
|
943
947
|
}
|
|
944
948
|
},
|
|
945
949
|
"LatestNodeRuntimeMap": {
|
|
@@ -947,7 +951,7 @@
|
|
|
947
951
|
"path": "cfts3-no-security-headers/LatestNodeRuntimeMap",
|
|
948
952
|
"constructInfo": {
|
|
949
953
|
"fqn": "aws-cdk-lib.CfnMapping",
|
|
950
|
-
"version": "2.
|
|
954
|
+
"version": "2.160.0"
|
|
951
955
|
}
|
|
952
956
|
},
|
|
953
957
|
"Custom::S3AutoDeleteObjectsCustomResourceProvider": {
|
|
@@ -959,7 +963,7 @@
|
|
|
959
963
|
"path": "cfts3-no-security-headers/Custom::S3AutoDeleteObjectsCustomResourceProvider/Staging",
|
|
960
964
|
"constructInfo": {
|
|
961
965
|
"fqn": "aws-cdk-lib.AssetStaging",
|
|
962
|
-
"version": "2.
|
|
966
|
+
"version": "2.160.0"
|
|
963
967
|
}
|
|
964
968
|
},
|
|
965
969
|
"Role": {
|
|
@@ -967,7 +971,7 @@
|
|
|
967
971
|
"path": "cfts3-no-security-headers/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role",
|
|
968
972
|
"constructInfo": {
|
|
969
973
|
"fqn": "aws-cdk-lib.CfnResource",
|
|
970
|
-
"version": "2.
|
|
974
|
+
"version": "2.160.0"
|
|
971
975
|
}
|
|
972
976
|
},
|
|
973
977
|
"Handler": {
|
|
@@ -975,13 +979,13 @@
|
|
|
975
979
|
"path": "cfts3-no-security-headers/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler",
|
|
976
980
|
"constructInfo": {
|
|
977
981
|
"fqn": "aws-cdk-lib.CfnResource",
|
|
978
|
-
"version": "2.
|
|
982
|
+
"version": "2.160.0"
|
|
979
983
|
}
|
|
980
984
|
}
|
|
981
985
|
},
|
|
982
986
|
"constructInfo": {
|
|
983
987
|
"fqn": "aws-cdk-lib.CustomResourceProviderBase",
|
|
984
|
-
"version": "2.
|
|
988
|
+
"version": "2.160.0"
|
|
985
989
|
}
|
|
986
990
|
},
|
|
987
991
|
"Integ": {
|
|
@@ -1009,7 +1013,7 @@
|
|
|
1009
1013
|
"path": "cfts3-no-security-headers/Integ/DefaultTest/DeployAssert/BootstrapVersion",
|
|
1010
1014
|
"constructInfo": {
|
|
1011
1015
|
"fqn": "aws-cdk-lib.CfnParameter",
|
|
1012
|
-
"version": "2.
|
|
1016
|
+
"version": "2.160.0"
|
|
1013
1017
|
}
|
|
1014
1018
|
},
|
|
1015
1019
|
"CheckBootstrapVersion": {
|
|
@@ -1017,25 +1021,25 @@
|
|
|
1017
1021
|
"path": "cfts3-no-security-headers/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion",
|
|
1018
1022
|
"constructInfo": {
|
|
1019
1023
|
"fqn": "aws-cdk-lib.CfnRule",
|
|
1020
|
-
"version": "2.
|
|
1024
|
+
"version": "2.160.0"
|
|
1021
1025
|
}
|
|
1022
1026
|
}
|
|
1023
1027
|
},
|
|
1024
1028
|
"constructInfo": {
|
|
1025
1029
|
"fqn": "aws-cdk-lib.Stack",
|
|
1026
|
-
"version": "2.
|
|
1030
|
+
"version": "2.160.0"
|
|
1027
1031
|
}
|
|
1028
1032
|
}
|
|
1029
1033
|
},
|
|
1030
1034
|
"constructInfo": {
|
|
1031
1035
|
"fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase",
|
|
1032
|
-
"version": "2.
|
|
1036
|
+
"version": "2.160.0-alpha.0"
|
|
1033
1037
|
}
|
|
1034
1038
|
}
|
|
1035
1039
|
},
|
|
1036
1040
|
"constructInfo": {
|
|
1037
1041
|
"fqn": "@aws-cdk/integ-tests-alpha.IntegTest",
|
|
1038
|
-
"version": "2.
|
|
1042
|
+
"version": "2.160.0-alpha.0"
|
|
1039
1043
|
}
|
|
1040
1044
|
},
|
|
1041
1045
|
"BootstrapVersion": {
|
|
@@ -1043,7 +1047,7 @@
|
|
|
1043
1047
|
"path": "cfts3-no-security-headers/BootstrapVersion",
|
|
1044
1048
|
"constructInfo": {
|
|
1045
1049
|
"fqn": "aws-cdk-lib.CfnParameter",
|
|
1046
|
-
"version": "2.
|
|
1050
|
+
"version": "2.160.0"
|
|
1047
1051
|
}
|
|
1048
1052
|
},
|
|
1049
1053
|
"CheckBootstrapVersion": {
|
|
@@ -1051,13 +1055,13 @@
|
|
|
1051
1055
|
"path": "cfts3-no-security-headers/CheckBootstrapVersion",
|
|
1052
1056
|
"constructInfo": {
|
|
1053
1057
|
"fqn": "aws-cdk-lib.CfnRule",
|
|
1054
|
-
"version": "2.
|
|
1058
|
+
"version": "2.160.0"
|
|
1055
1059
|
}
|
|
1056
1060
|
}
|
|
1057
1061
|
},
|
|
1058
1062
|
"constructInfo": {
|
|
1059
1063
|
"fqn": "aws-cdk-lib.Stack",
|
|
1060
|
-
"version": "2.
|
|
1064
|
+
"version": "2.160.0"
|
|
1061
1065
|
}
|
|
1062
1066
|
},
|
|
1063
1067
|
"Tree": {
|
|
@@ -1071,7 +1075,7 @@
|
|
|
1071
1075
|
},
|
|
1072
1076
|
"constructInfo": {
|
|
1073
1077
|
"fqn": "aws-cdk-lib.App",
|
|
1074
|
-
"version": "2.
|
|
1078
|
+
"version": "2.160.0"
|
|
1075
1079
|
}
|
|
1076
1080
|
}
|
|
1077
1081
|
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";const cfnResponse=require("./cfn-response"),consts=require("./consts"),outbound_1=require("./outbound"),util_1=require("./util");async function onEvent(cfnRequest){const sanitizedRequest={...cfnRequest,ResponseURL:"..."};(0,util_1.log)("onEventHandler",sanitizedRequest),cfnRequest.ResourceProperties=cfnRequest.ResourceProperties||{};const onEventResult=await invokeUserFunction(consts.USER_ON_EVENT_FUNCTION_ARN_ENV,sanitizedRequest,cfnRequest.ResponseURL);onEventResult?.NoEcho?(0,util_1.log)("redacted onEvent returned:",cfnResponse.redactDataFromPayload(onEventResult)):(0,util_1.log)("onEvent returned:",onEventResult);const resourceEvent=createResponseEvent(cfnRequest,onEventResult);if(onEventResult?.NoEcho?(0,util_1.log)("readacted event:",cfnResponse.redactDataFromPayload(resourceEvent)):(0,util_1.log)("event:",resourceEvent),!process.env[consts.USER_IS_COMPLETE_FUNCTION_ARN_ENV])return cfnResponse.submitResponse("SUCCESS",resourceEvent,{noEcho:resourceEvent.NoEcho});const waiter={stateMachineArn:(0,util_1.getEnv)(consts.WAITER_STATE_MACHINE_ARN_ENV),name:resourceEvent.RequestId,input:JSON.stringify(resourceEvent)};(0,util_1.log)("starting waiter",{stateMachineArn:(0,util_1.getEnv)(consts.WAITER_STATE_MACHINE_ARN_ENV),name:resourceEvent.RequestId}),await(0,outbound_1.startExecution)(waiter)}async function isComplete(event){const sanitizedRequest={...event,ResponseURL:"..."};event?.NoEcho?(0,util_1.log)("redacted isComplete request",cfnResponse.redactDataFromPayload(sanitizedRequest)):(0,util_1.log)("isComplete",sanitizedRequest);const isCompleteResult=await invokeUserFunction(consts.USER_IS_COMPLETE_FUNCTION_ARN_ENV,sanitizedRequest,event.ResponseURL);if(event?.NoEcho?(0,util_1.log)("redacted user isComplete returned:",cfnResponse.redactDataFromPayload(isCompleteResult)):(0,util_1.log)("user isComplete returned:",isCompleteResult),!isCompleteResult.IsComplete)throw isCompleteResult.Data&&Object.keys(isCompleteResult.Data).length>0?new Error('"Data" is not allowed if "IsComplete" is "False"'):new cfnResponse.Retry(JSON.stringify(event));const response={...event,...isCompleteResult,Data:{...event.Data,...isCompleteResult.Data}};await cfnResponse.submitResponse("SUCCESS",response,{noEcho:event.NoEcho})}async function onTimeout(timeoutEvent){(0,util_1.log)("timeoutHandler",timeoutEvent);const isCompleteRequest=JSON.parse(JSON.parse(timeoutEvent.Cause).errorMessage);await cfnResponse.submitResponse("FAILED",isCompleteRequest,{reason:"Operation timed out"})}async function invokeUserFunction(functionArnEnv,sanitizedPayload,responseUrl){const functionArn=(0,util_1.getEnv)(functionArnEnv);(0,util_1.log)(`executing user function ${functionArn} with payload`,sanitizedPayload);const resp=await(0,outbound_1.invokeFunction)({FunctionName:functionArn,Payload:JSON.stringify({...sanitizedPayload,ResponseURL:responseUrl})});(0,util_1.log)("user function response:",resp,typeof resp);const jsonPayload=(0,util_1.parseJsonPayload)(resp.Payload);if(resp.FunctionError){(0,util_1.log)("user function threw an error:",resp.FunctionError);const errorMessage=jsonPayload.errorMessage||"error",arn=functionArn.split(":"),functionName=arn[arn.length-1],message=[errorMessage,"",`Logs: /aws/lambda/${functionName}`,""].join(`
|
|
2
|
-
`),e=new Error(message);throw jsonPayload.trace&&(e.stack=[message,...jsonPayload.trace.slice(1)].join(`
|
|
3
|
-
`)),e}return jsonPayload}function createResponseEvent(cfnRequest,onEventResult){onEventResult=onEventResult||{};const physicalResourceId=onEventResult.PhysicalResourceId||defaultPhysicalResourceId(cfnRequest);if(cfnRequest.RequestType==="Delete"&&physicalResourceId!==cfnRequest.PhysicalResourceId)throw new Error(`DELETE: cannot change the physical resource ID from "${cfnRequest.PhysicalResourceId}" to "${onEventResult.PhysicalResourceId}" during deletion`);return cfnRequest.RequestType==="Update"&&physicalResourceId!==cfnRequest.PhysicalResourceId&&(0,util_1.log)(`UPDATE: changing physical resource ID from "${cfnRequest.PhysicalResourceId}" to "${onEventResult.PhysicalResourceId}"`),{...cfnRequest,...onEventResult,PhysicalResourceId:physicalResourceId}}function defaultPhysicalResourceId(req){switch(req.RequestType){case"Create":return req.RequestId;case"Update":case"Delete":return req.PhysicalResourceId;default:throw new Error(`Invalid "RequestType" in request "${JSON.stringify(req)}"`)}}module.exports={[consts.FRAMEWORK_ON_EVENT_HANDLER_NAME]:cfnResponse.safeHandler(onEvent),[consts.FRAMEWORK_IS_COMPLETE_HANDLER_NAME]:cfnResponse.safeHandler(isComplete),[consts.FRAMEWORK_ON_TIMEOUT_HANDLER_NAME]:onTimeout};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";const cfnResponse=require("./cfn-response"),consts=require("./consts"),outbound_1=require("./outbound"),util_1=require("./util");async function onEvent(cfnRequest){const sanitizedRequest={...cfnRequest,ResponseURL:"..."};(0,util_1.log)("onEventHandler",sanitizedRequest),cfnRequest.ResourceProperties=cfnRequest.ResourceProperties||{};const onEventResult=await invokeUserFunction(consts.USER_ON_EVENT_FUNCTION_ARN_ENV,sanitizedRequest,cfnRequest.ResponseURL);onEventResult?.NoEcho?(0,util_1.log)("redacted onEvent returned:",cfnResponse.redactDataFromPayload(onEventResult)):(0,util_1.log)("onEvent returned:",onEventResult);const resourceEvent=createResponseEvent(cfnRequest,onEventResult);if(onEventResult?.NoEcho?(0,util_1.log)("readacted event:",cfnResponse.redactDataFromPayload(resourceEvent)):(0,util_1.log)("event:",resourceEvent),!process.env[consts.USER_IS_COMPLETE_FUNCTION_ARN_ENV])return cfnResponse.submitResponse("SUCCESS",resourceEvent,{noEcho:resourceEvent.NoEcho});const waiter={stateMachineArn:(0,util_1.getEnv)(consts.WAITER_STATE_MACHINE_ARN_ENV),name:resourceEvent.RequestId,input:JSON.stringify(resourceEvent)};(0,util_1.log)("starting waiter",{stateMachineArn:(0,util_1.getEnv)(consts.WAITER_STATE_MACHINE_ARN_ENV),name:resourceEvent.RequestId}),await(0,outbound_1.startExecution)(waiter)}async function isComplete(event){const sanitizedRequest={...event,ResponseURL:"..."};event?.NoEcho?(0,util_1.log)("redacted isComplete request",cfnResponse.redactDataFromPayload(sanitizedRequest)):(0,util_1.log)("isComplete",sanitizedRequest);const isCompleteResult=await invokeUserFunction(consts.USER_IS_COMPLETE_FUNCTION_ARN_ENV,sanitizedRequest,event.ResponseURL);if(event?.NoEcho?(0,util_1.log)("redacted user isComplete returned:",cfnResponse.redactDataFromPayload(isCompleteResult)):(0,util_1.log)("user isComplete returned:",isCompleteResult),!isCompleteResult.IsComplete)throw isCompleteResult.Data&&Object.keys(isCompleteResult.Data).length>0?new Error('"Data" is not allowed if "IsComplete" is "False"'):new cfnResponse.Retry(JSON.stringify(event));const response={...event,...isCompleteResult,Data:{...event.Data,...isCompleteResult.Data}};await cfnResponse.submitResponse("SUCCESS",response,{noEcho:event.NoEcho})}async function onTimeout(timeoutEvent){(0,util_1.log)("timeoutHandler",timeoutEvent);const isCompleteRequest=JSON.parse(JSON.parse(timeoutEvent.Cause).errorMessage);await cfnResponse.submitResponse("FAILED",isCompleteRequest,{reason:"Operation timed out"})}async function invokeUserFunction(functionArnEnv,sanitizedPayload,responseUrl){const functionArn=(0,util_1.getEnv)(functionArnEnv);(0,util_1.log)(`executing user function ${functionArn} with payload`,sanitizedPayload);const resp=await(0,outbound_1.invokeFunction)({FunctionName:functionArn,Payload:JSON.stringify({...sanitizedPayload,ResponseURL:responseUrl})});(0,util_1.log)("user function response:",resp,typeof resp);const jsonPayload=(0,util_1.parseJsonPayload)(resp.Payload);if(resp.FunctionError){(0,util_1.log)("user function threw an error:",resp.FunctionError);const errorMessage=jsonPayload.errorMessage||"error",arn=functionArn.split(":"),functionName=arn[arn.length-1],message=[errorMessage,"",`Logs: /aws/lambda/${functionName}`,""].join(`
|
|
2
|
-
`),e=new Error(message);throw jsonPayload.trace&&(e.stack=[message,...jsonPayload.trace.slice(1)].join(`
|
|
3
|
-
`)),e}return jsonPayload}function createResponseEvent(cfnRequest,onEventResult){onEventResult=onEventResult||{};const physicalResourceId=onEventResult.PhysicalResourceId||defaultPhysicalResourceId(cfnRequest);if(cfnRequest.RequestType==="Delete"&&physicalResourceId!==cfnRequest.PhysicalResourceId)throw new Error(`DELETE: cannot change the physical resource ID from "${cfnRequest.PhysicalResourceId}" to "${onEventResult.PhysicalResourceId}" during deletion`);return cfnRequest.RequestType==="Update"&&physicalResourceId!==cfnRequest.PhysicalResourceId&&(0,util_1.log)(`UPDATE: changing physical resource ID from "${cfnRequest.PhysicalResourceId}" to "${onEventResult.PhysicalResourceId}"`),{...cfnRequest,...onEventResult,PhysicalResourceId:physicalResourceId}}function defaultPhysicalResourceId(req){switch(req.RequestType){case"Create":return req.RequestId;case"Update":case"Delete":return req.PhysicalResourceId;default:throw new Error(`Invalid "RequestType" in request "${JSON.stringify(req)}"`)}}module.exports={[consts.FRAMEWORK_ON_EVENT_HANDLER_NAME]:cfnResponse.safeHandler(onEvent),[consts.FRAMEWORK_IS_COMPLETE_HANDLER_NAME]:cfnResponse.safeHandler(isComplete),[consts.FRAMEWORK_ON_TIMEOUT_HANDLER_NAME]:onTimeout};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|