@aws/cloudformation-validate 1.1.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 +1 -21
- package/bindings_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ All WASM objects must be explicitly freed via `.free()` to release memory.
|
|
|
12
12
|
diagnostics for the same template and config.
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
import {RegoEngine, CelEngine, TemplateFile} from "@aws/cloudformation-validate";
|
|
15
|
+
import { RegoEngine, CelEngine, TemplateFile } from "@aws/cloudformation-validate";
|
|
16
16
|
|
|
17
17
|
const engine = new RegoEngine();
|
|
18
18
|
const report = engine.validateStandard(new TemplateFile("template.yaml"));
|
|
@@ -196,23 +196,3 @@ interface StandardDiagnostic {
|
|
|
196
196
|
conditionScenario?: Record<string, boolean>; // condition truth assignment that triggers this diagnostic
|
|
197
197
|
}
|
|
198
198
|
```
|
|
199
|
-
|
|
200
|
-
### Severity levels
|
|
201
|
-
|
|
202
|
-
| Level | Prefix | Meaning |
|
|
203
|
-
|---------|--------|-----------------------------------------------------------------------|
|
|
204
|
-
| `FATAL` | F | Structural schema violation — CloudFormation will reject the template |
|
|
205
|
-
| `ERROR` | E | Semantic error — likely deployment failure or incorrect behavior |
|
|
206
|
-
| `WARN` | W | Security risk, deprecation, or risky pattern |
|
|
207
|
-
| `INFO` | I | Best practice suggestion |
|
|
208
|
-
| `DEBUG` | D | Internal diagnostic detail |
|
|
209
|
-
|
|
210
|
-
## `version()`
|
|
211
|
-
|
|
212
|
-
Returns the engine version string.
|
|
213
|
-
|
|
214
|
-
```typescript
|
|
215
|
-
import {version} from "@aws/cloudformation-validate";
|
|
216
|
-
|
|
217
|
-
console.log(version()); // e.g. "1.0.0"
|
|
218
|
-
```
|
package/bindings_wasm_bg.wasm
CHANGED
|
Binary file
|