@aws/cloudformation-validate 1.8.0-beta → 1.10.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/README.md +252 -87
- package/THIRD-PARTY-LICENSES.txt +158 -79
- package/bindings_wasm.d.ts +114 -111
- package/bindings_wasm.js +121 -17
- package/bindings_wasm_bg.wasm +0 -0
- package/bindings_wasm_bg.wasm.d.ts +10 -11
- package/index.d.ts +72 -10
- package/index.js +211 -9
- package/package.json +1 -1
package/THIRD-PARTY-LICENSES.txt
CHANGED
|
@@ -2301,6 +2301,164 @@ limitations under the License.
|
|
|
2301
2301
|
|
|
2302
2302
|
|
|
2303
2303
|
|
|
2304
|
+
******************************
|
|
2305
|
+
|
|
2306
|
+
cloudformation-guard-lang
|
|
2307
|
+
1.0.0 <https://github.com/aws-cloudformation/cloudformation-guard>
|
|
2308
|
+
Apache License
|
|
2309
|
+
Version 2.0, January 2004
|
|
2310
|
+
http://www.apache.org/licenses/
|
|
2311
|
+
|
|
2312
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
2313
|
+
|
|
2314
|
+
1. Definitions.
|
|
2315
|
+
|
|
2316
|
+
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
|
|
2317
|
+
|
|
2318
|
+
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
|
|
2319
|
+
|
|
2320
|
+
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
|
2321
|
+
|
|
2322
|
+
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
|
|
2323
|
+
|
|
2324
|
+
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
|
|
2325
|
+
|
|
2326
|
+
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
|
|
2327
|
+
|
|
2328
|
+
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
|
|
2329
|
+
|
|
2330
|
+
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
|
|
2331
|
+
|
|
2332
|
+
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
|
|
2333
|
+
|
|
2334
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
|
|
2335
|
+
|
|
2336
|
+
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
|
|
2337
|
+
|
|
2338
|
+
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
|
|
2339
|
+
|
|
2340
|
+
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
|
|
2341
|
+
|
|
2342
|
+
(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
|
|
2343
|
+
|
|
2344
|
+
(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
|
|
2345
|
+
|
|
2346
|
+
(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
|
|
2347
|
+
|
|
2348
|
+
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
|
|
2349
|
+
|
|
2350
|
+
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
|
|
2351
|
+
|
|
2352
|
+
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
|
|
2353
|
+
|
|
2354
|
+
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
|
|
2355
|
+
|
|
2356
|
+
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
|
|
2357
|
+
|
|
2358
|
+
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
|
|
2359
|
+
|
|
2360
|
+
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
|
|
2361
|
+
|
|
2362
|
+
END OF TERMS AND CONDITIONS
|
|
2363
|
+
|
|
2364
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
2365
|
+
|
|
2366
|
+
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
|
|
2367
|
+
|
|
2368
|
+
Copyright [yyyy] [name of copyright owner]
|
|
2369
|
+
|
|
2370
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
2371
|
+
you may not use this file except in compliance with the License.
|
|
2372
|
+
You may obtain a copy of the License at
|
|
2373
|
+
|
|
2374
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
2375
|
+
|
|
2376
|
+
Unless required by applicable law or agreed to in writing, software
|
|
2377
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
2378
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2379
|
+
See the License for the specific language governing permissions and
|
|
2380
|
+
limitations under the License.
|
|
2381
|
+
|
|
2382
|
+
|
|
2383
|
+
******************************
|
|
2384
|
+
|
|
2385
|
+
cloudformation-validate-composite-engine
|
|
2386
|
+
1.10.0 <https://github.com/aws-cloudformation/cloudformation-validate>
|
|
2387
|
+
Apache License
|
|
2388
|
+
Version 2.0, January 2004
|
|
2389
|
+
http://www.apache.org/licenses/
|
|
2390
|
+
|
|
2391
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
2392
|
+
|
|
2393
|
+
1. Definitions.
|
|
2394
|
+
|
|
2395
|
+
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
|
|
2396
|
+
|
|
2397
|
+
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
|
|
2398
|
+
|
|
2399
|
+
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
|
2400
|
+
|
|
2401
|
+
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
|
|
2402
|
+
|
|
2403
|
+
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
|
|
2404
|
+
|
|
2405
|
+
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
|
|
2406
|
+
|
|
2407
|
+
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
|
|
2408
|
+
|
|
2409
|
+
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
|
|
2410
|
+
|
|
2411
|
+
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
|
|
2412
|
+
|
|
2413
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
|
|
2414
|
+
|
|
2415
|
+
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
|
|
2416
|
+
|
|
2417
|
+
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
|
|
2418
|
+
|
|
2419
|
+
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
|
|
2420
|
+
|
|
2421
|
+
(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
|
|
2422
|
+
|
|
2423
|
+
(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
|
|
2424
|
+
|
|
2425
|
+
(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
|
|
2426
|
+
|
|
2427
|
+
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
|
|
2428
|
+
|
|
2429
|
+
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
|
|
2430
|
+
|
|
2431
|
+
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
|
|
2432
|
+
|
|
2433
|
+
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
|
|
2434
|
+
|
|
2435
|
+
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
|
|
2436
|
+
|
|
2437
|
+
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
|
|
2438
|
+
|
|
2439
|
+
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
|
|
2440
|
+
|
|
2441
|
+
END OF TERMS AND CONDITIONS
|
|
2442
|
+
|
|
2443
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
2444
|
+
|
|
2445
|
+
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
|
|
2446
|
+
|
|
2447
|
+
Copyright [yyyy] [name of copyright owner]
|
|
2448
|
+
|
|
2449
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
2450
|
+
you may not use this file except in compliance with the License.
|
|
2451
|
+
You may obtain a copy of the License at
|
|
2452
|
+
|
|
2453
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
2454
|
+
|
|
2455
|
+
Unless required by applicable law or agreed to in writing, software
|
|
2456
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
2457
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2458
|
+
See the License for the specific language governing permissions and
|
|
2459
|
+
limitations under the License.
|
|
2460
|
+
|
|
2461
|
+
|
|
2304
2462
|
******************************
|
|
2305
2463
|
|
|
2306
2464
|
colored
|
|
@@ -4352,85 +4510,6 @@ See the License for the specific language governing permissions and
|
|
|
4352
4510
|
limitations under the License.
|
|
4353
4511
|
|
|
4354
4512
|
|
|
4355
|
-
******************************
|
|
4356
|
-
|
|
4357
|
-
guard-lang
|
|
4358
|
-
1.0.0 <https://github.com/aws-cloudformation/cloudformation-guard>
|
|
4359
|
-
Apache License
|
|
4360
|
-
Version 2.0, January 2004
|
|
4361
|
-
http://www.apache.org/licenses/
|
|
4362
|
-
|
|
4363
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
4364
|
-
|
|
4365
|
-
1. Definitions.
|
|
4366
|
-
|
|
4367
|
-
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
|
|
4368
|
-
|
|
4369
|
-
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
|
|
4370
|
-
|
|
4371
|
-
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
|
4372
|
-
|
|
4373
|
-
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
|
|
4374
|
-
|
|
4375
|
-
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
|
|
4376
|
-
|
|
4377
|
-
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
|
|
4378
|
-
|
|
4379
|
-
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
|
|
4380
|
-
|
|
4381
|
-
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
|
|
4382
|
-
|
|
4383
|
-
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
|
|
4384
|
-
|
|
4385
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
|
|
4386
|
-
|
|
4387
|
-
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
|
|
4388
|
-
|
|
4389
|
-
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
|
|
4390
|
-
|
|
4391
|
-
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
|
|
4392
|
-
|
|
4393
|
-
(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
|
|
4394
|
-
|
|
4395
|
-
(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
|
|
4396
|
-
|
|
4397
|
-
(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
|
|
4398
|
-
|
|
4399
|
-
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
|
|
4400
|
-
|
|
4401
|
-
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
|
|
4402
|
-
|
|
4403
|
-
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
|
|
4404
|
-
|
|
4405
|
-
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
|
|
4406
|
-
|
|
4407
|
-
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
|
|
4408
|
-
|
|
4409
|
-
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
|
|
4410
|
-
|
|
4411
|
-
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
|
|
4412
|
-
|
|
4413
|
-
END OF TERMS AND CONDITIONS
|
|
4414
|
-
|
|
4415
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
4416
|
-
|
|
4417
|
-
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
|
|
4418
|
-
|
|
4419
|
-
Copyright [yyyy] [name of copyright owner]
|
|
4420
|
-
|
|
4421
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4422
|
-
you may not use this file except in compliance with the License.
|
|
4423
|
-
You may obtain a copy of the License at
|
|
4424
|
-
|
|
4425
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
4426
|
-
|
|
4427
|
-
Unless required by applicable law or agreed to in writing, software
|
|
4428
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
4429
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4430
|
-
See the License for the specific language governing permissions and
|
|
4431
|
-
limitations under the License.
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
4513
|
******************************
|
|
4435
4514
|
|
|
4436
4515
|
hashbrown
|
package/bindings_wasm.d.ts
CHANGED
|
@@ -358,6 +358,53 @@ export interface ReferenceEdge {
|
|
|
358
358
|
conditionContext?: string;
|
|
359
359
|
}
|
|
360
360
|
|
|
361
|
+
/**
|
|
362
|
+
* A single validation finding in the public report shape: the targeted entity is
|
|
363
|
+
* carried as a nested `entity` struct and the source location is flattened into
|
|
364
|
+
* individual line/column fields. The enrichment fields - `documentation_url`,
|
|
365
|
+
* `rule_description`, `phase`, and `context` - are carried only when a report is
|
|
366
|
+
* projected at the `DETAILED` detail level; the `STANDARD` detail level leaves them
|
|
367
|
+
* `None`, so they are omitted from serialization.
|
|
368
|
+
*/
|
|
369
|
+
export interface Diagnostic {
|
|
370
|
+
/**
|
|
371
|
+
* Identifier of the rule that produced this finding; its leading letter encodes the severity.
|
|
372
|
+
*/
|
|
373
|
+
ruleId: string;
|
|
374
|
+
severity: Severity;
|
|
375
|
+
message: string;
|
|
376
|
+
/**
|
|
377
|
+
* Where the rule came from, such as a provider schema, the built-in engine, or a user-supplied rule.
|
|
378
|
+
*/
|
|
379
|
+
source: RuleOrigin;
|
|
380
|
+
/**
|
|
381
|
+
* The named template entity this finding targets - a resource, parameter, output, mapping, condition, or template rule - if any.
|
|
382
|
+
*/
|
|
383
|
+
entity?: Entity;
|
|
384
|
+
/**
|
|
385
|
+
* Path to the offending property within the resource, such as \'Properties.Name\'.
|
|
386
|
+
*/
|
|
387
|
+
propertyPath?: string;
|
|
388
|
+
suggestedFix?: string;
|
|
389
|
+
category?: string;
|
|
390
|
+
/**
|
|
391
|
+
* Line in the source template where the finding begins (1-based).
|
|
392
|
+
*/
|
|
393
|
+
startLine?: number;
|
|
394
|
+
startColumn?: number;
|
|
395
|
+
endLine?: number;
|
|
396
|
+
endColumn?: number;
|
|
397
|
+
relatedResources?: RelatedResource[];
|
|
398
|
+
/**
|
|
399
|
+
* Condition name to boolean assignment under which this finding applies, when it depends on template conditions.
|
|
400
|
+
*/
|
|
401
|
+
conditionScenario?: Record<string, boolean>;
|
|
402
|
+
documentationUrl?: string;
|
|
403
|
+
ruleDescription?: string;
|
|
404
|
+
phase?: Phase;
|
|
405
|
+
context?: ViolationContext;
|
|
406
|
+
}
|
|
407
|
+
|
|
361
408
|
/**
|
|
362
409
|
* A template Parameter\'s declaration: its type, constraints (allowed values/pattern,
|
|
363
410
|
* length and value bounds), default, and description.
|
|
@@ -626,6 +673,41 @@ export interface RelatedResource {
|
|
|
626
673
|
message: string;
|
|
627
674
|
}
|
|
628
675
|
|
|
676
|
+
/**
|
|
677
|
+
* Configuration for a composite engine that evaluates the built-in rules with
|
|
678
|
+
* one engine and caller-supplied external rules with another.
|
|
679
|
+
*
|
|
680
|
+
* The built-in rules are always evaluated, so this config only carries the
|
|
681
|
+
* external rules layered on top plus the shared schema configuration. Custom
|
|
682
|
+
* rules can be supplied in all three formats: Rego rules are evaluated by the
|
|
683
|
+
* external engine, while CEL custom rules and Guard rules are evaluated by the
|
|
684
|
+
* engine that owns the built-ins. It has no field for engine-native built-in
|
|
685
|
+
* custom rules because the composite fixes which engine owns the built-ins.
|
|
686
|
+
*/
|
|
687
|
+
export interface CompositeEngineConfig {
|
|
688
|
+
/**
|
|
689
|
+
* Custom Rego rules layered on top of the built-in rules.
|
|
690
|
+
*/
|
|
691
|
+
regoRules?: ExternalRuleSource[];
|
|
692
|
+
/**
|
|
693
|
+
* Custom CEL rules layered on top of the built-in rules. They are evaluated
|
|
694
|
+
* by the same engine that owns the built-ins, since CEL custom rules are a
|
|
695
|
+
* CEL-engine feature.
|
|
696
|
+
*/
|
|
697
|
+
celRules?: ExternalRuleSource[];
|
|
698
|
+
/**
|
|
699
|
+
* Guard DSL rules as raw source text, layered on top of the built-in rules.
|
|
700
|
+
*/
|
|
701
|
+
guardRules?: ExternalRuleSource[];
|
|
702
|
+
/**
|
|
703
|
+
* Optional schema validator configuration. A standalone engine derives its
|
|
704
|
+
* schema-aware rule metadata from this config. Language APIs also use it to
|
|
705
|
+
* construct the schema validator bundled with the engine, so both components
|
|
706
|
+
* observe the same additional schemas.
|
|
707
|
+
*/
|
|
708
|
+
schemaValidatorConfig?: SchemaValidatorConfig;
|
|
709
|
+
}
|
|
710
|
+
|
|
629
711
|
/**
|
|
630
712
|
* Configuration for constructing a [`SchemaValidator`] with optional overlay
|
|
631
713
|
* schemas. Bindings and the CLI use this to build the validator separately from
|
|
@@ -645,19 +727,7 @@ export interface SchemaValidatorConfig {
|
|
|
645
727
|
export type DetailLevel = 'STANDARD' | 'DETAILED';
|
|
646
728
|
|
|
647
729
|
/**
|
|
648
|
-
*
|
|
649
|
-
*/
|
|
650
|
-
export interface DetailedReport {
|
|
651
|
-
filePath: string;
|
|
652
|
-
status: ReportStatus;
|
|
653
|
-
version: string;
|
|
654
|
-
metadata: ReportMetadata;
|
|
655
|
-
performance: PerformanceMetrics;
|
|
656
|
-
diagnostics: DetailedDiagnostic[];
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
/**
|
|
660
|
-
* Extra detail about a specific violation, present only in the detailed report.
|
|
730
|
+
* Extra detail about a specific violation, present only at the `DETAILED` detail level.
|
|
661
731
|
*/
|
|
662
732
|
export interface ViolationContext {
|
|
663
733
|
/**
|
|
@@ -788,19 +858,7 @@ export interface ResolutionSource {
|
|
|
788
858
|
/**
|
|
789
859
|
* Selects which validation engine evaluates rules.
|
|
790
860
|
*/
|
|
791
|
-
export type EngineType = 'REGO' | 'CEL';
|
|
792
|
-
|
|
793
|
-
/**
|
|
794
|
-
* Standard validation result: the report plus flattened diagnostics.
|
|
795
|
-
*/
|
|
796
|
-
export interface StandardReport {
|
|
797
|
-
filePath: string;
|
|
798
|
-
status: ReportStatus;
|
|
799
|
-
version: string;
|
|
800
|
-
metadata: ReportMetadata;
|
|
801
|
-
performance: PerformanceMetrics;
|
|
802
|
-
diagnostics: StandardDiagnostic[];
|
|
803
|
-
}
|
|
861
|
+
export type EngineType = 'REGO' | 'CEL' | 'COMPOSITE';
|
|
804
862
|
|
|
805
863
|
/**
|
|
806
864
|
* Suppress a rule for a specific logical resource ID. An absent `rule_id`
|
|
@@ -885,6 +943,20 @@ export interface Entity {
|
|
|
885
943
|
resourceType?: string;
|
|
886
944
|
}
|
|
887
945
|
|
|
946
|
+
/**
|
|
947
|
+
* The serializable validation result: report metadata, performance metrics, and
|
|
948
|
+
* the flattened diagnostics. The per-diagnostic enrichment fields are present only
|
|
949
|
+
* when the report is projected at the `DETAILED` detail level.
|
|
950
|
+
*/
|
|
951
|
+
export interface ValidationReport {
|
|
952
|
+
filePath: string;
|
|
953
|
+
status: ReportStatus;
|
|
954
|
+
version: string;
|
|
955
|
+
metadata: ReportMetadata;
|
|
956
|
+
performance: PerformanceMetrics;
|
|
957
|
+
diagnostics: Diagnostic[];
|
|
958
|
+
}
|
|
959
|
+
|
|
888
960
|
/**
|
|
889
961
|
* The template resource a diagnostic is attributed to, when it targets one.
|
|
890
962
|
*/
|
|
@@ -965,86 +1037,6 @@ export interface PseudoParameterOverrides {
|
|
|
965
1037
|
*/
|
|
966
1038
|
export type RuleOrigin = 'SCHEMA' | 'CFN_LINT' | 'ENGINE' | 'CUSTOM' | 'GUARD';
|
|
967
1039
|
|
|
968
|
-
/**
|
|
969
|
-
*r" A single validation finding with its source location flattened into individual fields.
|
|
970
|
-
*/
|
|
971
|
-
export interface StandardDiagnostic {
|
|
972
|
-
/**
|
|
973
|
-
* Identifier of the rule that produced this finding; its leading letter encodes the severity.
|
|
974
|
-
*/
|
|
975
|
-
ruleId: string;
|
|
976
|
-
severity: Severity;
|
|
977
|
-
message: string;
|
|
978
|
-
/**
|
|
979
|
-
* Where the rule came from, such as a provider schema, the built-in engine, or a user-supplied rule.
|
|
980
|
-
*/
|
|
981
|
-
source: RuleOrigin;
|
|
982
|
-
/**
|
|
983
|
-
* The named template entity this finding targets - a resource, parameter, output, mapping, condition, or template rule - if any.
|
|
984
|
-
*/
|
|
985
|
-
entity?: Entity;
|
|
986
|
-
/**
|
|
987
|
-
* Path to the offending property within the resource, such as \'Properties.Name\'.
|
|
988
|
-
*/
|
|
989
|
-
propertyPath?: string;
|
|
990
|
-
suggestedFix?: string;
|
|
991
|
-
category?: string;
|
|
992
|
-
/**
|
|
993
|
-
* Line in the source template where the finding begins (1-based).
|
|
994
|
-
*/
|
|
995
|
-
startLine?: number;
|
|
996
|
-
startColumn?: number;
|
|
997
|
-
endLine?: number;
|
|
998
|
-
endColumn?: number;
|
|
999
|
-
relatedResources?: RelatedResource[];
|
|
1000
|
-
/**
|
|
1001
|
-
* Condition name to boolean assignment under which this finding applies, when it depends on template conditions.
|
|
1002
|
-
*/
|
|
1003
|
-
conditionScenario?: Record<string, boolean>;
|
|
1004
|
-
}
|
|
1005
|
-
|
|
1006
|
-
/**
|
|
1007
|
-
*r" A validation finding with additional context and enrichment beyond the standard finding.
|
|
1008
|
-
*/
|
|
1009
|
-
export interface DetailedDiagnostic {
|
|
1010
|
-
/**
|
|
1011
|
-
* Identifier of the rule that produced this finding; its leading letter encodes the severity.
|
|
1012
|
-
*/
|
|
1013
|
-
ruleId: string;
|
|
1014
|
-
severity: Severity;
|
|
1015
|
-
message: string;
|
|
1016
|
-
/**
|
|
1017
|
-
* Where the rule came from, such as a provider schema, the built-in engine, or a user-supplied rule.
|
|
1018
|
-
*/
|
|
1019
|
-
source: RuleOrigin;
|
|
1020
|
-
/**
|
|
1021
|
-
* The named template entity this finding targets - a resource, parameter, output, mapping, condition, or template rule - if any.
|
|
1022
|
-
*/
|
|
1023
|
-
entity?: Entity;
|
|
1024
|
-
/**
|
|
1025
|
-
* Path to the offending property within the resource, such as \'Properties.Name\'.
|
|
1026
|
-
*/
|
|
1027
|
-
propertyPath?: string;
|
|
1028
|
-
suggestedFix?: string;
|
|
1029
|
-
category?: string;
|
|
1030
|
-
/**
|
|
1031
|
-
* Line in the source template where the finding begins (1-based).
|
|
1032
|
-
*/
|
|
1033
|
-
startLine?: number;
|
|
1034
|
-
startColumn?: number;
|
|
1035
|
-
endLine?: number;
|
|
1036
|
-
endColumn?: number;
|
|
1037
|
-
relatedResources?: RelatedResource[];
|
|
1038
|
-
/**
|
|
1039
|
-
* Condition name to boolean assignment under which this finding applies, when it depends on template conditions.
|
|
1040
|
-
*/
|
|
1041
|
-
conditionScenario?: Record<string, boolean>;
|
|
1042
|
-
documentationUrl?: string;
|
|
1043
|
-
ruleDescription?: string;
|
|
1044
|
-
phase?: Phase;
|
|
1045
|
-
context?: ViolationContext;
|
|
1046
|
-
}
|
|
1047
|
-
|
|
1048
1040
|
export interface EngineConfig {
|
|
1049
1041
|
/**
|
|
1050
1042
|
* Engine-native custom rules (Rego or CEL depending on engine).
|
|
@@ -1116,6 +1108,7 @@ export interface Summary {
|
|
|
1116
1108
|
export interface ValidateConfig {
|
|
1117
1109
|
include?: RuleFilterConfig;
|
|
1118
1110
|
exclude?: RuleFilterConfig;
|
|
1111
|
+
detailLevel?: DetailLevel;
|
|
1119
1112
|
severityLevel?: Severity;
|
|
1120
1113
|
parameterOverrides?: Record<string, string>;
|
|
1121
1114
|
pseudoParameterOverrides?: PseudoParameterOverrides;
|
|
@@ -1124,7 +1117,7 @@ export interface ValidateConfig {
|
|
|
1124
1117
|
}
|
|
1125
1118
|
|
|
1126
1119
|
export interface WasmSchemaValidationResult {
|
|
1127
|
-
diagnostics:
|
|
1120
|
+
diagnostics: Diagnostic[];
|
|
1128
1121
|
metric: PhaseMetric;
|
|
1129
1122
|
}
|
|
1130
1123
|
|
|
@@ -1136,8 +1129,18 @@ export class WasmCelEngine {
|
|
|
1136
1129
|
engineName(): string;
|
|
1137
1130
|
listRules(): any;
|
|
1138
1131
|
constructor(config: EngineConfig);
|
|
1139
|
-
|
|
1140
|
-
|
|
1132
|
+
validateAwsCliCommand(request: any): any;
|
|
1133
|
+
validateTemplate(template: Uint8Array, options: ValidateConfig, file_path: string): any;
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
export class WasmCompositeEngine {
|
|
1137
|
+
free(): void;
|
|
1138
|
+
[Symbol.dispose](): void;
|
|
1139
|
+
engineName(): string;
|
|
1140
|
+
listRules(): any;
|
|
1141
|
+
constructor(config: CompositeEngineConfig);
|
|
1142
|
+
validateAwsCliCommand(request: any): any;
|
|
1143
|
+
validateTemplate(template: Uint8Array, options: ValidateConfig, file_path: string): any;
|
|
1141
1144
|
}
|
|
1142
1145
|
|
|
1143
1146
|
export class WasmRegoEngine {
|
|
@@ -1146,8 +1149,8 @@ export class WasmRegoEngine {
|
|
|
1146
1149
|
engineName(): string;
|
|
1147
1150
|
listRules(): any;
|
|
1148
1151
|
constructor(config: EngineConfig);
|
|
1149
|
-
|
|
1150
|
-
|
|
1152
|
+
validateAwsCliCommand(request: any): any;
|
|
1153
|
+
validateTemplate(template: Uint8Array, options: ValidateConfig, file_path: string): any;
|
|
1151
1154
|
}
|
|
1152
1155
|
|
|
1153
1156
|
export class WasmSchemaValidator {
|