@aws/cloudformation-validate 1.0.0-beta → 1.2.0-beta
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 +3 -22
- package/THIRD-PARTY-LICENSES.txt +3525 -8323
- package/bindings_wasm.d.ts +1 -1
- package/bindings_wasm.js +51 -51
- package/bindings_wasm_bg.wasm +0 -0
- package/package.json +34 -23
package/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# bindings-wasm
|
|
2
2
|
|
|
3
|
-
WASM bindings for [`cloudformation-validate`](
|
|
3
|
+
WASM bindings for [`cloudformation-validate`](https://github.com/aws-cloudformation/cloudformation-validate). Compiles
|
|
4
|
+
the full validation pipeline —
|
|
4
5
|
template parser, schema validator, Rego engine, and CEL engine — into a single `.wasm` module for Node.js.
|
|
5
6
|
|
|
6
7
|
All WASM objects must be explicitly freed via `.free()` to release memory.
|
|
@@ -11,7 +12,7 @@ All WASM objects must be explicitly freed via `.free()` to release memory.
|
|
|
11
12
|
diagnostics for the same template and config.
|
|
12
13
|
|
|
13
14
|
```typescript
|
|
14
|
-
import {RegoEngine, CelEngine, TemplateFile} from "@aws/cloudformation-validate";
|
|
15
|
+
import { RegoEngine, CelEngine, TemplateFile } from "@aws/cloudformation-validate";
|
|
15
16
|
|
|
16
17
|
const engine = new RegoEngine();
|
|
17
18
|
const report = engine.validateStandard(new TemplateFile("template.yaml"));
|
|
@@ -195,23 +196,3 @@ interface StandardDiagnostic {
|
|
|
195
196
|
conditionScenario?: Record<string, boolean>; // condition truth assignment that triggers this diagnostic
|
|
196
197
|
}
|
|
197
198
|
```
|
|
198
|
-
|
|
199
|
-
### Severity levels
|
|
200
|
-
|
|
201
|
-
| Level | Prefix | Meaning |
|
|
202
|
-
|---------|--------|-----------------------------------------------------------------------|
|
|
203
|
-
| `FATAL` | F | Structural schema violation — CloudFormation will reject the template |
|
|
204
|
-
| `ERROR` | E | Semantic error — likely deployment failure or incorrect behavior |
|
|
205
|
-
| `WARN` | W | Security risk, deprecation, or risky pattern |
|
|
206
|
-
| `INFO` | I | Best practice suggestion |
|
|
207
|
-
| `DEBUG` | D | Internal diagnostic detail |
|
|
208
|
-
|
|
209
|
-
## `version()`
|
|
210
|
-
|
|
211
|
-
Returns the engine version string.
|
|
212
|
-
|
|
213
|
-
```typescript
|
|
214
|
-
import {version} from "@aws/cloudformation-validate";
|
|
215
|
-
|
|
216
|
-
console.log(version()); // e.g. "1.0.0"
|
|
217
|
-
```
|