@intentius/chant-lexicon-aws 0.56.0 → 0.57.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.
Files changed (45) hide show
  1. package/dist/condition.d.ts +27 -0
  2. package/dist/condition.d.ts.map +1 -0
  3. package/dist/generated/index.d.ts +1 -1
  4. package/dist/generated/index.d.ts.map +1 -1
  5. package/dist/import/generator.d.ts +19 -0
  6. package/dist/import/generator.d.ts.map +1 -1
  7. package/dist/import/parser.d.ts +19 -0
  8. package/dist/import/parser.d.ts.map +1 -1
  9. package/dist/index.d.ts +3 -1
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/integrity.json +4 -3
  12. package/dist/intrinsics.d.ts +77 -3
  13. package/dist/intrinsics.d.ts.map +1 -1
  14. package/dist/lint/audit-catalog.d.ts.map +1 -1
  15. package/dist/lint/post-synth/index.d.ts.map +1 -1
  16. package/dist/lint/post-synth/waw069.d.ts +15 -0
  17. package/dist/lint/post-synth/waw069.d.ts.map +1 -0
  18. package/dist/manifest.json +29 -1
  19. package/dist/okf/index.md +1 -0
  20. package/dist/okf/rules/WAW069.md +11 -0
  21. package/dist/plugin.d.ts.map +1 -1
  22. package/dist/rules/waw069.ts +0 -0
  23. package/dist/serializer.d.ts.map +1 -1
  24. package/dist/types/index.d.ts +3 -3
  25. package/package.json +2 -2
  26. package/src/codegen/generate-typescript.ts +3 -3
  27. package/src/codegen/generate.ts +1 -1
  28. package/src/condition.test.ts +129 -0
  29. package/src/condition.ts +40 -0
  30. package/src/generated/index.d.ts +3 -3
  31. package/src/generated/index.ts +1 -1
  32. package/src/import/generator.ts +131 -50
  33. package/src/import/parser.test.ts +96 -0
  34. package/src/import/parser.ts +86 -1
  35. package/src/import/roundtrip-fixtures.test.ts +50 -0
  36. package/src/index.ts +12 -0
  37. package/src/intrinsics.ts +130 -5
  38. package/src/lint/audit-catalog.ts +1 -0
  39. package/src/lint/post-synth/index.ts +2 -0
  40. package/src/lint/post-synth/waw069.test.ts +94 -0
  41. package/src/lint/post-synth/waw069.ts +0 -0
  42. package/src/plugin.test.ts +5 -1
  43. package/src/plugin.ts +4 -0
  44. package/src/serializer.ts +24 -3
  45. package/src/testdata/roundtrip/with-conditions.json +16 -0
@@ -0,0 +1,27 @@
1
+ /**
2
+ * CloudFormation template condition (#2068).
3
+ *
4
+ * A `Condition` declarable is lifted into the template's `Conditions`
5
+ * section by the serializer, the way `Parameter` is lifted into
6
+ * `Parameters`. Reference it from a resource's `Condition` attribute, an
7
+ * output's `condition` option, `If(...)`, or inside another condition via
8
+ * `And`/`Or`/`Not`.
9
+ */
10
+ import { DECLARABLE_MARKER, type Declarable } from "@intentius/chant/declarable";
11
+ import { type Intrinsic } from "@intentius/chant/intrinsic";
12
+ export declare const CONDITION_ENTITY_TYPE = "AWS::CloudFormation::Condition";
13
+ export declare class Condition implements Declarable {
14
+ readonly [DECLARABLE_MARKER]: true;
15
+ readonly lexicon = "aws";
16
+ readonly entityType = "AWS::CloudFormation::Condition";
17
+ /** The boolean expression: an `Equals`/`And`/`Or`/`Not` intrinsic. */
18
+ readonly expression: Intrinsic;
19
+ constructor(expression: Intrinsic);
20
+ }
21
+ /**
22
+ * Type guard for the `Condition` declarable. Duck-typed on `entityType`
23
+ * rather than `instanceof` so a lexicon built against a separate copy of
24
+ * `@intentius/chant` still matches (the #1137 convention).
25
+ */
26
+ export declare function isCondition(value: unknown): value is Condition;
27
+ //# sourceMappingURL=condition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"condition.d.ts","sourceRoot":"","sources":["../src/condition.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,iBAAiB,EAAgB,KAAK,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAC/F,OAAO,EAAe,KAAK,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAEzE,eAAO,MAAM,qBAAqB,mCAAmC,CAAC;AAEtE,qBAAa,SAAU,YAAW,UAAU;IAC1C,QAAQ,CAAC,CAAC,iBAAiB,CAAC,EAAG,IAAI,CAAU;IAC7C,QAAQ,CAAC,OAAO,SAAS;IACzB,QAAQ,CAAC,UAAU,oCAAyB;IAC5C,sEAAsE;IACtE,QAAQ,CAAC,UAAU,EAAE,SAAS,CAAC;gBAEnB,UAAU,EAAE,SAAS;CAQlC;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,SAAS,CAE9D"}
@@ -10759,6 +10759,6 @@ export declare const ZonalAutoshiftConfiguration_PracticeRunConfiguration: new (
10759
10759
  export declare const ZonalConfig: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
10760
10760
  export declare const ZonalShiftConfig: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
10761
10761
  export declare const ZookeeperAccess: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
10762
- export { Sub, Ref, GetAtt, If, Join, Select, Split, Base64 } from "../intrinsics.js";
10762
+ export { Sub, Ref, GetAtt, If, Join, Select, Split, Base64, Equals, Not } from "../intrinsics.js";
10763
10763
  export { AWS, StackName, Region, AccountId, StackId, URLSuffix, NoValue, NotificationARNs } from "../pseudo.js";
10764
10764
  //# sourceMappingURL=index.d.ts.map