@intentius/chant-lexicon-aws 0.124.31 → 0.124.33

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 (649) hide show
  1. package/dist/actions/dynamodb.js +41 -0
  2. package/dist/actions/ecr.js +9 -0
  3. package/dist/actions/ecs.js +5 -0
  4. package/dist/actions/iam.js +3 -0
  5. package/dist/actions/index.js +9 -0
  6. package/dist/actions/lambda.js +11 -0
  7. package/dist/actions/logs.js +4 -0
  8. package/dist/actions/s3.js +40 -0
  9. package/dist/actions/sns.js +5 -0
  10. package/dist/actions/sqs.js +15 -0
  11. package/dist/agentcore/trace-fetch.d.ts.map +1 -1
  12. package/dist/agentcore/trace-fetch.js +472 -0
  13. package/dist/agentcore/trace-render.js +359 -0
  14. package/dist/ambient.js +148 -0
  15. package/dist/api/credential-chain.d.ts +30 -3
  16. package/dist/api/credential-chain.d.ts.map +1 -1
  17. package/dist/api/credential-chain.js +509 -0
  18. package/dist/api/read-client.d.ts +16 -43
  19. package/dist/api/read-client.d.ts.map +1 -1
  20. package/dist/api/read-client.js +458 -0
  21. package/dist/api/sigv4.d.ts +4 -4
  22. package/dist/api/sigv4.js +185 -0
  23. package/dist/behaviour-kinds.js +114 -0
  24. package/dist/caller-identity.d.ts +3 -5
  25. package/dist/caller-identity.d.ts.map +1 -1
  26. package/dist/caller-identity.js +146 -0
  27. package/dist/codegen/docs-cli.js +2 -0
  28. package/dist/codegen/docs.js +120 -0
  29. package/dist/codegen/enum-overlay.js +162 -0
  30. package/dist/codegen/extensions.js +139 -0
  31. package/dist/codegen/fallback.js +32 -0
  32. package/dist/codegen/generate-cli.js +15 -0
  33. package/dist/codegen/generate-lexicon.js +70 -0
  34. package/dist/codegen/generate-typescript.js +226 -0
  35. package/dist/codegen/generate.d.ts.map +1 -1
  36. package/dist/codegen/generate.js +234 -0
  37. package/dist/codegen/naming.js +135 -0
  38. package/dist/codegen/package.js +67 -0
  39. package/dist/codegen/patches.d.ts +26 -1
  40. package/dist/codegen/patches.d.ts.map +1 -1
  41. package/dist/codegen/patches.js +90 -0
  42. package/dist/codegen/property-overlay.js +85 -0
  43. package/dist/codegen/property-overlay.json +1 -16
  44. package/dist/codegen/sam.js +402 -0
  45. package/dist/codegen/typecheck.js +4 -0
  46. package/dist/codegen/versions.js +31 -0
  47. package/dist/components/__tests__/mock-cloud-executor.js +326 -0
  48. package/dist/components/apply.d.ts +44 -1
  49. package/dist/components/apply.d.ts.map +1 -1
  50. package/dist/components/apply.js +752 -0
  51. package/dist/components/builders.js +37 -0
  52. package/dist/components/capability-plugin.js +66 -0
  53. package/dist/components/cloud-executor.d.ts +35 -0
  54. package/dist/components/cloud-executor.d.ts.map +1 -1
  55. package/dist/components/cloud-executor.js +576 -0
  56. package/dist/components/config-bom.js +207 -0
  57. package/dist/components/host-delivery.js +117 -0
  58. package/dist/components/index.js +18 -0
  59. package/dist/components/job-submission.js +77 -0
  60. package/dist/components/publish.js +234 -0
  61. package/dist/components/safety.js +62 -0
  62. package/dist/components/wait-aws.js +68 -0
  63. package/dist/composites/agentcore-agent.js +187 -0
  64. package/dist/composites/agentcore-trust-policy.js +13 -0
  65. package/dist/composites/alb-shared.js +84 -0
  66. package/dist/composites/bucket-deployment.js +93 -0
  67. package/dist/composites/catalog.js +2714 -0
  68. package/dist/composites/dynamodb-table.js +66 -0
  69. package/dist/composites/ec2-instance-bundle.js +75 -0
  70. package/dist/composites/ec2-instance-role.js +26 -0
  71. package/dist/composites/ecr-repository.js +64 -0
  72. package/dist/composites/ecs-trust-policy.js +10 -0
  73. package/dist/composites/efs-with-access-point.js +44 -0
  74. package/dist/composites/eks-cluster.js +118 -0
  75. package/dist/composites/fargate-alb.js +216 -0
  76. package/dist/composites/fargate-service.js +222 -0
  77. package/dist/composites/index.js +28 -0
  78. package/dist/composites/lambda-api.js +15 -0
  79. package/dist/composites/lambda-dynamodb.js +77 -0
  80. package/dist/composites/lambda-eventbridge.js +27 -0
  81. package/dist/composites/lambda-function.js +54 -0
  82. package/dist/composites/lambda-s3.js +93 -0
  83. package/dist/composites/lambda-sns.js +23 -0
  84. package/dist/composites/lambda-sqs.js +34 -0
  85. package/dist/composites/landing-zone.js +82 -0
  86. package/dist/composites/microvm-app.js +293 -0
  87. package/dist/composites/minimal-vpc.js +40 -0
  88. package/dist/composites/monitoring-stack.js +105 -0
  89. package/dist/composites/nlb-service.js +61 -0
  90. package/dist/composites/rds-instance.js +98 -0
  91. package/dist/composites/scheduled-lambda.js +28 -0
  92. package/dist/composites/solr-fargate-service.js +33 -0
  93. package/dist/composites/step-functions-workflow.js +78 -0
  94. package/dist/composites/vpc-default.js +132 -0
  95. package/dist/condition.js +43 -0
  96. package/dist/coverage.js +4 -0
  97. package/dist/deep-observe.d.ts.map +1 -1
  98. package/dist/deep-observe.js +709 -0
  99. package/dist/deep-topology.js +226 -0
  100. package/dist/default-tags.js +50 -0
  101. package/dist/defaults.js +85 -0
  102. package/dist/dependencies.js +269 -0
  103. package/dist/detect.js +21 -0
  104. package/dist/disruption.d.ts.map +1 -1
  105. package/dist/disruption.js +129 -0
  106. package/dist/effect-receipt-row.js +107 -0
  107. package/dist/generated/index.d.ts +1297 -82
  108. package/dist/generated/index.d.ts.map +1 -1
  109. package/dist/generated/index.js +12382 -0
  110. package/dist/generated/runtime.js +4 -0
  111. package/dist/governance.js +131 -0
  112. package/dist/health.d.ts +61 -0
  113. package/dist/health.d.ts.map +1 -0
  114. package/dist/health.js +216 -0
  115. package/dist/identity-observe.d.ts.map +1 -1
  116. package/dist/identity-observe.js +127 -0
  117. package/dist/import/generator.js +757 -0
  118. package/dist/import/live-export.js +34 -0
  119. package/dist/import/parser.js +394 -0
  120. package/dist/index.js +69 -0
  121. package/dist/integrity.json +6 -6
  122. package/dist/intrinsics.js +393 -0
  123. package/dist/lint/audit-catalog.js +87 -0
  124. package/dist/lint/audit-lineage.js +150 -0
  125. package/dist/lint/post-synth/cf-refs.js +247 -0
  126. package/dist/lint/post-synth/cor020.js +60 -0
  127. package/dist/lint/post-synth/ext001.d.ts.map +1 -1
  128. package/dist/lint/post-synth/ext001.js +197 -0
  129. package/dist/lint/post-synth/index.js +124 -0
  130. package/dist/lint/post-synth/waw010.js +41 -0
  131. package/dist/lint/post-synth/waw011.js +41 -0
  132. package/dist/lint/post-synth/waw013.js +38 -0
  133. package/dist/lint/post-synth/waw014.js +42 -0
  134. package/dist/lint/post-synth/waw015.js +88 -0
  135. package/dist/lint/post-synth/waw016.d.ts.map +1 -1
  136. package/dist/lint/post-synth/waw016.js +116 -0
  137. package/dist/lint/post-synth/waw017.js +43 -0
  138. package/dist/lint/post-synth/waw018.js +61 -0
  139. package/dist/lint/post-synth/waw019.js +64 -0
  140. package/dist/lint/post-synth/waw020.js +56 -0
  141. package/dist/lint/post-synth/waw021.js +44 -0
  142. package/dist/lint/post-synth/waw022.js +36 -0
  143. package/dist/lint/post-synth/waw023.js +40 -0
  144. package/dist/lint/post-synth/waw024.js +46 -0
  145. package/dist/lint/post-synth/waw025.js +36 -0
  146. package/dist/lint/post-synth/waw026.js +38 -0
  147. package/dist/lint/post-synth/waw027.js +41 -0
  148. package/dist/lint/post-synth/waw028.js +39 -0
  149. package/dist/lint/post-synth/waw029.js +54 -0
  150. package/dist/lint/post-synth/waw030.js +282 -0
  151. package/dist/lint/post-synth/waw031.js +58 -0
  152. package/dist/lint/post-synth/waw032.js +45 -0
  153. package/dist/lint/post-synth/waw033.js +75 -0
  154. package/dist/lint/post-synth/waw034.js +52 -0
  155. package/dist/lint/post-synth/waw035.js +56 -0
  156. package/dist/lint/post-synth/waw036.js +79 -0
  157. package/dist/lint/post-synth/waw037.js +67 -0
  158. package/dist/lint/post-synth/waw038.js +42 -0
  159. package/dist/lint/post-synth/waw039.js +42 -0
  160. package/dist/lint/post-synth/waw040.js +45 -0
  161. package/dist/lint/post-synth/waw041.js +40 -0
  162. package/dist/lint/post-synth/waw042.js +99 -0
  163. package/dist/lint/post-synth/waw043.js +51 -0
  164. package/dist/lint/post-synth/waw044.js +64 -0
  165. package/dist/lint/post-synth/waw045.js +49 -0
  166. package/dist/lint/post-synth/waw046.js +52 -0
  167. package/dist/lint/post-synth/waw047.js +43 -0
  168. package/dist/lint/post-synth/waw048.js +40 -0
  169. package/dist/lint/post-synth/waw049.js +78 -0
  170. package/dist/lint/post-synth/waw050.js +44 -0
  171. package/dist/lint/post-synth/waw051.js +41 -0
  172. package/dist/lint/post-synth/waw052.js +43 -0
  173. package/dist/lint/post-synth/waw053.js +43 -0
  174. package/dist/lint/post-synth/waw054.js +41 -0
  175. package/dist/lint/post-synth/waw055.js +41 -0
  176. package/dist/lint/post-synth/waw056.js +65 -0
  177. package/dist/lint/post-synth/waw057.js +43 -0
  178. package/dist/lint/post-synth/waw058.js +61 -0
  179. package/dist/lint/post-synth/waw059.js +338 -0
  180. package/dist/lint/post-synth/waw060.js +83 -0
  181. package/dist/lint/post-synth/waw061.js +60 -0
  182. package/dist/lint/post-synth/waw062.js +0 -0
  183. package/dist/lint/post-synth/waw063.js +0 -0
  184. package/dist/lint/post-synth/waw064.js +45 -0
  185. package/dist/lint/post-synth/waw065.js +104 -0
  186. package/dist/lint/post-synth/waw066.js +145 -0
  187. package/dist/lint/post-synth/waw067.js +115 -0
  188. package/dist/lint/post-synth/waw068.js +69 -0
  189. package/dist/lint/post-synth/waw069.js +0 -0
  190. package/dist/lint/rules/hardcoded-region.js +38 -0
  191. package/dist/lint/rules/iam-wildcard.js +60 -0
  192. package/dist/lint/rules/index.js +6 -0
  193. package/dist/lint/rules/s3-encryption.js +60 -0
  194. package/dist/live-attrs.js +42 -0
  195. package/dist/lsp/completions.d.ts.map +1 -1
  196. package/dist/lsp/completions.js +18 -0
  197. package/dist/lsp/hover.d.ts.map +1 -1
  198. package/dist/lsp/hover.js +66 -0
  199. package/dist/manifest.json +1 -1
  200. package/dist/mapping.js +33 -0
  201. package/dist/meta.json +17359 -784
  202. package/dist/nested-stack.js +95 -0
  203. package/dist/okf/index.md +203 -0
  204. package/dist/okf/rules/EXT001.md +1 -0
  205. package/dist/okf/rules/WAW016.md +2 -0
  206. package/dist/okf/rules/WAW019.md +1 -0
  207. package/dist/okf/rules/WAW028.md +1 -0
  208. package/dist/okf/rules/WAW030.md +2 -0
  209. package/dist/okf/rules/WAW039.md +1 -0
  210. package/dist/okf/rules/WAW049.md +1 -0
  211. package/dist/okf/rules/WAW056.md +1 -0
  212. package/dist/okf/rules/WAW058.md +1 -0
  213. package/dist/okf/rules/WAW062.md +1 -0
  214. package/dist/okf/rules/WAW064.md +1 -0
  215. package/dist/okf/rules/WAW065.md +1 -0
  216. package/dist/okf/rules/WAW066.md +1 -0
  217. package/dist/okf/rules/WAW067.md +1 -0
  218. package/dist/okf/rules/WAW068.md +1 -0
  219. package/dist/okf/rules/WAW069.md +4 -0
  220. package/dist/okf/types/AIWorkloadConfig.md +23 -0
  221. package/dist/okf/types/ARCRegionSwitchPlan.md +1 -0
  222. package/dist/okf/types/AccountAccessApplication.md +28 -0
  223. package/dist/okf/types/AccountAccessEntitlement.md +22 -0
  224. package/dist/okf/types/ActionTarget.md +20 -0
  225. package/dist/okf/types/AdConfiguration.md +21 -0
  226. package/dist/okf/types/Adapter.md +26 -0
  227. package/dist/okf/types/AgentContext.md +35 -0
  228. package/dist/okf/types/AgentGoal.md +31 -0
  229. package/dist/okf/types/AgentProfile.md +34 -0
  230. package/dist/okf/types/Alarm.md +3 -1
  231. package/dist/okf/types/AlarmModel.md +14 -9
  232. package/dist/okf/types/AmplifyWebhook.md +25 -0
  233. package/dist/okf/types/ApiCache.md +8 -8
  234. package/dist/okf/types/ApiGatewayManagedOverrides.md +5 -5
  235. package/dist/okf/types/AppAuthorization.md +35 -0
  236. package/dist/okf/types/AppBlockBuilder.md +1 -0
  237. package/dist/okf/types/AppInstance.md +2 -2
  238. package/dist/okf/types/AppInstanceBot.md +2 -2
  239. package/dist/okf/types/AppStreamFleet.md +3 -2
  240. package/dist/okf/types/AppSyncApiKey.md +6 -6
  241. package/dist/okf/types/AppSyncType.md +22 -0
  242. package/dist/okf/types/ApplicationStatusCheck.md +36 -0
  243. package/dist/okf/types/ApplicationVersion.md +4 -1
  244. package/dist/okf/types/ApplicationsList.md +26 -0
  245. package/dist/okf/types/ApprovalPolicy.md +28 -0
  246. package/dist/okf/types/ArchiveRule.md +24 -0
  247. package/dist/okf/types/Asset.md +30 -0
  248. package/dist/okf/types/Backup.md +31 -0
  249. package/dist/okf/types/BedrockAgentCoreDataset.md +1 -1
  250. package/dist/okf/types/BedrockAgentCoreGateway.md +3 -0
  251. package/dist/okf/types/BedrockSession.md +28 -0
  252. package/dist/okf/types/BillEstimate.md +35 -0
  253. package/dist/okf/types/Brand.md +32 -0
  254. package/dist/okf/types/CallAnalyticsCategory.md +25 -0
  255. package/dist/okf/types/Campaign.md +28 -0
  256. package/dist/okf/types/CapacityProvider.md +30 -0
  257. package/dist/okf/types/Case.md +24 -0
  258. package/dist/okf/types/CertificateAssociation.md +13 -0
  259. package/dist/okf/types/ChangeSet.md +36 -0
  260. package/dist/okf/types/ChannelFlow.md +29 -0
  261. package/dist/okf/types/ChimeChannel.md +39 -0
  262. package/dist/okf/types/Classifier.md +6 -6
  263. package/dist/okf/types/ClientVpnAuthorizationRule.md +6 -6
  264. package/dist/okf/types/ClientVpnEndpoint.md +2 -0
  265. package/dist/okf/types/ClientVpnRoute.md +5 -5
  266. package/dist/okf/types/CloudConnector.md +29 -0
  267. package/dist/okf/types/Cluster.md +39 -0
  268. package/dist/okf/types/ClusterSchedulerConfig.md +30 -0
  269. package/dist/okf/types/CodeCommitRepository.md +12 -12
  270. package/dist/okf/types/CodeConnectionsHost.md +26 -0
  271. package/dist/okf/types/CodeRepository.md +5 -5
  272. package/dist/okf/types/CompositeAlarm.md +1 -0
  273. package/dist/okf/types/ComputeEnvironment.md +2 -0
  274. package/dist/okf/types/ComputeNodeGroup.md +1 -1
  275. package/dist/okf/types/ComputeQuota.md +34 -0
  276. package/dist/okf/types/ConfigRule.md +1 -1
  277. package/dist/okf/types/ConfigurationRecorder.md +7 -6
  278. package/dist/okf/types/ConnectAttachment.md +2 -0
  279. package/dist/okf/types/ConnectQueue.md +5 -1
  280. package/dist/okf/types/ConnectVocabulary.md +28 -0
  281. package/dist/okf/types/ConnectionType.md +24 -0
  282. package/dist/okf/types/ConsentPortal.md +33 -0
  283. package/dist/okf/types/ContactMethod.md +29 -0
  284. package/dist/okf/types/ContainerAssociation.md +26 -0
  285. package/dist/okf/types/ContainerFleet.md +1 -1
  286. package/dist/okf/types/ContainerGroupDefinition.md +1 -1
  287. package/dist/okf/types/Content.md +40 -0
  288. package/dist/okf/types/ContentAssociation.md +28 -0
  289. package/dist/okf/types/CustomDetectionRuleAssociation.md +28 -0
  290. package/dist/okf/types/CustomEntityType.md +4 -9
  291. package/dist/okf/types/Customization.md +22 -0
  292. package/dist/okf/types/CwIntegration.md +31 -0
  293. package/dist/okf/types/DAXParameterGroup.md +3 -8
  294. package/dist/okf/types/DAXSubnetGroup.md +0 -5
  295. package/dist/okf/types/DBClusterEndpoint.md +31 -0
  296. package/dist/okf/types/DBProxyTargetGroup.md +1 -0
  297. package/dist/okf/types/DBSnapshot.md +62 -0
  298. package/dist/okf/types/DLMLifecyclePolicy.md +12 -12
  299. package/dist/okf/types/DLPSetting.md +31 -0
  300. package/dist/okf/types/DMSInstanceProfile.md +1 -1
  301. package/dist/okf/types/DRSLaunchConfigurationTemplate.md +28 -0
  302. package/dist/okf/types/Daemon.md +1 -0
  303. package/dist/okf/types/DataExchangeDataSet.md +29 -0
  304. package/dist/okf/types/DataIntegrationFlow.md +27 -0
  305. package/dist/okf/types/DataMigration.md +1 -1
  306. package/dist/okf/types/DataProvider.md +2 -1
  307. package/dist/okf/types/DataQualityRuleset.md +6 -11
  308. package/dist/okf/types/DataSource.md +23 -0
  309. package/dist/okf/types/Dataset.md +20 -0
  310. package/dist/okf/types/DatasetIntegration.md +23 -0
  311. package/dist/okf/types/DbCluster.md +1 -1
  312. package/dist/okf/types/DbInstance.md +8 -2
  313. package/dist/okf/types/DeadlineBudget.md +29 -0
  314. package/dist/okf/types/DelegationSet.md +23 -0
  315. package/dist/okf/types/DeliveryChannel.md +6 -11
  316. package/dist/okf/types/DevOpsAgentAgentSpace.md +4 -0
  317. package/dist/okf/types/DevOpsAgentService.md +1 -0
  318. package/dist/okf/types/DevOpsAgentTrigger.md +28 -0
  319. package/dist/okf/types/DirectConnectGatewayAttachment.md +2 -0
  320. package/dist/okf/types/Directory.md +60 -0
  321. package/dist/okf/types/DocDBDBClusterParameterGroup.md +5 -10
  322. package/dist/okf/types/DocDBDBSubnetGroup.md +4 -9
  323. package/dist/okf/types/DocDBElasticClusterSnapshot.md +36 -0
  324. package/dist/okf/types/DocumentClassifierEndpoint.md +27 -0
  325. package/dist/okf/types/Domain.md +27 -0
  326. package/dist/okf/types/EKSCertificateAuthority.md +42 -0
  327. package/dist/okf/types/EKSCluster.md +8 -0
  328. package/dist/okf/types/EcSnapshot.md +66 -0
  329. package/dist/okf/types/EmailIdentityCertificate.md +15 -0
  330. package/dist/okf/types/EndpointConfig.md +14 -13
  331. package/dist/okf/types/EntityRecognizer.md +27 -0
  332. package/dist/okf/types/EntityRecognizerEndpoint.md +31 -0
  333. package/dist/okf/types/EnvironmentEC2.md +13 -13
  334. package/dist/okf/types/EvaluationForm.md +1 -0
  335. package/dist/okf/types/Evaluator.md +6 -2
  336. package/dist/okf/types/EventAction.md +26 -0
  337. package/dist/okf/types/EventRule.md +2 -0
  338. package/dist/okf/types/EventSource.md +30 -0
  339. package/dist/okf/types/EventTracker.md +22 -0
  340. package/dist/okf/types/EventsV2EventBus.md +28 -0
  341. package/dist/okf/types/EventsV2ResourcePolicy.md +19 -0
  342. package/dist/okf/types/EventsV2Subscriber.md +39 -0
  343. package/dist/okf/types/ExperimentDefinition.md +39 -0
  344. package/dist/okf/types/ExperimentRun.md +33 -0
  345. package/dist/okf/types/ExperimentTrialComponent.md +13 -11
  346. package/dist/okf/types/FHIRDatastore.md +3 -0
  347. package/dist/okf/types/FSxSnapshot.md +5 -5
  348. package/dist/okf/types/FSxVolume.md +9 -9
  349. package/dist/okf/types/FeaturedResultsSet.md +26 -0
  350. package/dist/okf/types/Feed.md +1 -0
  351. package/dist/okf/types/FieldLevelEncryptionConfig.md +25 -0
  352. package/dist/okf/types/FieldLevelEncryptionProfile.md +22 -0
  353. package/dist/okf/types/FileCache.md +45 -0
  354. package/dist/okf/types/Filter.md +27 -0
  355. package/dist/okf/types/Firewall.md +6 -0
  356. package/dist/okf/types/FlowMediaStream.md +28 -0
  357. package/dist/okf/types/FlowOutput.md +1 -0
  358. package/dist/okf/types/FpgaImage.md +38 -0
  359. package/dist/okf/types/Function.md +2 -2
  360. package/dist/okf/types/Gateway.md +41 -0
  361. package/dist/okf/types/GatewayClusterAssociations.md +23 -0
  362. package/dist/okf/types/GatewayRateLimit.md +26 -0
  363. package/dist/okf/types/GatewayRule.md +32 -0
  364. package/dist/okf/types/GlobalReplicationGroup.md +3 -0
  365. package/dist/okf/types/GlobalResolver.md +1 -1
  366. package/dist/okf/types/GlobalTable.md +1 -0
  367. package/dist/okf/types/GlueConnection.md +5 -4
  368. package/dist/okf/types/GlueSecurityConfiguration.md +1 -6
  369. package/dist/okf/types/GlueSession.md +38 -0
  370. package/dist/okf/types/GlueTable.md +5 -10
  371. package/dist/okf/types/GlueWorkflow.md +5 -10
  372. package/dist/okf/types/Group.md +27 -0
  373. package/dist/okf/types/Harness.md +1 -0
  374. package/dist/okf/types/HostKey.md +33 -0
  375. package/dist/okf/types/HostedZone.md +1 -0
  376. package/dist/okf/types/HttpApi.md +2 -0
  377. package/dist/okf/types/HttpNamespace.md +5 -5
  378. package/dist/okf/types/HubV2.md +1 -0
  379. package/dist/okf/types/HumanTaskUi.md +22 -0
  380. package/dist/okf/types/IPv4Pool.md +28 -0
  381. package/dist/okf/types/ImageBuilder.md +1 -0
  382. package/dist/okf/types/ImageBuilderImage.md +1 -1
  383. package/dist/okf/types/ImagePipeline.md +1 -1
  384. package/dist/okf/types/InferenceComponent.md +5 -1
  385. package/dist/okf/types/InfluxDBBackup.md +65 -0
  386. package/dist/okf/types/InfluxDBCluster.md +3 -0
  387. package/dist/okf/types/InfrastructureConfiguration.md +2 -0
  388. package/dist/okf/types/IngestionDestination.md +28 -0
  389. package/dist/okf/types/InputSecurityGroup.md +6 -4
  390. package/dist/okf/types/InspectorV2Connector.md +38 -0
  391. package/dist/okf/types/InstanceEventWindow.md +25 -0
  392. package/dist/okf/types/InstanceFleetConfig.md +10 -10
  393. package/dist/okf/types/InstanceGroupConfig.md +3 -3
  394. package/dist/okf/types/InstrumentationConfig.md +31 -0
  395. package/dist/okf/types/IntegrationAssociation.md +3 -0
  396. package/dist/okf/types/IoTSiteWiseApplication.md +34 -0
  397. package/dist/okf/types/IoTSiteWiseDataset.md +5 -2
  398. package/dist/okf/types/IoTSiteWiseTask.md +24 -0
  399. package/dist/okf/types/IpamExternalResourceVerificationToken.md +35 -0
  400. package/dist/okf/types/IpamInternetRegistryAssociation.md +32 -0
  401. package/dist/okf/types/Job.md +35 -0
  402. package/dist/okf/types/JobTemplate.md +26 -0
  403. package/dist/okf/types/KinesisChannel.md +31 -0
  404. package/dist/okf/types/KinesisStream.md +1 -0
  405. package/dist/okf/types/LambdaResourcePolicy.md +14 -0
  406. package/dist/okf/types/Lexicon.md +34 -0
  407. package/dist/okf/types/LicenseAssetGroup.md +23 -0
  408. package/dist/okf/types/LicenseConfiguration.md +33 -0
  409. package/dist/okf/types/LicenseServerEndpoint.md +32 -0
  410. package/dist/okf/types/LightsailKeyPair.md +29 -0
  411. package/dist/okf/types/LimitsProfile.md +27 -0
  412. package/dist/okf/types/LocationAzureBlob.md +2 -1
  413. package/dist/okf/types/LocationObjectStorage.md +1 -0
  414. package/dist/okf/types/LogAlarm.md +2 -0
  415. package/dist/okf/types/MGNConnector.md +23 -0
  416. package/dist/okf/types/MGNLaunchConfigurationTemplate.md +37 -0
  417. package/dist/okf/types/MLTransform.md +15 -15
  418. package/dist/okf/types/MWAAServerlessWorkflow.md +3 -0
  419. package/dist/okf/types/ManagedNotificationAccountContactAssociation.md +1 -0
  420. package/dist/okf/types/ManagedNotificationAdditionalChannelAssociation.md +1 -0
  421. package/dist/okf/types/MediaConvertJobTemplate.md +11 -13
  422. package/dist/okf/types/MediaConvertQueue.md +8 -10
  423. package/dist/okf/types/MediaInsightsPipelineConfiguration.md +28 -0
  424. package/dist/okf/types/MediaLiveInput.md +41 -18
  425. package/dist/okf/types/MediaPackageV2Channel.md +3 -0
  426. package/dist/okf/types/MediaPackageV2OriginEndpoint.md +1 -0
  427. package/dist/okf/types/MediaPipelineKinesisVideoStreamPool.md +28 -0
  428. package/dist/okf/types/MediaTailorFunction.md +27 -0
  429. package/dist/okf/types/MedicalVocabulary.md +21 -0
  430. package/dist/okf/types/Member.md +26 -0
  431. package/dist/okf/types/Memory.md +6 -0
  432. package/dist/okf/types/MemoryDBSnapshot.md +29 -0
  433. package/dist/okf/types/Metric.md +59 -0
  434. package/dist/okf/types/MetricAttribution.md +23 -0
  435. package/dist/okf/types/MicrosoftAD.md +11 -11
  436. package/dist/okf/types/MigrationProject.md +8 -1
  437. package/dist/okf/types/Monitor.md +26 -0
  438. package/dist/okf/types/NFSFileShare.md +44 -0
  439. package/dist/okf/types/NeptuneGraphGraph.md +1 -0
  440. package/dist/okf/types/NetworkConnector.md +4 -0
  441. package/dist/okf/types/NetworkFlowMonitorScope.md +23 -0
  442. package/dist/okf/types/NetworkMigrationDefinition.md +31 -0
  443. package/dist/okf/types/NetworkSecurityManagerDeployment.md +31 -0
  444. package/dist/okf/types/NetworkSecurityManagerPolicy.md +32 -0
  445. package/dist/okf/types/NetworkSecurityManagerScope.md +29 -0
  446. package/dist/okf/types/NotebookInstance.md +18 -18
  447. package/dist/okf/types/NotebookInstanceLifecycleConfig.md +6 -5
  448. package/dist/okf/types/NotifyConfiguration.md +35 -0
  449. package/dist/okf/types/OTelEnrichment.md +2 -0
  450. package/dist/okf/types/OnlineEvaluationConfig.md +0 -1
  451. package/dist/okf/types/OrganizationConfigRule.md +7 -7
  452. package/dist/okf/types/Outpost.md +32 -0
  453. package/dist/okf/types/ParallelData.md +40 -0
  454. package/dist/okf/types/Partition.md +5 -5
  455. package/dist/okf/types/PaymentConnector.md +4 -1
  456. package/dist/okf/types/Pentest.md +1 -0
  457. package/dist/okf/types/PerfReports.md +28 -0
  458. package/dist/okf/types/PermissionAssociation.md +30 -0
  459. package/dist/okf/types/PersonalizeDataset.md +1 -0
  460. package/dist/okf/types/PersonalizeDatasetGroup.md +1 -0
  461. package/dist/okf/types/PersonalizeSchema.md +1 -0
  462. package/dist/okf/types/Pipeline.md +25 -0
  463. package/dist/okf/types/PlaybackConfiguration.md +1 -0
  464. package/dist/okf/types/PolicyAssociation.md +1 -1
  465. package/dist/okf/types/PolicyGrant.md +2 -2
  466. package/dist/okf/types/PolicyPrincipalAttachment.md +2 -7
  467. package/dist/okf/types/PortalProduct.md +24 -0
  468. package/dist/okf/types/PrefetchSchedule.md +25 -0
  469. package/dist/okf/types/PricingPlanManagerSubscription.md +31 -0
  470. package/dist/okf/types/PrincipalAssociation.md +27 -0
  471. package/dist/okf/types/PrivateDnsNamespace.md +8 -8
  472. package/dist/okf/types/PrivateVirtualInterface.md +1 -0
  473. package/dist/okf/types/ProcurementPortalPreference.md +45 -0
  474. package/dist/okf/types/Program.md +33 -0
  475. package/dist/okf/types/ProjectMembership.md +1 -1
  476. package/dist/okf/types/ProtocolsList.md +26 -0
  477. package/dist/okf/types/PublicDnsNamespace.md +7 -7
  478. package/dist/okf/types/PublicVirtualInterface.md +1 -0
  479. package/dist/okf/types/QEV2IdcApplication.md +25 -0
  480. package/dist/okf/types/QueryLoggingConfig.md +21 -0
  481. package/dist/okf/types/QuerySuggestionsBlockList.md +25 -0
  482. package/dist/okf/types/QuickSightAssignment.md +24 -0
  483. package/dist/okf/types/RAMResourceAssociation.md +27 -0
  484. package/dist/okf/types/RDSClusterSnapshot.md +54 -0
  485. package/dist/okf/types/RDSDBParameterGroup.md +5 -0
  486. package/dist/okf/types/RDSDeployment.md +41 -0
  487. package/dist/okf/types/RcsAgent.md +38 -0
  488. package/dist/okf/types/ReceiptRule.md +5 -5
  489. package/dist/okf/types/ReceiptRuleSet.md +1 -6
  490. package/dist/okf/types/RecommenderFilter.md +27 -0
  491. package/dist/okf/types/RecommenderSchema.md +25 -0
  492. package/dist/okf/types/RecordSet.md +16 -22
  493. package/dist/okf/types/RecoveryPlan.md +28 -0
  494. package/dist/okf/types/RedshiftIdcApplication.md +31 -0
  495. package/dist/okf/types/RedshiftSnapshot.md +59 -0
  496. package/dist/okf/types/RegistrationAttachment.md +28 -0
  497. package/dist/okf/types/Registry.md +41 -0
  498. package/dist/okf/types/RegistryRecord.md +38 -0
  499. package/dist/okf/types/RelatedItem.md +24 -0
  500. package/dist/okf/types/ReplicationConfigurationTemplate.md +35 -0
  501. package/dist/okf/types/ReplicationSubnetGroup.md +4 -9
  502. package/dist/okf/types/ReplicationTask.md +14 -14
  503. package/dist/okf/types/ReportGenerator.md +29 -0
  504. package/dist/okf/types/ReportGroup.md +1 -3
  505. package/dist/okf/types/ResilienceHubV2Policy.md +1 -0
  506. package/dist/okf/types/ResilienceHubV2Service.md +1 -0
  507. package/dist/okf/types/ResourceConfiguration.md +1 -1
  508. package/dist/okf/types/ResourceMetricsConfiguration.md +21 -0
  509. package/dist/okf/types/RestApi.md +1 -0
  510. package/dist/okf/types/RetrievalInstruction.md +32 -0
  511. package/dist/okf/types/RouterOutput.md +1 -0
  512. package/dist/okf/types/Rule.md +31 -0
  513. package/dist/okf/types/RunCache.md +29 -0
  514. package/dist/okf/types/Runtime.md +2 -1
  515. package/dist/okf/types/SCNInstance.md +33 -0
  516. package/dist/okf/types/SDBDomain.md +2 -2
  517. package/dist/okf/types/SMBFileShare.md +49 -0
  518. package/dist/okf/types/SageMakerArtifact.md +27 -0
  519. package/dist/okf/types/SageMakerEndpoint.md +0 -1
  520. package/dist/okf/types/ScalableTarget.md +1 -0
  521. package/dist/okf/types/ScalingPlan.md +6 -6
  522. package/dist/okf/types/ScheduledReport.md +31 -0
  523. package/dist/okf/types/SecondaryNetwork.md +26 -0
  524. package/dist/okf/types/SecurityAgentArtifact.md +25 -0
  525. package/dist/okf/types/SecurityAgentIntegration.md +31 -0
  526. package/dist/okf/types/Server.md +1 -0
  527. package/dist/okf/types/ServerlessCache.md +2 -0
  528. package/dist/okf/types/ServerlessCacheSnapshot.md +31 -0
  529. package/dist/okf/types/ServerlessRepoApplication.md +32 -0
  530. package/dist/okf/types/ServiceDiscoveryInstance.md +3 -7
  531. package/dist/okf/types/SipMediaApplication.md +27 -0
  532. package/dist/okf/types/SiteToSiteVpnAttachment.md +2 -0
  533. package/dist/okf/types/SnapshotCopyGrant.md +20 -0
  534. package/dist/okf/types/Solution.md +1 -0
  535. package/dist/okf/types/SourceAssociation.md +25 -0
  536. package/dist/okf/types/SourceCredential.md +6 -6
  537. package/dist/okf/types/SourceNetwork.md +23 -0
  538. package/dist/okf/types/StackFleetAssociation.md +2 -7
  539. package/dist/okf/types/StorageTierPolicy.md +20 -0
  540. package/dist/okf/types/StorageVirtualMachine.md +9 -9
  541. package/dist/okf/types/Stream.md +28 -0
  542. package/dist/okf/types/SubnetCidrReservation.md +26 -0
  543. package/dist/okf/types/SubscriptionProvider.md +26 -0
  544. package/dist/okf/types/SupportPermit.md +29 -0
  545. package/dist/okf/types/Table.md +2 -1
  546. package/dist/okf/types/TableOptimizer.md +5 -10
  547. package/dist/okf/types/Tape.md +31 -0
  548. package/dist/okf/types/Template.md +36 -0
  549. package/dist/okf/types/Tenant.md +2 -0
  550. package/dist/okf/types/Terminology.md +39 -0
  551. package/dist/okf/types/Thesaurus.md +25 -0
  552. package/dist/okf/types/ThingPrincipalAttachment.md +3 -8
  553. package/dist/okf/types/Topic.md +1 -0
  554. package/dist/okf/types/TopicRuleDestination.md +1 -0
  555. package/dist/okf/types/TrafficPolicy.md +26 -0
  556. package/dist/okf/types/TrafficPolicyInstance.md +28 -0
  557. package/dist/okf/types/TranscribeVocabulary.md +27 -0
  558. package/dist/okf/types/TransitGatewayRouteTableAttachment.md +2 -0
  559. package/dist/okf/types/TransitVirtualInterface.md +1 -0
  560. package/dist/okf/types/Tunnel.md +25 -0
  561. package/dist/okf/types/UsageLimit.md +26 -0
  562. package/dist/okf/types/UseCase.md +23 -0
  563. package/dist/okf/types/User.md +47 -0
  564. package/dist/okf/types/VPCEndpoint.md +1 -1
  565. package/dist/okf/types/VPCEndpointService.md +6 -0
  566. package/dist/okf/types/VPCPeeringConnection.md +2 -2
  567. package/dist/okf/types/VPNConcentrator.md +1 -1
  568. package/dist/okf/types/VPNConnection.md +1 -1
  569. package/dist/okf/types/VerifiedDestinationNumber.md +25 -0
  570. package/dist/okf/types/View.md +27 -0
  571. package/dist/okf/types/VoiceConnector.md +30 -0
  572. package/dist/okf/types/Volume.md +44 -0
  573. package/dist/okf/types/Vpc.md +1 -1
  574. package/dist/okf/types/VpcAttachment.md +2 -0
  575. package/dist/okf/types/WebFunction.md +27 -0
  576. package/dist/okf/types/WebFunctionEndpoint.md +44 -0
  577. package/dist/okf/types/WebFunctionRevision.md +32 -0
  578. package/dist/okf/types/WickrNetwork.md +27 -0
  579. package/dist/okf/types/Worker.md +29 -0
  580. package/dist/okf/types/Workforce.md +26 -0
  581. package/dist/okf/types/Workload.md +35 -0
  582. package/dist/okf/types/WorkloadEstimate.md +35 -0
  583. package/dist/okf/types/Workspace.md +28 -0
  584. package/dist/okf/types/Workteam.md +8 -8
  585. package/dist/op/activities/aws-apply.js +214 -0
  586. package/dist/op/activities/floci.js +97 -0
  587. package/dist/op/activities/index.js +32 -0
  588. package/dist/op/builders.js +50 -0
  589. package/dist/ownership.js +52 -0
  590. package/dist/package-cli.js +25 -0
  591. package/dist/parameter.js +19 -0
  592. package/dist/plugin.d.ts.map +1 -1
  593. package/dist/plugin.js +1012 -0
  594. package/dist/properties.js +166 -0
  595. package/dist/pseudo.js +25 -0
  596. package/dist/receipt-store.d.ts.map +1 -1
  597. package/dist/receipt-store.js +233 -0
  598. package/dist/reference-catalog.js +106 -0
  599. package/dist/rules/ext001.ts +3 -3
  600. package/dist/rules/waw016.ts +2 -2
  601. package/dist/serializer.js +529 -0
  602. package/dist/spec/fetch.js +193 -0
  603. package/dist/spec/parse.js +259 -0
  604. package/dist/spec/pin.js +185 -0
  605. package/dist/spec/pinned-types.json +203 -0
  606. package/dist/stack-errors.js +14 -0
  607. package/dist/taggable.d.ts.map +1 -1
  608. package/dist/taggable.js +33 -0
  609. package/dist/teardown.js +199 -0
  610. package/dist/template-sections.js +53 -0
  611. package/dist/template-transform.js +50 -0
  612. package/dist/types/index.d.ts +18847 -1124
  613. package/dist/validate-cli.js +16 -0
  614. package/dist/validate.js +33 -0
  615. package/package.json +9 -9
  616. package/src/agentcore/trace-fetch.ts +2 -1
  617. package/src/api/credential-chain.ts +119 -9
  618. package/src/api/credential-isolation.test.ts +72 -0
  619. package/src/api/read-client-chain.test.ts +159 -0
  620. package/src/api/read-client.ts +42 -6
  621. package/src/api/sigv4.ts +4 -4
  622. package/src/caller-identity.ts +3 -5
  623. package/src/codegen/any-budget.test.ts +12 -2
  624. package/src/codegen/generate.ts +9 -0
  625. package/src/codegen/package.ts +2 -2
  626. package/src/codegen/patches.test.ts +95 -0
  627. package/src/codegen/patches.ts +53 -9
  628. package/src/codegen/property-overlay.json +1 -16
  629. package/src/components/apply.ts +218 -6
  630. package/src/components/cfn-plan-floci.e2e.test.ts +76 -0
  631. package/src/components/cfn-plan.test.ts +225 -16
  632. package/src/components/cloud-executor.ts +73 -25
  633. package/src/deep-observe.ts +2 -1
  634. package/src/disruption.ts +2 -1
  635. package/src/generated/index.d.ts +18847 -1124
  636. package/src/generated/index.ts +1376 -161
  637. package/src/generated/lexicon-aws.json +17359 -784
  638. package/src/health.test.ts +136 -0
  639. package/src/health.ts +281 -0
  640. package/src/identity-observe.ts +2 -1
  641. package/src/lint/post-synth/ext001.ts +3 -3
  642. package/src/lint/post-synth/waw016.ts +2 -2
  643. package/src/lsp/completions.ts +2 -1
  644. package/src/lsp/hover.ts +2 -1
  645. package/src/plugin.ts +10 -1
  646. package/src/receipt-store.ts +2 -1
  647. package/src/spec/pin.ts +3 -3
  648. package/src/spec/pinned-types.json +203 -0
  649. package/src/taggable.ts +2 -2
@@ -0,0 +1,34 @@
1
+ import { hasOwnershipMarker, tagArrayToMap } from "@intentius/chant/ownership";
2
+ import { AWS_TAG_OWNERSHIP_KEYS } from "../ownership.js";
3
+ import { CFParser } from "./parser.js";
4
+ /**
5
+ * Map a live CloudFormation template body to full-fidelity export IR.
6
+ *
7
+ * `aws cloudformation get-template` returns the template body as a JSON object
8
+ * (for JSON templates) or a string (for YAML). `CFParser` already turns either
9
+ * into `TemplateIR` — the same IR the import path uses — so the result feeds
10
+ * `templateGenerator()` (CFGenerator) unchanged. Pure: all I/O stays in the
11
+ * caller.
12
+ */
13
+ export function parseStackTemplate(templateBody, selector, owned) {
14
+ const content = typeof templateBody === "string" ? templateBody : JSON.stringify(templateBody);
15
+ const ir = new CFParser().parse(content);
16
+ const hasSelector = selector && (selector.type !== undefined || selector.name !== undefined);
17
+ if (!hasSelector && !owned)
18
+ return ir;
19
+ return {
20
+ ...ir,
21
+ resources: ir.resources.filter((r) => {
22
+ if (selector?.type !== undefined && r.type !== selector.type)
23
+ return false;
24
+ if (selector?.name !== undefined && r.logicalId !== selector.name)
25
+ return false;
26
+ if (owned) {
27
+ const tags = r.properties.Tags;
28
+ if (!hasOwnershipMarker(tagArrayToMap(tags), AWS_TAG_OWNERSHIP_KEYS))
29
+ return false;
30
+ }
31
+ return true;
32
+ }),
33
+ };
34
+ }
@@ -0,0 +1,394 @@
1
+ import { BaseValueParser } from "@intentius/chant/import/base-parser";
2
+ import yaml from "js-yaml";
3
+ /**
4
+ * Custom YAML schema for CloudFormation shorthand tags (!Ref, !Sub, !GetAtt, etc.)
5
+ */
6
+ const cfnYamlTypes = [
7
+ new yaml.Type("!Ref", {
8
+ kind: "scalar",
9
+ construct: (data) => ({ Ref: data }),
10
+ }),
11
+ new yaml.Type("!Sub", {
12
+ kind: "scalar",
13
+ construct: (data) => ({ "Fn::Sub": data }),
14
+ }),
15
+ new yaml.Type("!Sub", {
16
+ kind: "sequence",
17
+ construct: (data) => ({ "Fn::Sub": data }),
18
+ }),
19
+ new yaml.Type("!GetAtt", {
20
+ kind: "scalar",
21
+ // `!GetAtt Db.Endpoint.Address` names the attribute `Endpoint.Address`:
22
+ // the logical id ends at the first dot.
23
+ construct: (data) => {
24
+ const dot = data.indexOf(".");
25
+ return { "Fn::GetAtt": dot < 0 ? [data] : [data.slice(0, dot), data.slice(dot + 1)] };
26
+ },
27
+ }),
28
+ new yaml.Type("!GetAtt", {
29
+ kind: "sequence",
30
+ construct: (data) => ({ "Fn::GetAtt": data }),
31
+ }),
32
+ new yaml.Type("!Join", {
33
+ kind: "sequence",
34
+ construct: (data) => ({ "Fn::Join": data }),
35
+ }),
36
+ new yaml.Type("!Select", {
37
+ kind: "sequence",
38
+ construct: (data) => ({ "Fn::Select": data }),
39
+ }),
40
+ new yaml.Type("!Split", {
41
+ kind: "sequence",
42
+ construct: (data) => ({ "Fn::Split": data }),
43
+ }),
44
+ new yaml.Type("!If", {
45
+ kind: "sequence",
46
+ construct: (data) => ({ "Fn::If": data }),
47
+ }),
48
+ new yaml.Type("!Equals", {
49
+ kind: "sequence",
50
+ construct: (data) => ({ "Fn::Equals": data }),
51
+ }),
52
+ new yaml.Type("!Not", {
53
+ kind: "sequence",
54
+ construct: (data) => ({ "Fn::Not": data }),
55
+ }),
56
+ new yaml.Type("!And", {
57
+ kind: "sequence",
58
+ construct: (data) => ({ "Fn::And": data }),
59
+ }),
60
+ new yaml.Type("!Or", {
61
+ kind: "sequence",
62
+ construct: (data) => ({ "Fn::Or": data }),
63
+ }),
64
+ new yaml.Type("!FindInMap", {
65
+ kind: "sequence",
66
+ construct: (data) => ({ "Fn::FindInMap": data }),
67
+ }),
68
+ new yaml.Type("!Base64", {
69
+ kind: "scalar",
70
+ construct: (data) => ({ "Fn::Base64": data }),
71
+ }),
72
+ new yaml.Type("!Base64", {
73
+ kind: "mapping",
74
+ construct: (data) => ({ "Fn::Base64": data }),
75
+ }),
76
+ new yaml.Type("!Cidr", {
77
+ kind: "sequence",
78
+ construct: (data) => ({ "Fn::Cidr": data }),
79
+ }),
80
+ new yaml.Type("!ImportValue", {
81
+ kind: "scalar",
82
+ construct: (data) => ({ "Fn::ImportValue": data }),
83
+ }),
84
+ new yaml.Type("!ImportValue", {
85
+ kind: "mapping",
86
+ construct: (data) => ({ "Fn::ImportValue": data }),
87
+ }),
88
+ new yaml.Type("!GetAZs", {
89
+ kind: "scalar",
90
+ construct: (data) => ({ "Fn::GetAZs": data }),
91
+ }),
92
+ new yaml.Type("!GetAZs", {
93
+ kind: "mapping",
94
+ construct: (data) => ({ "Fn::GetAZs": data }),
95
+ }),
96
+ new yaml.Type("!Transform", {
97
+ kind: "mapping",
98
+ construct: (data) => ({ "Fn::Transform": data }),
99
+ }),
100
+ new yaml.Type("!Condition", {
101
+ kind: "scalar",
102
+ construct: (data) => ({ Condition: data }),
103
+ }),
104
+ ];
105
+ const CF_SCHEMA = yaml.DEFAULT_SCHEMA.extend(cfnYamlTypes);
106
+ /** Parameter keys import carries besides Type, Description and Default. */
107
+ const PARAMETER_CONSTRAINT_KEYS = [
108
+ "AllowedValues",
109
+ "AllowedPattern",
110
+ "ConstraintDescription",
111
+ "MinLength",
112
+ "MaxLength",
113
+ "MinValue",
114
+ "MaxValue",
115
+ "NoEcho",
116
+ ];
117
+ /** Resource attributes import carries besides Type, Properties, Metadata and Condition. */
118
+ const RESOURCE_ATTRIBUTE_KEYS = ["DependsOn", "DeletionPolicy", "UpdateReplacePolicy", "UpdatePolicy", "CreationPolicy"];
119
+ /**
120
+ * Parser for CloudFormation JSON templates.
121
+ * Extends BaseValueParser for generic recursive value walking;
122
+ * overrides dispatchIntrinsic with the CFN-specific dispatch table.
123
+ */
124
+ export class CFParser extends BaseValueParser {
125
+ constructor() {
126
+ super(...arguments);
127
+ /**
128
+ * Parse the Conditions section (#2069). Inside a condition expression the
129
+ * single-key `{ "Condition": "<name>" }` form references another declared
130
+ * condition; `inConditionExpression` scopes that dispatch to this section
131
+ * so a resource property that happens to hold a single-key `Condition`
132
+ * object is left alone.
133
+ */
134
+ this.inConditionExpression = false;
135
+ }
136
+ /**
137
+ * Parse CF JSON content into intermediate representation
138
+ */
139
+ parse(content) {
140
+ let parsed;
141
+ try {
142
+ parsed = JSON.parse(content);
143
+ }
144
+ catch {
145
+ parsed = yaml.load(content, { schema: CF_SCHEMA });
146
+ }
147
+ const template = parsed;
148
+ const parameters = this.parseParameters(template.Parameters ?? {});
149
+ const conditions = this.parseConditions(template.Conditions ?? {});
150
+ const resources = this.parseResources(template.Resources ?? {});
151
+ const outputs = this.parseOutputs(template.Outputs ?? {});
152
+ const warnings = this.collectDroppedSectionWarnings(template);
153
+ return {
154
+ parameters,
155
+ conditions: conditions.length > 0 ? conditions : undefined,
156
+ resources,
157
+ outputs: outputs.length > 0 ? outputs : undefined,
158
+ warnings: warnings.length > 0 ? warnings : undefined,
159
+ metadata: {
160
+ version: template.AWSTemplateFormatVersion ?? "2010-09-09",
161
+ description: template.Description,
162
+ ...(template.Metadata !== undefined ? { templateMetadata: this.parseValue(template.Metadata) } : {}),
163
+ ...(template.Mappings !== undefined ? { mappings: template.Mappings } : {}),
164
+ },
165
+ };
166
+ }
167
+ collectDroppedSectionWarnings(template) {
168
+ const warnings = [];
169
+ for (const key of Object.keys(template)) {
170
+ if (!CFParser.CARRIED_SECTIONS.has(key)) {
171
+ warnings.push(`Template section "${key}" is not carried by import — it is dropped from the generated source`);
172
+ }
173
+ }
174
+ return warnings;
175
+ }
176
+ parseConditions(conditions) {
177
+ return Object.entries(conditions).map(([name, expression]) => {
178
+ this.inConditionExpression = true;
179
+ try {
180
+ return { name, expression: this.parseValue(expression) };
181
+ }
182
+ finally {
183
+ this.inConditionExpression = false;
184
+ }
185
+ });
186
+ }
187
+ /**
188
+ * Parse the Outputs section (#2069).
189
+ */
190
+ parseOutputs(outputs) {
191
+ return Object.entries(outputs)
192
+ .filter(([_, output]) => typeof output === "object" && output !== null)
193
+ .map(([name, output]) => ({
194
+ name,
195
+ value: this.parseValue(output.Value),
196
+ description: output.Description,
197
+ exportName: output.Export?.Name !== undefined ? this.parseValue(output.Export.Name) : undefined,
198
+ condition: typeof output.Condition === "string" ? output.Condition : undefined,
199
+ }));
200
+ }
201
+ /**
202
+ * Parse parameters section
203
+ */
204
+ parseParameters(params) {
205
+ return Object.entries(params).map(([name, param]) => {
206
+ const constraints = Object.fromEntries(PARAMETER_CONSTRAINT_KEYS.filter((k) => param[k] !== undefined).map((k) => [k, param[k]]));
207
+ return {
208
+ name,
209
+ type: param.Type,
210
+ description: param.Description,
211
+ defaultValue: param.Default,
212
+ required: param.Default === undefined,
213
+ ...(Object.keys(constraints).length > 0 ? { constraints } : {}),
214
+ };
215
+ });
216
+ }
217
+ /**
218
+ * Parse resources section
219
+ */
220
+ parseResources(resources) {
221
+ return Object.entries(resources)
222
+ .filter(([_, resource]) => typeof resource?.Type === "string")
223
+ .map(([logicalId, resource]) => {
224
+ const attributes = Object.fromEntries(RESOURCE_ATTRIBUTE_KEYS.filter((k) => resource[k] !== undefined).map((k) => [k, this.parseValue(resource[k])]));
225
+ return {
226
+ logicalId,
227
+ type: resource.Type,
228
+ properties: this.parseProperties(resource.Properties ?? {}),
229
+ metadata: resource.Metadata !== undefined ? this.parseValue(resource.Metadata) : undefined,
230
+ condition: typeof resource.Condition === "string" ? resource.Condition : undefined,
231
+ ...(Object.keys(attributes).length > 0 ? { attributes } : {}),
232
+ };
233
+ });
234
+ }
235
+ /**
236
+ * Parse resource properties, handling intrinsic functions
237
+ */
238
+ parseProperties(props) {
239
+ const result = {};
240
+ for (const [key, value] of Object.entries(props)) {
241
+ result[key] = this.parseValue(value);
242
+ }
243
+ return result;
244
+ }
245
+ /**
246
+ * CFN-specific intrinsic dispatch table.
247
+ */
248
+ dispatchIntrinsic(key, value, _obj) {
249
+ // `{ "Condition": "<name>" }` — only valid inside the Conditions section
250
+ // (#2069); see parseConditions for the scoping.
251
+ if (key === "Condition" && this.inConditionExpression && typeof value === "string") {
252
+ return { __intrinsic: "ConditionRef", name: value };
253
+ }
254
+ if (key === "Ref") {
255
+ return { __intrinsic: "Ref", name: value };
256
+ }
257
+ if (key === "Fn::GetAtt") {
258
+ if (Array.isArray(value) && value.length === 2) {
259
+ return { __intrinsic: "GetAtt", logicalId: value[0], attribute: value[1] };
260
+ }
261
+ if (typeof value === "string" && value.indexOf(".") > 0) {
262
+ const dot = value.indexOf(".");
263
+ return { __intrinsic: "GetAtt", logicalId: value.slice(0, dot), attribute: value.slice(dot + 1) };
264
+ }
265
+ }
266
+ if (key === "Fn::Sub") {
267
+ if (typeof value === "string") {
268
+ return { __intrinsic: "Sub", template: value };
269
+ }
270
+ if (Array.isArray(value) && value.length >= 1) {
271
+ return { __intrinsic: "Sub", template: value[0], variables: value[1] };
272
+ }
273
+ }
274
+ if (key === "Fn::If") {
275
+ const ifValue = value;
276
+ return {
277
+ __intrinsic: "If",
278
+ condition: ifValue[0],
279
+ valueIfTrue: this.parseValue(ifValue[1]),
280
+ valueIfFalse: this.parseValue(ifValue[2]),
281
+ };
282
+ }
283
+ if (key === "Fn::Join") {
284
+ const joinValue = value;
285
+ const delimiter = joinValue[0];
286
+ const source = joinValue[1];
287
+ return {
288
+ __intrinsic: "Join",
289
+ delimiter,
290
+ values: Array.isArray(source)
291
+ ? source.map((v) => this.parseValue(v))
292
+ : [this.parseValue(source)],
293
+ };
294
+ }
295
+ if (key === "Fn::Select") {
296
+ // The index is kept as written (0 or "0"). A list source is `values`;
297
+ // anything else (a Ref to a list parameter, Fn::GetAZs, Fn::Split) is
298
+ // `source`, the list itself. Wrapping it in a list would select the
299
+ // list rather than an item of it.
300
+ const selectValue = value;
301
+ const index = selectValue[0];
302
+ const source = selectValue[1];
303
+ if (Array.isArray(source)) {
304
+ return {
305
+ __intrinsic: "Select",
306
+ index,
307
+ values: source.map((v) => this.parseValue(v)),
308
+ };
309
+ }
310
+ return {
311
+ __intrinsic: "Select",
312
+ index,
313
+ source: this.parseValue(source),
314
+ };
315
+ }
316
+ if (key === "Fn::Split") {
317
+ const splitValue = value;
318
+ return {
319
+ __intrinsic: "Split",
320
+ delimiter: splitValue[0],
321
+ source: this.parseValue(splitValue[1]),
322
+ };
323
+ }
324
+ if (key === "Fn::Base64") {
325
+ return { __intrinsic: "Base64", value: this.parseValue(value) };
326
+ }
327
+ if (key === "Fn::FindInMap") {
328
+ const mapValue = value;
329
+ if (!Array.isArray(mapValue) || mapValue.length !== 3) {
330
+ throw new Error(`Fn::FindInMap takes [MapName, TopLevelKey, SecondLevelKey]; this one has ${JSON.stringify(value)} ` +
331
+ "(a fourth DefaultValue argument needs AWS::LanguageExtensions, which import does not carry)");
332
+ }
333
+ return {
334
+ __intrinsic: "FindInMap",
335
+ mapName: this.parseValue(mapValue[0]),
336
+ firstKey: this.parseValue(mapValue[1]),
337
+ secondKey: this.parseValue(mapValue[2]),
338
+ };
339
+ }
340
+ if (key === "Fn::GetAZs") {
341
+ return { __intrinsic: "GetAZs", region: this.parseValue(value) };
342
+ }
343
+ if (key === "Fn::ImportValue") {
344
+ return { __intrinsic: "ImportValue", value: this.parseValue(value) };
345
+ }
346
+ if (key === "Fn::Cidr") {
347
+ const cidrValue = value;
348
+ return {
349
+ __intrinsic: "Cidr",
350
+ ipBlock: this.parseValue(cidrValue[0]),
351
+ count: this.parseValue(cidrValue[1]),
352
+ cidrBits: this.parseValue(cidrValue[2]),
353
+ };
354
+ }
355
+ if (key === "Fn::Transform") {
356
+ return { __intrinsic: "Transform", value };
357
+ }
358
+ if (key === "Fn::Equals") {
359
+ const eqValue = value;
360
+ return {
361
+ __intrinsic: "Equals",
362
+ left: this.parseValue(eqValue[0]),
363
+ right: this.parseValue(eqValue[1]),
364
+ };
365
+ }
366
+ if (key === "Fn::Not") {
367
+ const notValue = value;
368
+ return { __intrinsic: "Not", condition: this.parseValue(notValue[0]) };
369
+ }
370
+ if (key === "Fn::And") {
371
+ const andValue = value;
372
+ return { __intrinsic: "And", conditions: andValue.map((v) => this.parseValue(v)) };
373
+ }
374
+ if (key === "Fn::Or") {
375
+ const orValue = value;
376
+ return { __intrinsic: "Or", conditions: orValue.map((v) => this.parseValue(v)) };
377
+ }
378
+ return null;
379
+ }
380
+ }
381
+ /**
382
+ * Template sections import carries. Anything else is named in a warning
383
+ * rather than dropped silently (#2069).
384
+ */
385
+ CFParser.CARRIED_SECTIONS = new Set([
386
+ "AWSTemplateFormatVersion",
387
+ "Description",
388
+ "Metadata",
389
+ "Mappings",
390
+ "Parameters",
391
+ "Conditions",
392
+ "Resources",
393
+ "Outputs",
394
+ ]);
package/dist/index.js ADDED
@@ -0,0 +1,69 @@
1
+ // Parameter
2
+ export { Parameter } from "./parameter.js";
3
+ // Condition (#2068) — the Conditions-section declarable
4
+ export { Condition, isCondition, CONDITION_ENTITY_TYPE } from "./condition.js";
5
+ // Mapping — the Mappings-section declarable, read with FindInMap
6
+ export { Mapping, isMapping, MAPPING_ENTITY_TYPE } from "./mapping.js";
7
+ // Default Tags
8
+ export { defaultTags, isDefaultTags, DEFAULT_TAGS_MARKER } from "./default-tags.js";
9
+ export { templateTransform, isTemplateTransform, TEMPLATE_TRANSFORM_MARKER } from "./template-transform.js";
10
+ export { templateDescription, templateMetadata, isTemplateSection, TEMPLATE_SECTION_MARKER } from "./template-sections.js";
11
+ // Effect receipts (#1835, epic #1703): the aws materialization row
12
+ // (`AWS::SSM::Parameter`, plain String, path derived from the ownership
13
+ // marker) and the SSM-backed receipt store behind the `effect()` op step.
14
+ export { EffectReceipt, receiptParameterName, AWS_EFFECT_RECEIPT_ENTITY_TYPE, EFFECT_RECEIPTS_METADATA_KEY, RECEIPT_PATH_PREFIX, RECEIPT_UNRESOLVED_VALUE_NOTE, } from "./effect-receipt-row.js";
15
+ export { awsReceiptStore, observeReceiptRows, ssmGetParameter, ssmPutParameter } from "./receipt-store.js";
16
+ // Typed Op step-builder wrappers (chant #1288 Stage 2) — awsApply/awsDelete/
17
+ // flociUp/flociDown with authoring-time types derived from this lexicon's
18
+ // own *Args interfaces (see ./op/builders.ts's module doc for why these live
19
+ // here rather than in core). Opt-in: `@intentius/chant/op`'s same-named
20
+ // exports are core's original untyped builders, unchanged, for
21
+ // cloud-agnostic authoring.
22
+ export { awsApply, awsDelete, flociUp, flociDown } from "./op/builders.js";
23
+ // Serializer
24
+ export { awsSerializer } from "./serializer.js";
25
+ // Nested Stacks
26
+ export { nestedStack, isNestedStackInstance, NestedStackOutputRef, isNestedStackOutputRef, NESTED_STACK_MARKER } from "./nested-stack.js";
27
+ // Re-export core child project, stack output, and lexicon output primitives
28
+ export { isChildProject, CHILD_PROJECT_MARKER } from "@intentius/chant/child-project";
29
+ export { stackOutput, isStackOutput, STACK_OUTPUT_MARKER } from "@intentius/chant/stack-output";
30
+ export { output, isLexiconOutput } from "@intentius/chant/lexicon-output";
31
+ // Plugin
32
+ export { awsPlugin } from "./plugin.js";
33
+ // Deep observation (#1015): the Cloud Control reader and the noise rules it
34
+ // shares with core's normalization pass.
35
+ export { observeResourcesDeepAws, awsDeepNormalizationHooks, hasOwnershipMarker, DEEP_READABLE_TYPES, AWS_READ_ONLY_NAMES, AWS_SERVICE_DEFAULTS, } from "./deep-observe.js";
36
+ // The native read transport (#1206) — the applier's own transport, pointed at
37
+ // CloudFormation Query and Cloud Control. `parseCloudControlResource` used to
38
+ // live in ./deep-observe and parsed AWS CLI stdout; the reader no longer speaks
39
+ // that wire format, so `parseResourceDescription` (which takes the API's own
40
+ // `ResourceDescription` object) replaces it.
41
+ export { describeStackResources, describeStackOutputs, describeStackDetail, getResource, listResources, parseResourceDescription, resolveEndpointOverride, serviceEndpointEnvVar, AwsReadError, } from "./api/read-client.js";
42
+ // SigV4 (#1686). Exported as its own surface because it is deliberately not
43
+ // specific to this transport: cedar's AVP client is the next caller, and the
44
+ // point of the module is that there is one signer rather than one per lexicon.
45
+ export { signRequest, resolveCredentials, EMPTY_PAYLOAD_SHA256, } from "./api/sigv4.js";
46
+ // Intrinsics
47
+ export { Sub, Ref, GetAtt, If, Join, Select, Split, Base64, GetAZs, Equals, And, Or, Not, SubIntrinsic, RefIntrinsic, GetAttIntrinsic, IfIntrinsic, JoinIntrinsic, SelectIntrinsic, SplitIntrinsic, Base64Intrinsic, GetAZsIntrinsic, EqualsIntrinsic, AndIntrinsic, OrIntrinsic, NotIntrinsic, FindInMap, FindInMapIntrinsic, ImportValue, ImportValueIntrinsic, Cidr, CidrIntrinsic, } from "./intrinsics.js";
48
+ // Pseudo-parameters
49
+ export { AWS, StackName, Region, AccountId, StackId, URLSuffix, NoValue, NotificationARNs, Partition, } from "./pseudo.js";
50
+ // Generated resources — export everything from generated index
51
+ // After running `chant generate`, this re-exports all 1000+ resource classes
52
+ export * from "./generated/index.js";
53
+ // Spec utilities (for tooling)
54
+ export { fetchSchemaZip } from "./spec/fetch.js";
55
+ export { parseCFNSchema, cfnShortName, cfnServiceName } from "./spec/parse.js";
56
+ // Action constants
57
+ export { S3Actions, LambdaActions, DynamoDBActions, SQSActions, SNSActions, IAMActions, ECRActions, LogsActions, ECSActions } from "./actions/index.js";
58
+ // Built-in composites
59
+ export { LambdaFunction, LambdaNode, LambdaPython, NodeLambda, PythonLambda, LambdaApi, LambdaScheduled, ScheduledLambda, LambdaSqs, LambdaEventBridge, LambdaDynamoDB, DynamoDBTable, EcrRepository, LambdaS3, LambdaSns, VpcDefault, FargateAlb, AlbShared, FargateService, FARGATE_SERVICE_LIMITS, NlbService, RdsInstance, RdsPostgres, EfsWithAccessPoint, Ec2InstanceRole, Ec2InstanceBundle, MinimalVpc, EksCluster, SolrFargateService, MicrovmApp, MICROVM_LIMITS, AgentCoreAgent, agentCoreDefaultEndpointArn, AGENTCORE_LIMITS, OrganizationRoot, GovernanceFoundation, RegionRestriction, OrganizationTrail, StepFunctionsWorkflow, MonitoringStack, BucketDeployment, } from "./composites/index.js";
60
+ // Code generation pipeline
61
+ export { generate, writeGeneratedFiles } from "./codegen/generate.js";
62
+ export { packageLexicon } from "./codegen/package.js";
63
+ // Component/release capabilities — the AWS operational leaves (cfn-deploy,
64
+ // emr-*, code-deploy, …) contributed to core's capability-plugin seam. Core
65
+ // loads `awsCapabilityPlugin` when a project's chant.config lists this lexicon.
66
+ export { awsCapabilityPlugin } from "./components/capability-plugin.js";
67
+ // AWS governance authoring: the desired-state config the AWS cloud
68
+ // external governance reconciler applies, and the typed landing-zone authoring layer.
69
+ export { landingZoneConfig, regionRestriction, DENY_AUDIT_TAMPER, DENY_LEAVE_ORGANIZATION, FOUNDATION_OUS } from "./governance.js";
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "algorithm": "sha256",
3
3
  "artifacts": {
4
- "manifest.json": "502f22cebb774a0c8040aca0704aa28c48ae9cfabf7db99ba28e4c28e56b691e",
5
- "meta.json": "435429f998bf94568544f01780e35c28b73e7d030520d59d4025867d272cdb75",
6
- "types/index.d.ts": "9e99bb26113f101eb7073759e1b02b8d06aac73379254a64a5e492d52506156c",
4
+ "manifest.json": "0ee5d3480fac8e9a938968dd5ddcc859a7e84cafa9bea700cedfa550dd4ef346",
5
+ "meta.json": "3e18663eb9eb09920882f8014020432330a74ccd480689e7384c2022cbb10f39",
6
+ "types/index.d.ts": "8651f9ae166668f4311eea1fe61c3fe235f345947951c1d23d1df24a4fd3384f",
7
7
  "rules/hardcoded-region.ts": "957eadcaa9f39cc17d21437565d7a94607d9b082cf28918b178fa067f07498a9",
8
8
  "rules/iam-wildcard.ts": "10f5065fa2bbf2c8ce23dfb475a56df33f280df87784e44fec641b2584cbf333",
9
9
  "rules/s3-encryption.ts": "6611f3977d40314c31e6d4af99829a25ea71a529a6dfcaff425549c8aa54c29a",
10
10
  "rules/cf-refs.ts": "3fa8d144e430ae00204b159f1c8c5bf78576c52f984cc4f656eb366d7423f819",
11
11
  "rules/cor020.ts": "915bbb4c083c7b3b84b93e8e891b5ffffe5a138fdccda32ecfdda91b8685798c",
12
- "rules/ext001.ts": "f8703f37a50ab23d0ecaef539c0215a71269d420fa5e09a3d0454b18b7350b34",
12
+ "rules/ext001.ts": "0d2ae9710dc5fc47478e38387764a7c6b4c7e79fa5e695d6282d5fc27d47aaa4",
13
13
  "rules/waw010.ts": "41c58aaedb8f9fe266f4b40f1a076f762796427fdf9b317b8a4a50c713e45571",
14
14
  "rules/waw011.ts": "fda06d63b71c37324dd23d519c2430c25d5fcb39a71eeed69caa76665dcae50d",
15
15
  "rules/waw013.ts": "f9b37b955917415a2eb5f4aed7f28b76aff0a6abdb05228dcbb8bc77bc67672a",
16
16
  "rules/waw014.ts": "889f1b06899b50f98941d05b029954cf375ac8a130933b98c9586079096216aa",
17
17
  "rules/waw015.ts": "071c940fb6432cd8b42a44d083921e9491d5063417839109c10b2bd13dd2032e",
18
- "rules/waw016.ts": "b9538a9c44a58b687a08f74328caecba4236ad3c24c97759e6d69a3b9ce487c0",
18
+ "rules/waw016.ts": "2c4e230c98056a03ecdbfa0e408e36a31733e83cc96419910ae3ec9fd4b7fd9e",
19
19
  "rules/waw017.ts": "658554008954f71036e23b514dece7063142198fbdca125f11d09026f1d21ab2",
20
20
  "rules/waw018.ts": "a4aa83a25104f039a6c5e0f3e1f5b8b65e493b0ba162c985988190a726b90d2f",
21
21
  "rules/waw019.ts": "f14ebf024a3cce7005d54c762e4e0979537d6a854fb123344107d40d92a94b5c",
@@ -73,5 +73,5 @@
73
73
  "skills/chant-aws-eks.md": "8789255709ff004ad0a875fd5999edcdc66fc6e33d710db058d9f42703bcfdfe",
74
74
  "skills/chant-aws-carve-terraform.md": "8780b94ce60aded935938d5ef20ea667738354051da1bf9ca6d70d9886f65d21"
75
75
  },
76
- "composite": "fb5b3c087f041ae538219ec50c7e0fcac77f1cf7e962b6ae9f110805cef39305"
76
+ "composite": "183d8f9b49de872c352a4daa986b8710ef256e152f04bea4d3b805515c53f657"
77
77
  }