@kensio/yulin 1.20.6 → 1.20.8

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 (518) hide show
  1. package/README.md +1 -0
  2. package/dist/sdk/router/resolve-sim-sdk-command-router.d.ts.map +1 -1
  3. package/dist/sdk/router/resolve-sim-sdk-command-router.js +5 -0
  4. package/dist/sdk/router/resolve-sim-sdk-command-router.js.map +1 -1
  5. package/dist/service/athena/cfn/named-query/sim-cfn-athena-named-query-creator.d.ts +30 -0
  6. package/dist/service/athena/cfn/named-query/sim-cfn-athena-named-query-creator.d.ts.map +1 -0
  7. package/dist/service/athena/cfn/named-query/sim-cfn-athena-named-query-creator.js +48 -0
  8. package/dist/service/athena/cfn/named-query/sim-cfn-athena-named-query-creator.js.map +1 -0
  9. package/dist/service/athena/cfn/named-query/sim-cfn-athena-named-query-properties.d.ts +33 -0
  10. package/dist/service/athena/cfn/named-query/sim-cfn-athena-named-query-properties.d.ts.map +1 -0
  11. package/dist/service/athena/cfn/named-query/sim-cfn-athena-named-query-properties.js +67 -0
  12. package/dist/service/athena/cfn/named-query/sim-cfn-athena-named-query-properties.js.map +1 -0
  13. package/dist/service/athena/cfn/sim-athena-cfn-resource-factory.d.ts +29 -0
  14. package/dist/service/athena/cfn/sim-athena-cfn-resource-factory.d.ts.map +1 -0
  15. package/dist/service/athena/cfn/sim-athena-cfn-resource-factory.js +67 -0
  16. package/dist/service/athena/cfn/sim-athena-cfn-resource-factory.js.map +1 -0
  17. package/dist/service/athena/cfn/sim-cfn-athena-property-values.d.ts +29 -0
  18. package/dist/service/athena/cfn/sim-cfn-athena-property-values.d.ts.map +1 -0
  19. package/dist/service/athena/cfn/sim-cfn-athena-property-values.js +74 -0
  20. package/dist/service/athena/cfn/sim-cfn-athena-property-values.js.map +1 -0
  21. package/dist/service/athena/cfn/sim-cfn-athena-resource-error.d.ts +21 -0
  22. package/dist/service/athena/cfn/sim-cfn-athena-resource-error.d.ts.map +1 -0
  23. package/dist/service/athena/cfn/sim-cfn-athena-resource-error.js +34 -0
  24. package/dist/service/athena/cfn/sim-cfn-athena-resource-error.js.map +1 -0
  25. package/dist/service/athena/cfn/sim-cfn-athena-resource-types.d.ts +13 -0
  26. package/dist/service/athena/cfn/sim-cfn-athena-resource-types.d.ts.map +1 -0
  27. package/dist/service/athena/cfn/sim-cfn-athena-resource-types.js +13 -0
  28. package/dist/service/athena/cfn/sim-cfn-athena-resource-types.js.map +1 -0
  29. package/dist/service/athena/cfn/work-group/sim-cfn-athena-work-group-configuration-properties.d.ts +12 -0
  30. package/dist/service/athena/cfn/work-group/sim-cfn-athena-work-group-configuration-properties.d.ts.map +1 -0
  31. package/dist/service/athena/cfn/work-group/sim-cfn-athena-work-group-configuration-properties.js +46 -0
  32. package/dist/service/athena/cfn/work-group/sim-cfn-athena-work-group-configuration-properties.js.map +1 -0
  33. package/dist/service/athena/cfn/work-group/sim-cfn-athena-work-group-creator.d.ts +34 -0
  34. package/dist/service/athena/cfn/work-group/sim-cfn-athena-work-group-creator.d.ts.map +1 -0
  35. package/dist/service/athena/cfn/work-group/sim-cfn-athena-work-group-creator.js +65 -0
  36. package/dist/service/athena/cfn/work-group/sim-cfn-athena-work-group-creator.js.map +1 -0
  37. package/dist/service/athena/cfn/work-group/sim-cfn-athena-work-group-properties.d.ts +46 -0
  38. package/dist/service/athena/cfn/work-group/sim-cfn-athena-work-group-properties.d.ts.map +1 -0
  39. package/dist/service/athena/cfn/work-group/sim-cfn-athena-work-group-properties.js +77 -0
  40. package/dist/service/athena/cfn/work-group/sim-cfn-athena-work-group-properties.js.map +1 -0
  41. package/dist/service/athena/cfn/work-group/sim-cfn-athena-work-group-property-rules.d.ts +27 -0
  42. package/dist/service/athena/cfn/work-group/sim-cfn-athena-work-group-property-rules.d.ts.map +1 -0
  43. package/dist/service/athena/cfn/work-group/sim-cfn-athena-work-group-property-rules.js +75 -0
  44. package/dist/service/athena/cfn/work-group/sim-cfn-athena-work-group-property-rules.js.map +1 -0
  45. package/dist/service/athena/cfn/work-group/sim-cfn-athena-work-group-unsimulated-properties.d.ts +18 -0
  46. package/dist/service/athena/cfn/work-group/sim-cfn-athena-work-group-unsimulated-properties.d.ts.map +1 -0
  47. package/dist/service/athena/cfn/work-group/sim-cfn-athena-work-group-unsimulated-properties.js +49 -0
  48. package/dist/service/athena/cfn/work-group/sim-cfn-athena-work-group-unsimulated-properties.js.map +1 -0
  49. package/dist/service/athena/command/authorize/sim-athena-authorizer.d.ts +36 -0
  50. package/dist/service/athena/command/authorize/sim-athena-authorizer.d.ts.map +1 -0
  51. package/dist/service/athena/command/authorize/sim-athena-authorizer.js +56 -0
  52. package/dist/service/athena/command/authorize/sim-athena-authorizer.js.map +1 -0
  53. package/dist/service/athena/command/execution/execution.command.d.ts +130 -0
  54. package/dist/service/athena/command/execution/execution.command.d.ts.map +1 -0
  55. package/dist/service/athena/command/execution/execution.command.js +2 -0
  56. package/dist/service/athena/command/execution/execution.command.js.map +1 -0
  57. package/dist/service/athena/command/execution/sim-athena-described-execution.d.ts +11 -0
  58. package/dist/service/athena/command/execution/sim-athena-described-execution.d.ts.map +1 -0
  59. package/dist/service/athena/command/execution/sim-athena-described-execution.js +50 -0
  60. package/dist/service/athena/command/execution/sim-athena-described-execution.js.map +1 -0
  61. package/dist/service/athena/command/execution/sim-athena-execution-reads.d.ts +30 -0
  62. package/dist/service/athena/command/execution/sim-athena-execution-reads.d.ts.map +1 -0
  63. package/dist/service/athena/command/execution/sim-athena-execution-reads.js +43 -0
  64. package/dist/service/athena/command/execution/sim-athena-execution-reads.js.map +1 -0
  65. package/dist/service/athena/command/execution/sim-athena-execution-writes.d.ts +43 -0
  66. package/dist/service/athena/command/execution/sim-athena-execution-writes.d.ts.map +1 -0
  67. package/dist/service/athena/command/execution/sim-athena-execution-writes.js +42 -0
  68. package/dist/service/athena/command/execution/sim-athena-execution-writes.js.map +1 -0
  69. package/dist/service/athena/command/execution/sim-athena-query-output-location.d.ts +17 -0
  70. package/dist/service/athena/command/execution/sim-athena-query-output-location.d.ts.map +1 -0
  71. package/dist/service/athena/command/execution/sim-athena-query-output-location.js +28 -0
  72. package/dist/service/athena/command/execution/sim-athena-query-output-location.js.map +1 -0
  73. package/dist/service/athena/command/execution/sim-athena-query-results-page.d.ts +10 -0
  74. package/dist/service/athena/command/execution/sim-athena-query-results-page.d.ts.map +1 -0
  75. package/dist/service/athena/command/execution/sim-athena-query-results-page.js +36 -0
  76. package/dist/service/athena/command/execution/sim-athena-query-results-page.js.map +1 -0
  77. package/dist/service/athena/command/execution/sim-athena-query-rows.d.ts +16 -0
  78. package/dist/service/athena/command/execution/sim-athena-query-rows.d.ts.map +1 -0
  79. package/dist/service/athena/command/execution/sim-athena-query-rows.js +28 -0
  80. package/dist/service/athena/command/execution/sim-athena-query-rows.js.map +1 -0
  81. package/dist/service/athena/command/execution/sim-athena-query-start.d.ts +24 -0
  82. package/dist/service/athena/command/execution/sim-athena-query-start.d.ts.map +1 -0
  83. package/dist/service/athena/command/execution/sim-athena-query-start.js +60 -0
  84. package/dist/service/athena/command/execution/sim-athena-query-start.js.map +1 -0
  85. package/dist/service/athena/command/execution/sim-athena-query-stop.d.ts +16 -0
  86. package/dist/service/athena/command/execution/sim-athena-query-stop.d.ts.map +1 -0
  87. package/dist/service/athena/command/execution/sim-athena-query-stop.js +23 -0
  88. package/dist/service/athena/command/execution/sim-athena-query-stop.js.map +1 -0
  89. package/dist/service/athena/command/named-query/named-query.command.d.ts +104 -0
  90. package/dist/service/athena/command/named-query/named-query.command.d.ts.map +1 -0
  91. package/dist/service/athena/command/named-query/named-query.command.js +2 -0
  92. package/dist/service/athena/command/named-query/named-query.command.js.map +1 -0
  93. package/dist/service/athena/command/named-query/sim-athena-described-named-query.d.ts +7 -0
  94. package/dist/service/athena/command/named-query/sim-athena-described-named-query.d.ts.map +1 -0
  95. package/dist/service/athena/command/named-query/sim-athena-described-named-query.js +14 -0
  96. package/dist/service/athena/command/named-query/sim-athena-described-named-query.js.map +1 -0
  97. package/dist/service/athena/command/named-query/sim-athena-named-query-batch.d.ts +14 -0
  98. package/dist/service/athena/command/named-query/sim-athena-named-query-batch.d.ts.map +1 -0
  99. package/dist/service/athena/command/named-query/sim-athena-named-query-batch.js +56 -0
  100. package/dist/service/athena/command/named-query/sim-athena-named-query-batch.js.map +1 -0
  101. package/dist/service/athena/command/named-query/sim-athena-named-query-field.d.ts +5 -0
  102. package/dist/service/athena/command/named-query/sim-athena-named-query-field.d.ts.map +1 -0
  103. package/dist/service/athena/command/named-query/sim-athena-named-query-field.js +11 -0
  104. package/dist/service/athena/command/named-query/sim-athena-named-query-field.js.map +1 -0
  105. package/dist/service/athena/command/named-query/sim-athena-named-query-reads.d.ts +33 -0
  106. package/dist/service/athena/command/named-query/sim-athena-named-query-reads.d.ts.map +1 -0
  107. package/dist/service/athena/command/named-query/sim-athena-named-query-reads.js +55 -0
  108. package/dist/service/athena/command/named-query/sim-athena-named-query-reads.js.map +1 -0
  109. package/dist/service/athena/command/named-query/sim-athena-named-query-writes.d.ts +33 -0
  110. package/dist/service/athena/command/named-query/sim-athena-named-query-writes.d.ts.map +1 -0
  111. package/dist/service/athena/command/named-query/sim-athena-named-query-writes.js +50 -0
  112. package/dist/service/athena/command/named-query/sim-athena-named-query-writes.js.map +1 -0
  113. package/dist/service/athena/command/sim-athena-command.types.d.ts +4 -0
  114. package/dist/service/athena/command/sim-athena-command.types.d.ts.map +1 -0
  115. package/dist/service/athena/command/sim-athena-command.types.js +2 -0
  116. package/dist/service/athena/command/sim-athena-command.types.js.map +1 -0
  117. package/dist/service/athena/command/sim-athena-commands.d.ts +42 -0
  118. package/dist/service/athena/command/sim-athena-commands.d.ts.map +1 -0
  119. package/dist/service/athena/command/sim-athena-commands.js +65 -0
  120. package/dist/service/athena/command/sim-athena-commands.js.map +1 -0
  121. package/dist/service/athena/command/sim-athena-page.d.ts +49 -0
  122. package/dist/service/athena/command/sim-athena-page.d.ts.map +1 -0
  123. package/dist/service/athena/command/sim-athena-page.js +75 -0
  124. package/dist/service/athena/command/sim-athena-page.js.map +1 -0
  125. package/dist/service/athena/command/sim-athena-request-options.d.ts +12 -0
  126. package/dist/service/athena/command/sim-athena-request-options.d.ts.map +1 -0
  127. package/dist/service/athena/command/sim-athena-request-options.js +2 -0
  128. package/dist/service/athena/command/sim-athena-request-options.js.map +1 -0
  129. package/dist/service/athena/command/work-group/sim-athena-described-work-group.d.ts +14 -0
  130. package/dist/service/athena/command/work-group/sim-athena-described-work-group.d.ts.map +1 -0
  131. package/dist/service/athena/command/work-group/sim-athena-described-work-group.js +66 -0
  132. package/dist/service/athena/command/work-group/sim-athena-described-work-group.js.map +1 -0
  133. package/dist/service/athena/command/work-group/sim-athena-work-group-creation.d.ts +12 -0
  134. package/dist/service/athena/command/work-group/sim-athena-work-group-creation.d.ts.map +1 -0
  135. package/dist/service/athena/command/work-group/sim-athena-work-group-creation.js +22 -0
  136. package/dist/service/athena/command/work-group/sim-athena-work-group-creation.js.map +1 -0
  137. package/dist/service/athena/command/work-group/sim-athena-work-group-deletion.d.ts +12 -0
  138. package/dist/service/athena/command/work-group/sim-athena-work-group-deletion.d.ts.map +1 -0
  139. package/dist/service/athena/command/work-group/sim-athena-work-group-deletion.js +24 -0
  140. package/dist/service/athena/command/work-group/sim-athena-work-group-deletion.js.map +1 -0
  141. package/dist/service/athena/command/work-group/sim-athena-work-group-input.d.ts +26 -0
  142. package/dist/service/athena/command/work-group/sim-athena-work-group-input.d.ts.map +1 -0
  143. package/dist/service/athena/command/work-group/sim-athena-work-group-input.js +93 -0
  144. package/dist/service/athena/command/work-group/sim-athena-work-group-input.js.map +1 -0
  145. package/dist/service/athena/command/work-group/sim-athena-work-group-reads.d.ts +26 -0
  146. package/dist/service/athena/command/work-group/sim-athena-work-group-reads.d.ts.map +1 -0
  147. package/dist/service/athena/command/work-group/sim-athena-work-group-reads.js +39 -0
  148. package/dist/service/athena/command/work-group/sim-athena-work-group-reads.js.map +1 -0
  149. package/dist/service/athena/command/work-group/sim-athena-work-group-update.d.ts +12 -0
  150. package/dist/service/athena/command/work-group/sim-athena-work-group-update.d.ts.map +1 -0
  151. package/dist/service/athena/command/work-group/sim-athena-work-group-update.js +26 -0
  152. package/dist/service/athena/command/work-group/sim-athena-work-group-update.js.map +1 -0
  153. package/dist/service/athena/command/work-group/sim-athena-work-group-updates-input.d.ts +11 -0
  154. package/dist/service/athena/command/work-group/sim-athena-work-group-updates-input.d.ts.map +1 -0
  155. package/dist/service/athena/command/work-group/sim-athena-work-group-updates-input.js +35 -0
  156. package/dist/service/athena/command/work-group/sim-athena-work-group-updates-input.js.map +1 -0
  157. package/dist/service/athena/command/work-group/sim-athena-work-group-writes.d.ts +40 -0
  158. package/dist/service/athena/command/work-group/sim-athena-work-group-writes.d.ts.map +1 -0
  159. package/dist/service/athena/command/work-group/sim-athena-work-group-writes.js +53 -0
  160. package/dist/service/athena/command/work-group/sim-athena-work-group-writes.js.map +1 -0
  161. package/dist/service/athena/command/work-group/work-group.command.d.ts +164 -0
  162. package/dist/service/athena/command/work-group/work-group.command.d.ts.map +1 -0
  163. package/dist/service/athena/command/work-group/work-group.command.js +2 -0
  164. package/dist/service/athena/command/work-group/work-group.command.js.map +1 -0
  165. package/dist/service/athena/error/sim-athena.error.d.ts +33 -0
  166. package/dist/service/athena/error/sim-athena.error.d.ts.map +1 -0
  167. package/dist/service/athena/error/sim-athena.error.js +34 -0
  168. package/dist/service/athena/error/sim-athena.error.js.map +1 -0
  169. package/dist/service/athena/execution/sim-athena-no-result-destination.d.ts +11 -0
  170. package/dist/service/athena/execution/sim-athena-no-result-destination.d.ts.map +1 -0
  171. package/dist/service/athena/execution/sim-athena-no-result-destination.js +15 -0
  172. package/dist/service/athena/execution/sim-athena-no-result-destination.js.map +1 -0
  173. package/dist/service/athena/execution/sim-athena-output-location.d.ts +24 -0
  174. package/dist/service/athena/execution/sim-athena-output-location.d.ts.map +1 -0
  175. package/dist/service/athena/execution/sim-athena-output-location.js +49 -0
  176. package/dist/service/athena/execution/sim-athena-output-location.js.map +1 -0
  177. package/dist/service/athena/execution/sim-athena-query-execution-store.d.ts +24 -0
  178. package/dist/service/athena/execution/sim-athena-query-execution-store.d.ts.map +1 -0
  179. package/dist/service/athena/execution/sim-athena-query-execution-store.js +36 -0
  180. package/dist/service/athena/execution/sim-athena-query-execution-store.js.map +1 -0
  181. package/dist/service/athena/execution/sim-athena-query-execution.d.ts +58 -0
  182. package/dist/service/athena/execution/sim-athena-query-execution.d.ts.map +1 -0
  183. package/dist/service/athena/execution/sim-athena-query-execution.js +81 -0
  184. package/dist/service/athena/execution/sim-athena-query-execution.js.map +1 -0
  185. package/dist/service/athena/execution/sim-athena-query-runner.d.ts +48 -0
  186. package/dist/service/athena/execution/sim-athena-query-runner.d.ts.map +1 -0
  187. package/dist/service/athena/execution/sim-athena-query-runner.js +87 -0
  188. package/dist/service/athena/execution/sim-athena-query-runner.js.map +1 -0
  189. package/dist/service/athena/execution/sim-athena-query-state.d.ts +12 -0
  190. package/dist/service/athena/execution/sim-athena-query-state.d.ts.map +1 -0
  191. package/dist/service/athena/execution/sim-athena-query-state.js +18 -0
  192. package/dist/service/athena/execution/sim-athena-query-state.js.map +1 -0
  193. package/dist/service/athena/execution/sim-athena-query-status.d.ts +28 -0
  194. package/dist/service/athena/execution/sim-athena-query-status.d.ts.map +1 -0
  195. package/dist/service/athena/execution/sim-athena-query-status.js +48 -0
  196. package/dist/service/athena/execution/sim-athena-query-status.js.map +1 -0
  197. package/dist/service/athena/execution/sim-athena-query-tokens.d.ts +30 -0
  198. package/dist/service/athena/execution/sim-athena-query-tokens.d.ts.map +1 -0
  199. package/dist/service/athena/execution/sim-athena-query-tokens.js +49 -0
  200. package/dist/service/athena/execution/sim-athena-query-tokens.js.map +1 -0
  201. package/dist/service/athena/execution/sim-athena-result-csv.d.ts +11 -0
  202. package/dist/service/athena/execution/sim-athena-result-csv.d.ts.map +1 -0
  203. package/dist/service/athena/execution/sim-athena-result-csv.js +20 -0
  204. package/dist/service/athena/execution/sim-athena-result-csv.js.map +1 -0
  205. package/dist/service/athena/execution/sim-athena-result-writer.d.ts +42 -0
  206. package/dist/service/athena/execution/sim-athena-result-writer.d.ts.map +1 -0
  207. package/dist/service/athena/execution/sim-athena-result-writer.js +31 -0
  208. package/dist/service/athena/execution/sim-athena-result-writer.js.map +1 -0
  209. package/dist/service/athena/execution/sim-athena-write-failure.d.ts +9 -0
  210. package/dist/service/athena/execution/sim-athena-write-failure.d.ts.map +1 -0
  211. package/dist/service/athena/execution/sim-athena-write-failure.js +12 -0
  212. package/dist/service/athena/execution/sim-athena-write-failure.js.map +1 -0
  213. package/dist/service/athena/index.d.ts +21 -0
  214. package/dist/service/athena/index.d.ts.map +1 -0
  215. package/dist/service/athena/index.js +18 -0
  216. package/dist/service/athena/index.js.map +1 -0
  217. package/dist/service/athena/named-query/sim-athena-named-query-store.d.ts +42 -0
  218. package/dist/service/athena/named-query/sim-athena-named-query-store.d.ts.map +1 -0
  219. package/dist/service/athena/named-query/sim-athena-named-query-store.js +62 -0
  220. package/dist/service/athena/named-query/sim-athena-named-query-store.js.map +1 -0
  221. package/dist/service/athena/named-query/sim-athena-named-query.d.ts +30 -0
  222. package/dist/service/athena/named-query/sim-athena-named-query.d.ts.map +1 -0
  223. package/dist/service/athena/named-query/sim-athena-named-query.js +28 -0
  224. package/dist/service/athena/named-query/sim-athena-named-query.js.map +1 -0
  225. package/dist/service/athena/result/sim-athena-declared-result.d.ts +44 -0
  226. package/dist/service/athena/result/sim-athena-declared-result.d.ts.map +1 -0
  227. package/dist/service/athena/result/sim-athena-declared-result.js +2 -0
  228. package/dist/service/athena/result/sim-athena-declared-result.js.map +1 -0
  229. package/dist/service/athena/result/sim-athena-query-results.d.ts +48 -0
  230. package/dist/service/athena/result/sim-athena-query-results.d.ts.map +1 -0
  231. package/dist/service/athena/result/sim-athena-query-results.js +59 -0
  232. package/dist/service/athena/result/sim-athena-query-results.js.map +1 -0
  233. package/dist/service/athena/result/sim-athena-resolved-result.d.ts +20 -0
  234. package/dist/service/athena/result/sim-athena-resolved-result.d.ts.map +1 -0
  235. package/dist/service/athena/result/sim-athena-resolved-result.js +52 -0
  236. package/dist/service/athena/result/sim-athena-resolved-result.js.map +1 -0
  237. package/dist/service/athena/sdk/sim-athena-sdk-command-router.d.ts +18 -0
  238. package/dist/service/athena/sdk/sim-athena-sdk-command-router.d.ts.map +1 -0
  239. package/dist/service/athena/sdk/sim-athena-sdk-command-router.js +80 -0
  240. package/dist/service/athena/sdk/sim-athena-sdk-command-router.js.map +1 -0
  241. package/dist/service/athena/sim-athena-arn.d.ts +11 -0
  242. package/dist/service/athena/sim-athena-arn.d.ts.map +1 -0
  243. package/dist/service/athena/sim-athena-arn.js +13 -0
  244. package/dist/service/athena/sim-athena-arn.js.map +1 -0
  245. package/dist/service/athena/sim-athena-executions.d.ts +81 -0
  246. package/dist/service/athena/sim-athena-executions.d.ts.map +1 -0
  247. package/dist/service/athena/sim-athena-executions.js +112 -0
  248. package/dist/service/athena/sim-athena-executions.js.map +1 -0
  249. package/dist/service/athena/sim-athena.d.ts +93 -0
  250. package/dist/service/athena/sim-athena.d.ts.map +1 -0
  251. package/dist/service/athena/sim-athena.js +128 -0
  252. package/dist/service/athena/sim-athena.js.map +1 -0
  253. package/dist/service/athena/workgroup/sim-athena-result-configuration.d.ts +59 -0
  254. package/dist/service/athena/workgroup/sim-athena-result-configuration.d.ts.map +1 -0
  255. package/dist/service/athena/workgroup/sim-athena-result-configuration.js +61 -0
  256. package/dist/service/athena/workgroup/sim-athena-result-configuration.js.map +1 -0
  257. package/dist/service/athena/workgroup/sim-athena-work-group-configuration.d.ts +52 -0
  258. package/dist/service/athena/workgroup/sim-athena-work-group-configuration.d.ts.map +1 -0
  259. package/dist/service/athena/workgroup/sim-athena-work-group-configuration.js +67 -0
  260. package/dist/service/athena/workgroup/sim-athena-work-group-configuration.js.map +1 -0
  261. package/dist/service/athena/workgroup/sim-athena-work-group-name.d.ts +17 -0
  262. package/dist/service/athena/workgroup/sim-athena-work-group-name.d.ts.map +1 -0
  263. package/dist/service/athena/workgroup/sim-athena-work-group-name.js +41 -0
  264. package/dist/service/athena/workgroup/sim-athena-work-group-name.js.map +1 -0
  265. package/dist/service/athena/workgroup/sim-athena-work-group-store.d.ts +31 -0
  266. package/dist/service/athena/workgroup/sim-athena-work-group-store.d.ts.map +1 -0
  267. package/dist/service/athena/workgroup/sim-athena-work-group-store.js +45 -0
  268. package/dist/service/athena/workgroup/sim-athena-work-group-store.js.map +1 -0
  269. package/dist/service/athena/workgroup/sim-athena-work-group-updates.d.ts +32 -0
  270. package/dist/service/athena/workgroup/sim-athena-work-group-updates.d.ts.map +1 -0
  271. package/dist/service/athena/workgroup/sim-athena-work-group-updates.js +2 -0
  272. package/dist/service/athena/workgroup/sim-athena-work-group-updates.js.map +1 -0
  273. package/dist/service/athena/workgroup/sim-athena-work-group.d.ts +54 -0
  274. package/dist/service/athena/workgroup/sim-athena-work-group.d.ts.map +1 -0
  275. package/dist/service/athena/workgroup/sim-athena-work-group.js +59 -0
  276. package/dist/service/athena/workgroup/sim-athena-work-group.js.map +1 -0
  277. package/dist/service/aws/factory/sim-aws-logs-collaborators.d.ts +6 -0
  278. package/dist/service/aws/factory/sim-aws-logs-collaborators.d.ts.map +1 -1
  279. package/dist/service/aws/factory/sim-aws-logs-collaborators.js +9 -0
  280. package/dist/service/aws/factory/sim-aws-logs-collaborators.js.map +1 -1
  281. package/dist/service/aws/factory/sim-aws-self-contained-service-builder.d.ts +18 -0
  282. package/dist/service/aws/factory/sim-aws-self-contained-service-builder.d.ts.map +1 -1
  283. package/dist/service/aws/factory/sim-aws-self-contained-service-builder.js +22 -0
  284. package/dist/service/aws/factory/sim-aws-self-contained-service-builder.js.map +1 -1
  285. package/dist/service/aws/factory/sim-aws-service-factory.d.ts +6 -0
  286. package/dist/service/aws/factory/sim-aws-service-factory.d.ts.map +1 -1
  287. package/dist/service/aws/factory/sim-aws-service-factory.js +8 -0
  288. package/dist/service/aws/factory/sim-aws-service-factory.js.map +1 -1
  289. package/dist/service/aws/sim-aws-account-region-scope.d.ts +6 -0
  290. package/dist/service/aws/sim-aws-account-region-scope.d.ts.map +1 -1
  291. package/dist/service/aws/sim-aws-account-region-scope.js +8 -0
  292. package/dist/service/aws/sim-aws-account-region-scope.js.map +1 -1
  293. package/dist/service/aws/sim-aws-service-accessors.d.ts +6 -0
  294. package/dist/service/aws/sim-aws-service-accessors.d.ts.map +1 -1
  295. package/dist/service/aws/sim-aws-service-accessors.js +8 -0
  296. package/dist/service/aws/sim-aws-service-accessors.js.map +1 -1
  297. package/dist/service/cloudformation/resource/cfn/athena/sim-athena-cfn-value-adapter.d.ts +6 -0
  298. package/dist/service/cloudformation/resource/cfn/athena/sim-athena-cfn-value-adapter.d.ts.map +1 -0
  299. package/dist/service/cloudformation/resource/cfn/athena/sim-athena-cfn-value-adapter.js +19 -0
  300. package/dist/service/cloudformation/resource/cfn/athena/sim-athena-cfn-value-adapter.js.map +1 -0
  301. package/dist/service/cloudformation/resource/cfn/athena/sim-athena-named-query-cfn.d.ts +23 -0
  302. package/dist/service/cloudformation/resource/cfn/athena/sim-athena-named-query-cfn.d.ts.map +1 -0
  303. package/dist/service/cloudformation/resource/cfn/athena/sim-athena-named-query-cfn.js +25 -0
  304. package/dist/service/cloudformation/resource/cfn/athena/sim-athena-named-query-cfn.js.map +1 -0
  305. package/dist/service/cloudformation/resource/cfn/athena/sim-athena-work-group-cfn.d.ts +26 -0
  306. package/dist/service/cloudformation/resource/cfn/athena/sim-athena-work-group-cfn.d.ts.map +1 -0
  307. package/dist/service/cloudformation/resource/cfn/athena/sim-athena-work-group-cfn.js +28 -0
  308. package/dist/service/cloudformation/resource/cfn/athena/sim-athena-work-group-cfn.js.map +1 -0
  309. package/dist/service/cloudformation/resource/cfn/glue/sim-glue-cfn-value-adapter.d.ts +6 -0
  310. package/dist/service/cloudformation/resource/cfn/glue/sim-glue-cfn-value-adapter.d.ts.map +1 -0
  311. package/dist/service/cloudformation/resource/cfn/glue/sim-glue-cfn-value-adapter.js +19 -0
  312. package/dist/service/cloudformation/resource/cfn/glue/sim-glue-cfn-value-adapter.js.map +1 -0
  313. package/dist/service/cloudformation/resource/cfn/glue/sim-glue-database-cfn.d.ts +27 -0
  314. package/dist/service/cloudformation/resource/cfn/glue/sim-glue-database-cfn.d.ts.map +1 -0
  315. package/dist/service/cloudformation/resource/cfn/glue/sim-glue-database-cfn.js +27 -0
  316. package/dist/service/cloudformation/resource/cfn/glue/sim-glue-database-cfn.js.map +1 -0
  317. package/dist/service/cloudformation/resource/cfn/glue/sim-glue-table-cfn-id.d.ts +21 -0
  318. package/dist/service/cloudformation/resource/cfn/glue/sim-glue-table-cfn-id.d.ts.map +1 -0
  319. package/dist/service/cloudformation/resource/cfn/glue/sim-glue-table-cfn-id.js +22 -0
  320. package/dist/service/cloudformation/resource/cfn/glue/sim-glue-table-cfn-id.js.map +1 -0
  321. package/dist/service/cloudformation/resource/cfn/glue/sim-glue-table-cfn.d.ts +27 -0
  322. package/dist/service/cloudformation/resource/cfn/glue/sim-glue-table-cfn.d.ts.map +1 -0
  323. package/dist/service/cloudformation/resource/cfn/glue/sim-glue-table-cfn.js +30 -0
  324. package/dist/service/cloudformation/resource/cfn/glue/sim-glue-table-cfn.js.map +1 -0
  325. package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.d.ts.map +1 -1
  326. package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.js +4 -0
  327. package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.js.map +1 -1
  328. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.d.ts.map +1 -1
  329. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.js +8 -0
  330. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.js.map +1 -1
  331. package/dist/service/cloudformation/resource/sim-cfn-resource-record.d.ts.map +1 -1
  332. package/dist/service/cloudformation/resource/sim-cfn-resource-record.js +9 -0
  333. package/dist/service/cloudformation/resource/sim-cfn-resource-record.js.map +1 -1
  334. package/dist/service/glue/arn/sim-glue-arn.d.ts +22 -0
  335. package/dist/service/glue/arn/sim-glue-arn.d.ts.map +1 -0
  336. package/dist/service/glue/arn/sim-glue-arn.js +29 -0
  337. package/dist/service/glue/arn/sim-glue-arn.js.map +1 -0
  338. package/dist/service/glue/arn/sim-glue-authorized-resources.d.ts +17 -0
  339. package/dist/service/glue/arn/sim-glue-authorized-resources.d.ts.map +1 -0
  340. package/dist/service/glue/arn/sim-glue-authorized-resources.js +29 -0
  341. package/dist/service/glue/arn/sim-glue-authorized-resources.js.map +1 -0
  342. package/dist/service/glue/cfn/database/sim-cfn-glue-database-creator.d.ts +27 -0
  343. package/dist/service/glue/cfn/database/sim-cfn-glue-database-creator.d.ts.map +1 -0
  344. package/dist/service/glue/cfn/database/sim-cfn-glue-database-creator.js +43 -0
  345. package/dist/service/glue/cfn/database/sim-cfn-glue-database-creator.js.map +1 -0
  346. package/dist/service/glue/cfn/database/sim-cfn-glue-database-properties.d.ts +31 -0
  347. package/dist/service/glue/cfn/database/sim-cfn-glue-database-properties.d.ts.map +1 -0
  348. package/dist/service/glue/cfn/database/sim-cfn-glue-database-properties.js +61 -0
  349. package/dist/service/glue/cfn/database/sim-cfn-glue-database-properties.js.map +1 -0
  350. package/dist/service/glue/cfn/database/sim-cfn-glue-database-rules.d.ts +18 -0
  351. package/dist/service/glue/cfn/database/sim-cfn-glue-database-rules.d.ts.map +1 -0
  352. package/dist/service/glue/cfn/database/sim-cfn-glue-database-rules.js +43 -0
  353. package/dist/service/glue/cfn/database/sim-cfn-glue-database-rules.js.map +1 -0
  354. package/dist/service/glue/cfn/database/sim-cfn-glue-database-unsimulated-properties.d.ts +10 -0
  355. package/dist/service/glue/cfn/database/sim-cfn-glue-database-unsimulated-properties.d.ts.map +1 -0
  356. package/dist/service/glue/cfn/database/sim-cfn-glue-database-unsimulated-properties.js +25 -0
  357. package/dist/service/glue/cfn/database/sim-cfn-glue-database-unsimulated-properties.js.map +1 -0
  358. package/dist/service/glue/cfn/sim-cfn-glue-catalog-id.d.ts +18 -0
  359. package/dist/service/glue/cfn/sim-cfn-glue-catalog-id.d.ts.map +1 -0
  360. package/dist/service/glue/cfn/sim-cfn-glue-catalog-id.js +20 -0
  361. package/dist/service/glue/cfn/sim-cfn-glue-catalog-id.js.map +1 -0
  362. package/dist/service/glue/cfn/sim-cfn-glue-ignored.d.ts +19 -0
  363. package/dist/service/glue/cfn/sim-cfn-glue-ignored.d.ts.map +1 -0
  364. package/dist/service/glue/cfn/sim-cfn-glue-ignored.js +22 -0
  365. package/dist/service/glue/cfn/sim-cfn-glue-ignored.js.map +1 -0
  366. package/dist/service/glue/cfn/sim-cfn-glue-property-error.d.ts +5 -0
  367. package/dist/service/glue/cfn/sim-cfn-glue-property-error.d.ts.map +1 -0
  368. package/dist/service/glue/cfn/sim-cfn-glue-property-error.js +8 -0
  369. package/dist/service/glue/cfn/sim-cfn-glue-property-error.js.map +1 -0
  370. package/dist/service/glue/cfn/sim-cfn-glue-record.d.ts +37 -0
  371. package/dist/service/glue/cfn/sim-cfn-glue-record.d.ts.map +1 -0
  372. package/dist/service/glue/cfn/sim-cfn-glue-record.js +63 -0
  373. package/dist/service/glue/cfn/sim-cfn-glue-record.js.map +1 -0
  374. package/dist/service/glue/cfn/sim-cfn-glue-values.d.ts +40 -0
  375. package/dist/service/glue/cfn/sim-cfn-glue-values.d.ts.map +1 -0
  376. package/dist/service/glue/cfn/sim-cfn-glue-values.js +74 -0
  377. package/dist/service/glue/cfn/sim-cfn-glue-values.js.map +1 -0
  378. package/dist/service/glue/cfn/sim-glue-cfn-resource-factory.d.ts +28 -0
  379. package/dist/service/glue/cfn/sim-glue-cfn-resource-factory.d.ts.map +1 -0
  380. package/dist/service/glue/cfn/sim-glue-cfn-resource-factory.js +54 -0
  381. package/dist/service/glue/cfn/sim-glue-cfn-resource-factory.js.map +1 -0
  382. package/dist/service/glue/cfn/table/sim-cfn-glue-columns.d.ts +20 -0
  383. package/dist/service/glue/cfn/table/sim-cfn-glue-columns.d.ts.map +1 -0
  384. package/dist/service/glue/cfn/table/sim-cfn-glue-columns.js +51 -0
  385. package/dist/service/glue/cfn/table/sim-cfn-glue-columns.js.map +1 -0
  386. package/dist/service/glue/cfn/table/sim-cfn-glue-storage-descriptor.d.ts +19 -0
  387. package/dist/service/glue/cfn/table/sim-cfn-glue-storage-descriptor.d.ts.map +1 -0
  388. package/dist/service/glue/cfn/table/sim-cfn-glue-storage-descriptor.js +63 -0
  389. package/dist/service/glue/cfn/table/sim-cfn-glue-storage-descriptor.js.map +1 -0
  390. package/dist/service/glue/cfn/table/sim-cfn-glue-table-creator.d.ts +30 -0
  391. package/dist/service/glue/cfn/table/sim-cfn-glue-table-creator.d.ts.map +1 -0
  392. package/dist/service/glue/cfn/table/sim-cfn-glue-table-creator.js +47 -0
  393. package/dist/service/glue/cfn/table/sim-cfn-glue-table-creator.js.map +1 -0
  394. package/dist/service/glue/cfn/table/sim-cfn-glue-table-input.d.ts +16 -0
  395. package/dist/service/glue/cfn/table/sim-cfn-glue-table-input.d.ts.map +1 -0
  396. package/dist/service/glue/cfn/table/sim-cfn-glue-table-input.js +26 -0
  397. package/dist/service/glue/cfn/table/sim-cfn-glue-table-input.js.map +1 -0
  398. package/dist/service/glue/cfn/table/sim-cfn-glue-table-properties.d.ts +31 -0
  399. package/dist/service/glue/cfn/table/sim-cfn-glue-table-properties.d.ts.map +1 -0
  400. package/dist/service/glue/cfn/table/sim-cfn-glue-table-properties.js +55 -0
  401. package/dist/service/glue/cfn/table/sim-cfn-glue-table-properties.js.map +1 -0
  402. package/dist/service/glue/cfn/table/sim-cfn-glue-table-rules.d.ts +12 -0
  403. package/dist/service/glue/cfn/table/sim-cfn-glue-table-rules.d.ts.map +1 -0
  404. package/dist/service/glue/cfn/table/sim-cfn-glue-table-rules.js +37 -0
  405. package/dist/service/glue/cfn/table/sim-cfn-glue-table-rules.js.map +1 -0
  406. package/dist/service/glue/cfn/table/sim-cfn-glue-table-unsimulated-properties.d.ts +19 -0
  407. package/dist/service/glue/cfn/table/sim-cfn-glue-table-unsimulated-properties.d.ts.map +1 -0
  408. package/dist/service/glue/cfn/table/sim-cfn-glue-table-unsimulated-properties.js +75 -0
  409. package/dist/service/glue/cfn/table/sim-cfn-glue-table-unsimulated-properties.js.map +1 -0
  410. package/dist/service/glue/command/authorize/sim-glue-authorize-resources.d.ts +18 -0
  411. package/dist/service/glue/command/authorize/sim-glue-authorize-resources.d.ts.map +1 -0
  412. package/dist/service/glue/command/authorize/sim-glue-authorize-resources.js +26 -0
  413. package/dist/service/glue/command/authorize/sim-glue-authorize-resources.js.map +1 -0
  414. package/dist/service/glue/command/authorize/sim-glue-authorizer.d.ts +45 -0
  415. package/dist/service/glue/command/authorize/sim-glue-authorizer.d.ts.map +1 -0
  416. package/dist/service/glue/command/authorize/sim-glue-authorizer.js +59 -0
  417. package/dist/service/glue/command/authorize/sim-glue-authorizer.js.map +1 -0
  418. package/dist/service/glue/command/database/database.command.d.ts +86 -0
  419. package/dist/service/glue/command/database/database.command.d.ts.map +1 -0
  420. package/dist/service/glue/command/database/database.command.js +2 -0
  421. package/dist/service/glue/command/database/database.command.js.map +1 -0
  422. package/dist/service/glue/command/database/sim-glue-database-commands.d.ts +42 -0
  423. package/dist/service/glue/command/database/sim-glue-database-commands.d.ts.map +1 -0
  424. package/dist/service/glue/command/database/sim-glue-database-commands.js +74 -0
  425. package/dist/service/glue/command/database/sim-glue-database-commands.js.map +1 -0
  426. package/dist/service/glue/command/database/sim-glue-database-detail.d.ts +10 -0
  427. package/dist/service/glue/command/database/sim-glue-database-detail.d.ts.map +1 -0
  428. package/dist/service/glue/command/database/sim-glue-database-detail.js +18 -0
  429. package/dist/service/glue/command/database/sim-glue-database-detail.js.map +1 -0
  430. package/dist/service/glue/command/sim-glue-catalog-id.d.ts +11 -0
  431. package/dist/service/glue/command/sim-glue-catalog-id.d.ts.map +1 -0
  432. package/dist/service/glue/command/sim-glue-catalog-id.js +18 -0
  433. package/dist/service/glue/command/sim-glue-catalog-id.js.map +1 -0
  434. package/dist/service/glue/command/sim-glue-request-options.d.ts +12 -0
  435. package/dist/service/glue/command/sim-glue-request-options.d.ts.map +1 -0
  436. package/dist/service/glue/command/sim-glue-request-options.js +2 -0
  437. package/dist/service/glue/command/sim-glue-request-options.js.map +1 -0
  438. package/dist/service/glue/command/table/sim-glue-table-commands.d.ts +43 -0
  439. package/dist/service/glue/command/table/sim-glue-table-commands.d.ts.map +1 -0
  440. package/dist/service/glue/command/table/sim-glue-table-commands.js +86 -0
  441. package/dist/service/glue/command/table/sim-glue-table-commands.js.map +1 -0
  442. package/dist/service/glue/command/table/sim-glue-table-detail.d.ts +14 -0
  443. package/dist/service/glue/command/table/sim-glue-table-detail.d.ts.map +1 -0
  444. package/dist/service/glue/command/table/sim-glue-table-detail.js +28 -0
  445. package/dist/service/glue/command/table/sim-glue-table-detail.js.map +1 -0
  446. package/dist/service/glue/command/table/table.command.d.ts +105 -0
  447. package/dist/service/glue/command/table/table.command.d.ts.map +1 -0
  448. package/dist/service/glue/command/table/table.command.js +2 -0
  449. package/dist/service/glue/command/table/table.command.js.map +1 -0
  450. package/dist/service/glue/database/sim-glue-catalog-name.d.ts +8 -0
  451. package/dist/service/glue/database/sim-glue-catalog-name.d.ts.map +1 -0
  452. package/dist/service/glue/database/sim-glue-catalog-name.js +26 -0
  453. package/dist/service/glue/database/sim-glue-catalog-name.js.map +1 -0
  454. package/dist/service/glue/database/sim-glue-database-store.d.ts +37 -0
  455. package/dist/service/glue/database/sim-glue-database-store.d.ts.map +1 -0
  456. package/dist/service/glue/database/sim-glue-database-store.js +54 -0
  457. package/dist/service/glue/database/sim-glue-database-store.js.map +1 -0
  458. package/dist/service/glue/database/sim-glue-database.d.ts +31 -0
  459. package/dist/service/glue/database/sim-glue-database.d.ts.map +1 -0
  460. package/dist/service/glue/database/sim-glue-database.js +33 -0
  461. package/dist/service/glue/database/sim-glue-database.js.map +1 -0
  462. package/dist/service/glue/error/sim-glue.error.d.ts +38 -0
  463. package/dist/service/glue/error/sim-glue.error.d.ts.map +1 -0
  464. package/dist/service/glue/error/sim-glue.error.js +41 -0
  465. package/dist/service/glue/error/sim-glue.error.js.map +1 -0
  466. package/dist/service/glue/index.d.ts +14 -0
  467. package/dist/service/glue/index.d.ts.map +1 -0
  468. package/dist/service/glue/index.js +9 -0
  469. package/dist/service/glue/index.js.map +1 -0
  470. package/dist/service/glue/sdk/sim-glue-sdk-command-router.d.ts +14 -0
  471. package/dist/service/glue/sdk/sim-glue-sdk-command-router.d.ts.map +1 -0
  472. package/dist/service/glue/sdk/sim-glue-sdk-command-router.js +52 -0
  473. package/dist/service/glue/sdk/sim-glue-sdk-command-router.js.map +1 -0
  474. package/dist/service/glue/sim-glue.d.ts +74 -0
  475. package/dist/service/glue/sim-glue.d.ts.map +1 -0
  476. package/dist/service/glue/sim-glue.js +128 -0
  477. package/dist/service/glue/sim-glue.js.map +1 -0
  478. package/dist/service/glue/table/sim-glue-table-input-shape.d.ts +37 -0
  479. package/dist/service/glue/table/sim-glue-table-input-shape.d.ts.map +1 -0
  480. package/dist/service/glue/table/sim-glue-table-input-shape.js +26 -0
  481. package/dist/service/glue/table/sim-glue-table-input-shape.js.map +1 -0
  482. package/dist/service/glue/table/sim-glue-table-schema.d.ts +51 -0
  483. package/dist/service/glue/table/sim-glue-table-schema.d.ts.map +1 -0
  484. package/dist/service/glue/table/sim-glue-table-schema.js +2 -0
  485. package/dist/service/glue/table/sim-glue-table-schema.js.map +1 -0
  486. package/dist/service/glue/table/sim-glue-table-store.d.ts +35 -0
  487. package/dist/service/glue/table/sim-glue-table-store.d.ts.map +1 -0
  488. package/dist/service/glue/table/sim-glue-table-store.js +71 -0
  489. package/dist/service/glue/table/sim-glue-table-store.js.map +1 -0
  490. package/dist/service/glue/table/sim-glue-table.d.ts +55 -0
  491. package/dist/service/glue/table/sim-glue-table.d.ts.map +1 -0
  492. package/dist/service/glue/table/sim-glue-table.js +58 -0
  493. package/dist/service/glue/table/sim-glue-table.js.map +1 -0
  494. package/dist/service/glue/write/sim-glue-catalog-writer.d.ts +35 -0
  495. package/dist/service/glue/write/sim-glue-catalog-writer.d.ts.map +1 -0
  496. package/dist/service/glue/write/sim-glue-catalog-writer.js +40 -0
  497. package/dist/service/glue/write/sim-glue-catalog-writer.js.map +1 -0
  498. package/dist/service/logs/command/delivery/sim-logs-delivery-source-commands.d.ts +5 -1
  499. package/dist/service/logs/command/delivery/sim-logs-delivery-source-commands.d.ts.map +1 -1
  500. package/dist/service/logs/command/delivery/sim-logs-delivery-source-commands.js +10 -1
  501. package/dist/service/logs/command/delivery/sim-logs-delivery-source-commands.js.map +1 -1
  502. package/dist/service/logs/delivery/cloudfront/sim-aws-logs-delivery-distributions.d.ts +34 -0
  503. package/dist/service/logs/delivery/cloudfront/sim-aws-logs-delivery-distributions.d.ts.map +1 -0
  504. package/dist/service/logs/delivery/cloudfront/sim-aws-logs-delivery-distributions.js +54 -0
  505. package/dist/service/logs/delivery/cloudfront/sim-aws-logs-delivery-distributions.js.map +1 -0
  506. package/dist/service/logs/delivery/sim-logs-delivery-source-resources.d.ts +28 -0
  507. package/dist/service/logs/delivery/sim-logs-delivery-source-resources.d.ts.map +1 -0
  508. package/dist/service/logs/delivery/sim-logs-delivery-source-resources.js +14 -0
  509. package/dist/service/logs/delivery/sim-logs-delivery-source-resources.js.map +1 -0
  510. package/dist/service/logs/sim-logs-commands.d.ts +7 -0
  511. package/dist/service/logs/sim-logs-commands.d.ts.map +1 -1
  512. package/dist/service/logs/sim-logs-commands.js +3 -1
  513. package/dist/service/logs/sim-logs-commands.js.map +1 -1
  514. package/dist/util/record/defined-entries.d.ts +10 -0
  515. package/dist/util/record/defined-entries.d.ts.map +1 -0
  516. package/dist/util/record/defined-entries.js +12 -0
  517. package/dist/util/record/defined-entries.js.map +1 -0
  518. package/package.json +11 -1
@@ -0,0 +1,130 @@
1
+ import type { SimResponseMetadata } from "../../../aws/metadata/response-metadata.type.js";
2
+ import type { SimAthenaResultConfigurationInput } from "../work-group/work-group.command.js";
3
+ /**
4
+ * The database and catalog a query runs against.
5
+ */
6
+ export interface SimAthenaQueryExecutionContextInput {
7
+ readonly Database?: string | undefined;
8
+ readonly Catalog?: string | undefined;
9
+ }
10
+ /**
11
+ * What one query scanned and how long it took.
12
+ */
13
+ export interface SimAthenaQueryStatistics {
14
+ readonly DataScannedInBytes?: number | undefined;
15
+ readonly EngineExecutionTimeInMillis?: number | undefined;
16
+ readonly TotalExecutionTimeInMillis?: number | undefined;
17
+ }
18
+ /**
19
+ * Where a query has got to.
20
+ */
21
+ export interface SimAthenaQueryStatus {
22
+ readonly State?: string | undefined;
23
+ readonly StateChangeReason?: string | undefined;
24
+ readonly SubmissionDateTime?: Date | undefined;
25
+ readonly CompletionDateTime?: Date | undefined;
26
+ }
27
+ /**
28
+ * One query execution, as a response carries it.
29
+ */
30
+ export interface SimAthenaDescribedQueryExecution {
31
+ readonly QueryExecutionId?: string | undefined;
32
+ readonly Query?: string | undefined;
33
+ readonly StatementType?: string | undefined;
34
+ readonly WorkGroup?: string | undefined;
35
+ readonly QueryExecutionContext?: SimAthenaQueryExecutionContextInput | undefined;
36
+ readonly ResultConfiguration?: SimAthenaResultConfigurationInput | undefined;
37
+ readonly Status?: SimAthenaQueryStatus | undefined;
38
+ readonly Statistics?: SimAthenaQueryStatistics | undefined;
39
+ }
40
+ /**
41
+ * One column of a result set.
42
+ */
43
+ export interface SimAthenaColumnInfo {
44
+ readonly Name?: string | undefined;
45
+ readonly Type?: string | undefined;
46
+ }
47
+ /**
48
+ * One row of a result set.
49
+ */
50
+ export interface SimAthenaRow {
51
+ readonly Data?: readonly {
52
+ readonly VarCharValue?: string | undefined;
53
+ }[];
54
+ }
55
+ /**
56
+ * The rows one page of results carries, and what they are called.
57
+ */
58
+ export interface SimAthenaResultSet {
59
+ readonly Rows?: readonly SimAthenaRow[] | undefined;
60
+ readonly ResultSetMetadata?: {
61
+ readonly ColumnInfo?: readonly SimAthenaColumnInfo[] | undefined;
62
+ } | undefined;
63
+ }
64
+ /**
65
+ * Minimal structural sim Athena StartQueryExecution command.
66
+ *
67
+ * https://docs.aws.amazon.com/athena/latest/APIReference/API_StartQueryExecution.html
68
+ */
69
+ export interface SimStartQueryExecutionCommand {
70
+ readonly input: SimStartQueryExecutionCommandInput;
71
+ }
72
+ export interface SimStartQueryExecutionCommandInput {
73
+ readonly QueryString?: string | undefined;
74
+ readonly WorkGroup?: string | undefined;
75
+ readonly ClientRequestToken?: string | undefined;
76
+ readonly QueryExecutionContext?: SimAthenaQueryExecutionContextInput | undefined;
77
+ readonly ResultConfiguration?: SimAthenaResultConfigurationInput | undefined;
78
+ }
79
+ export interface SimStartQueryExecutionCommandOutput {
80
+ readonly QueryExecutionId?: string | undefined;
81
+ readonly $metadata: SimResponseMetadata;
82
+ }
83
+ /**
84
+ * Minimal structural sim Athena GetQueryExecution command.
85
+ *
86
+ * https://docs.aws.amazon.com/athena/latest/APIReference/API_GetQueryExecution.html
87
+ */
88
+ export interface SimGetQueryExecutionCommand {
89
+ readonly input: SimGetQueryExecutionCommandInput;
90
+ }
91
+ export interface SimGetQueryExecutionCommandInput {
92
+ readonly QueryExecutionId?: string | undefined;
93
+ }
94
+ export interface SimGetQueryExecutionCommandOutput {
95
+ readonly QueryExecution?: SimAthenaDescribedQueryExecution | undefined;
96
+ readonly $metadata: SimResponseMetadata;
97
+ }
98
+ /**
99
+ * Minimal structural sim Athena GetQueryResults command.
100
+ *
101
+ * https://docs.aws.amazon.com/athena/latest/APIReference/API_GetQueryResults.html
102
+ */
103
+ export interface SimGetQueryResultsCommand {
104
+ readonly input: SimGetQueryResultsCommandInput;
105
+ }
106
+ export interface SimGetQueryResultsCommandInput {
107
+ readonly QueryExecutionId?: string | undefined;
108
+ readonly MaxResults?: number | undefined;
109
+ readonly NextToken?: string | undefined;
110
+ }
111
+ export interface SimGetQueryResultsCommandOutput {
112
+ readonly ResultSet?: SimAthenaResultSet | undefined;
113
+ readonly NextToken?: string | undefined;
114
+ readonly $metadata: SimResponseMetadata;
115
+ }
116
+ /**
117
+ * Minimal structural sim Athena StopQueryExecution command.
118
+ *
119
+ * https://docs.aws.amazon.com/athena/latest/APIReference/API_StopQueryExecution.html
120
+ */
121
+ export interface SimStopQueryExecutionCommand {
122
+ readonly input: SimStopQueryExecutionCommandInput;
123
+ }
124
+ export interface SimStopQueryExecutionCommandInput {
125
+ readonly QueryExecutionId?: string | undefined;
126
+ }
127
+ export interface SimStopQueryExecutionCommandOutput {
128
+ readonly $metadata: SimResponseMetadata;
129
+ }
130
+ //# sourceMappingURL=execution.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execution.command.d.ts","sourceRoot":"","sources":["../../../../../src/service/athena/command/execution/execution.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAC3F,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AAE7F;;GAEG;AACH,MAAM,WAAW,mCAAmC;IAClD,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACvC;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjD,QAAQ,CAAC,2BAA2B,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1D,QAAQ,CAAC,0BAA0B,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1D;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChD,QAAQ,CAAC,kBAAkB,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC/C,QAAQ,CAAC,kBAAkB,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;CAChD;AAED;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/C,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5C,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,QAAQ,CAAC,qBAAqB,CAAC,EAC3B,mCAAmC,GACnC,SAAS,CAAC;IACd,QAAQ,CAAC,mBAAmB,CAAC,EAAE,iCAAiC,GAAG,SAAS,CAAC;IAC7E,QAAQ,CAAC,MAAM,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IACnD,QAAQ,CAAC,UAAU,CAAC,EAAE,wBAAwB,GAAG,SAAS,CAAC;CAC5D;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS;QAAE,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,EAAE,CAAC;CAC3E;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,YAAY,EAAE,GAAG,SAAS,CAAC;IACpD,QAAQ,CAAC,iBAAiB,CAAC,EACvB;QAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,mBAAmB,EAAE,GAAG,SAAS,CAAA;KAAE,GACpE,SAAS,CAAC;CACf;AAED;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,KAAK,EAAE,kCAAkC,CAAC;CACpD;AAED,MAAM,WAAW,kCAAkC;IACjD,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1C,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjD,QAAQ,CAAC,qBAAqB,CAAC,EAC3B,mCAAmC,GACnC,SAAS,CAAC;IACd,QAAQ,CAAC,mBAAmB,CAAC,EAAE,iCAAiC,GAAG,SAAS,CAAC;CAC9E;AAED,MAAM,WAAW,mCAAmC;IAClD,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/C,QAAQ,CAAC,SAAS,EAAE,mBAAmB,CAAC;CACzC;AAED;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,KAAK,EAAE,gCAAgC,CAAC;CAClD;AAED,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChD;AAED,MAAM,WAAW,iCAAiC;IAChD,QAAQ,CAAC,cAAc,CAAC,EAAE,gCAAgC,GAAG,SAAS,CAAC;IACvE,QAAQ,CAAC,SAAS,EAAE,mBAAmB,CAAC;CACzC;AAED;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,KAAK,EAAE,8BAA8B,CAAC;CAChD;AAED,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/C,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACzC;AAED,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,CAAC,SAAS,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IACpD,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,QAAQ,CAAC,SAAS,EAAE,mBAAmB,CAAC;CACzC;AAED;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,KAAK,EAAE,iCAAiC,CAAC;CACnD;AAED,MAAM,WAAW,iCAAiC;IAChD,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChD;AAED,MAAM,WAAW,kCAAkC;IACjD,QAAQ,CAAC,SAAS,EAAE,mBAAmB,CAAC;CACzC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=execution.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execution.command.js","sourceRoot":"","sources":["../../../../../src/service/athena/command/execution/execution.command.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import type { SimAthenaQueryExecution } from "../../execution/sim-athena-query-execution.js";
2
+ import type { SimAthenaDescribedQueryExecution } from "./execution.command.js";
3
+ /**
4
+ * One execution as `GetQueryExecution` answers with it.
5
+ *
6
+ * The result configuration names the object this query's results were written
7
+ * to rather than the prefix they were written under, which is what real Athena
8
+ * reports once a query has an execution id to name an object by.
9
+ */
10
+ export declare function describedQueryExecution(execution: SimAthenaQueryExecution): SimAthenaDescribedQueryExecution;
11
+ //# sourceMappingURL=sim-athena-described-execution.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-athena-described-execution.d.ts","sourceRoot":"","sources":["../../../../../src/service/athena/command/execution/sim-athena-described-execution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AAE7F,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAC;AAE/E;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,SAAS,EAAE,uBAAuB,GACjC,gCAAgC,CA2BlC"}
@@ -0,0 +1,50 @@
1
+ import { SimAthenaOutputLocation } from "../../execution/sim-athena-output-location.js";
2
+ /**
3
+ * One execution as `GetQueryExecution` answers with it.
4
+ *
5
+ * The result configuration names the object this query's results were written
6
+ * to rather than the prefix they were written under, which is what real Athena
7
+ * reports once a query has an execution id to name an object by.
8
+ */
9
+ export function describedQueryExecution(execution) {
10
+ const location = new SimAthenaOutputLocation(execution.outputLocation);
11
+ return {
12
+ QueryExecutionId: execution.queryExecutionId,
13
+ Query: execution.queryString,
14
+ StatementType: "DML",
15
+ WorkGroup: execution.workGroupName,
16
+ QueryExecutionContext: {
17
+ Database: execution.database,
18
+ Catalog: execution.catalog,
19
+ },
20
+ ResultConfiguration: {
21
+ OutputLocation: location.uriFor(execution.queryExecutionId),
22
+ },
23
+ Status: {
24
+ State: execution.state,
25
+ StateChangeReason: execution.stateChangeReason,
26
+ SubmissionDateTime: execution.submittedAt,
27
+ CompletionDateTime: execution.completedAt,
28
+ },
29
+ Statistics: {
30
+ DataScannedInBytes: execution.bytesScanned,
31
+ EngineExecutionTimeInMillis: executionMillis(execution),
32
+ TotalExecutionTimeInMillis: executionMillis(execution),
33
+ },
34
+ };
35
+ }
36
+ /**
37
+ * How long the query took, once it has finished.
38
+ *
39
+ * Simulated time is whatever the test's clock says, so a query that ran
40
+ * between two ticks of a frozen clock took no time at all. That is the honest
41
+ * answer rather than a made-up duration.
42
+ */
43
+ function executionMillis(execution) {
44
+ const completedAt = execution.completedAt;
45
+ if (completedAt === undefined) {
46
+ return 0;
47
+ }
48
+ return completedAt.getTime() - execution.submittedAt.getTime();
49
+ }
50
+ //# sourceMappingURL=sim-athena-described-execution.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-athena-described-execution.js","sourceRoot":"","sources":["../../../../../src/service/athena/command/execution/sim-athena-described-execution.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AAGxF;;;;;;GAMG;AACH,MAAM,UAAU,uBAAuB,CACrC,SAAkC;IAElC,MAAM,QAAQ,GAAG,IAAI,uBAAuB,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IAEvE,OAAO;QACL,gBAAgB,EAAE,SAAS,CAAC,gBAAgB;QAC5C,KAAK,EAAE,SAAS,CAAC,WAAW;QAC5B,aAAa,EAAE,KAAK;QACpB,SAAS,EAAE,SAAS,CAAC,aAAa;QAClC,qBAAqB,EAAE;YACrB,QAAQ,EAAE,SAAS,CAAC,QAAQ;YAC5B,OAAO,EAAE,SAAS,CAAC,OAAO;SAC3B;QACD,mBAAmB,EAAE;YACnB,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,gBAAgB,CAAC;SAC5D;QACD,MAAM,EAAE;YACN,KAAK,EAAE,SAAS,CAAC,KAAK;YACtB,iBAAiB,EAAE,SAAS,CAAC,iBAAiB;YAC9C,kBAAkB,EAAE,SAAS,CAAC,WAAW;YACzC,kBAAkB,EAAE,SAAS,CAAC,WAAW;SAC1C;QACD,UAAU,EAAE;YACV,kBAAkB,EAAE,SAAS,CAAC,YAAY;YAC1C,2BAA2B,EAAE,eAAe,CAAC,SAAS,CAAC;YACvD,0BAA0B,EAAE,eAAe,CAAC,SAAS,CAAC;SACvD;KACF,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,SAAS,eAAe,CAAC,SAAkC;IACzD,MAAM,WAAW,GAAG,SAAS,CAAC,WAAW,CAAC;IAE1C,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;QAC9B,OAAO,CAAC,CAAC;IACX,CAAC;IAED,OAAO,WAAW,CAAC,OAAO,EAAE,GAAG,SAAS,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC;AACjE,CAAC"}
@@ -0,0 +1,30 @@
1
+ import type { SimAthenaQueryExecutionStore } from "../../execution/sim-athena-query-execution-store.js";
2
+ import type { SimAthenaAuthorizer } from "../authorize/sim-athena-authorizer.js";
3
+ import type { SimAthenaRequestOptions } from "../sim-athena-request-options.js";
4
+ import type { SimGetQueryExecutionCommand, SimGetQueryExecutionCommandOutput, SimGetQueryResultsCommand, SimGetQueryResultsCommandOutput } from "./execution.command.js";
5
+ interface SimAthenaExecutionReadsProperties {
6
+ readonly executions: SimAthenaQueryExecutionStore;
7
+ readonly authorizer: SimAthenaAuthorizer;
8
+ }
9
+ /**
10
+ * The commands that read a query execution without changing it.
11
+ */
12
+ export declare class SimAthenaExecutionReads {
13
+ private readonly executions;
14
+ private readonly authorizer;
15
+ constructor(properties: SimAthenaExecutionReadsProperties);
16
+ /**
17
+ * Report where a query has got to.
18
+ *
19
+ * This is what a client polls, and every state a query passes through is
20
+ * visible here rather than only the one it ended in.
21
+ */
22
+ getQueryExecution(command: SimGetQueryExecutionCommand, options?: SimAthenaRequestOptions): SimGetQueryExecutionCommandOutput;
23
+ /**
24
+ * Read the rows a query answered.
25
+ */
26
+ getQueryResults(command: SimGetQueryResultsCommand, options?: SimAthenaRequestOptions): SimGetQueryResultsCommandOutput;
27
+ private required;
28
+ }
29
+ export {};
30
+ //# sourceMappingURL=sim-athena-execution-reads.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-athena-execution-reads.d.ts","sourceRoot":"","sources":["../../../../../src/service/athena/command/execution/sim-athena-execution-reads.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,qDAAqD,CAAC;AAGxG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAGhF,OAAO,KAAK,EACV,2BAA2B,EAC3B,iCAAiC,EACjC,yBAAyB,EACzB,+BAA+B,EAChC,MAAM,wBAAwB,CAAC;AAEhC,UAAU,iCAAiC;IACzC,QAAQ,CAAC,UAAU,EAAE,4BAA4B,CAAC;IAClD,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC;CAC1C;AAED;;GAEG;AACH,qBAAa,uBAAuB;IAClC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA+B;IAC1D,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAsB;IAEjD,YAAY,UAAU,EAAE,iCAAiC,EAGxD;IAED;;;;;OAKG;IACH,iBAAiB,CACf,OAAO,EAAE,2BAA2B,EACpC,OAAO,CAAC,EAAE,uBAAuB,GAChC,iCAAiC,CAanC;IAED;;OAEG;IACH,eAAe,CACb,OAAO,EAAE,yBAAyB,EAClC,OAAO,CAAC,EAAE,uBAAuB,GAChC,+BAA+B,CAUjC;IAED,OAAO,CAAC,QAAQ;CAWjB"}
@@ -0,0 +1,43 @@
1
+ import { SimAthenaInvalidRequestException } from "../../error/sim-athena.error.js";
2
+ import { describedQueryExecution } from "./sim-athena-described-execution.js";
3
+ import { queryResultsPage } from "./sim-athena-query-results-page.js";
4
+ /**
5
+ * The commands that read a query execution without changing it.
6
+ */
7
+ export class SimAthenaExecutionReads {
8
+ executions;
9
+ authorizer;
10
+ constructor(properties) {
11
+ this.executions = properties.executions;
12
+ this.authorizer = properties.authorizer;
13
+ }
14
+ /**
15
+ * Report where a query has got to.
16
+ *
17
+ * This is what a client polls, and every state a query passes through is
18
+ * visible here rather than only the one it ended in.
19
+ */
20
+ getQueryExecution(command, options) {
21
+ const execution = this.required(command.input.QueryExecutionId);
22
+ this.authorizer.authorizeWorkGroup("athena:GetQueryExecution", execution.workGroupName, options);
23
+ return {
24
+ $metadata: {},
25
+ QueryExecution: describedQueryExecution(execution),
26
+ };
27
+ }
28
+ /**
29
+ * Read the rows a query answered.
30
+ */
31
+ getQueryResults(command, options) {
32
+ const execution = this.required(command.input.QueryExecutionId);
33
+ this.authorizer.authorizeWorkGroup("athena:GetQueryResults", execution.workGroupName, options);
34
+ return queryResultsPage(execution, command.input);
35
+ }
36
+ required(queryExecutionId) {
37
+ if (queryExecutionId === undefined || queryExecutionId === "") {
38
+ throw new SimAthenaInvalidRequestException("QueryExecutionId is required");
39
+ }
40
+ return this.executions.require(queryExecutionId);
41
+ }
42
+ }
43
+ //# sourceMappingURL=sim-athena-execution-reads.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-athena-execution-reads.js","sourceRoot":"","sources":["../../../../../src/service/athena/command/execution/sim-athena-execution-reads.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gCAAgC,EAAE,MAAM,iCAAiC,CAAC;AAGnF,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAatE;;GAEG;AACH,MAAM,OAAO,uBAAuB;IACjB,UAAU,CAA+B;IACzC,UAAU,CAAsB;IAEjD,YAAY,UAA6C;QACvD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;QACxC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;IAC1C,CAAC;IAED;;;;;OAKG;IACH,iBAAiB,CACf,OAAoC,EACpC,OAAiC;QAEjC,MAAM,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;QAEhE,IAAI,CAAC,UAAU,CAAC,kBAAkB,CAChC,0BAA0B,EAC1B,SAAS,CAAC,aAAa,EACvB,OAAO,CACR,CAAC;QAEF,OAAO;YACL,SAAS,EAAE,EAAE;YACb,cAAc,EAAE,uBAAuB,CAAC,SAAS,CAAC;SACnD,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,eAAe,CACb,OAAkC,EAClC,OAAiC;QAEjC,MAAM,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;QAEhE,IAAI,CAAC,UAAU,CAAC,kBAAkB,CAChC,wBAAwB,EACxB,SAAS,CAAC,aAAa,EACvB,OAAO,CACR,CAAC;QAEF,OAAO,gBAAgB,CAAC,SAAS,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACpD,CAAC;IAEO,QAAQ,CACd,gBAAoC;QAEpC,IAAI,gBAAgB,KAAK,SAAS,IAAI,gBAAgB,KAAK,EAAE,EAAE,CAAC;YAC9D,MAAM,IAAI,gCAAgC,CACxC,8BAA8B,CAC/B,CAAC;QACJ,CAAC;QAED,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACnD,CAAC;CACF"}
@@ -0,0 +1,43 @@
1
+ import type { SimClock } from "../../../../util/clock/sim-clock.js";
2
+ import type { SimAthenaQueryExecutionStore } from "../../execution/sim-athena-query-execution-store.js";
3
+ import type { SimAthenaQueryRunner } from "../../execution/sim-athena-query-runner.js";
4
+ import type { SimAthenaQueryTokens } from "../../execution/sim-athena-query-tokens.js";
5
+ import type { SimAthenaWorkGroupStore } from "../../workgroup/sim-athena-work-group-store.js";
6
+ import type { SimAthenaAuthorizer } from "../authorize/sim-athena-authorizer.js";
7
+ import type { SimAthenaRequestOptions } from "../sim-athena-request-options.js";
8
+ import type { SimStartQueryExecutionCommand, SimStartQueryExecutionCommandOutput, SimStopQueryExecutionCommand, SimStopQueryExecutionCommandOutput } from "./execution.command.js";
9
+ interface SimAthenaExecutionWritesProperties {
10
+ readonly executions: SimAthenaQueryExecutionStore;
11
+ readonly workGroups: SimAthenaWorkGroupStore;
12
+ readonly runner: SimAthenaQueryRunner;
13
+ readonly tokens: SimAthenaQueryTokens;
14
+ readonly authorizer: SimAthenaAuthorizer;
15
+ readonly clock: SimClock;
16
+ }
17
+ /**
18
+ * The commands that start and stop a query execution.
19
+ */
20
+ export declare class SimAthenaExecutionWrites {
21
+ #private;
22
+ constructor(properties: SimAthenaExecutionWritesProperties);
23
+ /**
24
+ * Queue a query, and answer with the id everything else names it by.
25
+ *
26
+ * The query is queued rather than run. Whatever it answers with happens on
27
+ * the background scheduler, so a caller polling sees it queued first, as it
28
+ * would on real Athena.
29
+ *
30
+ * A repeated `ClientRequestToken` answers with the execution it started the
31
+ * first time rather than running the query again.
32
+ */
33
+ startQueryExecution(command: SimStartQueryExecutionCommand, options?: SimAthenaRequestOptions): SimStartQueryExecutionCommandOutput;
34
+ /**
35
+ * Give up on a query that has not finished.
36
+ *
37
+ * A query that already settled is left alone. Real Athena answers a stop
38
+ * that arrived too late without changing anything, rather than failing.
39
+ */
40
+ stopQueryExecution(command: SimStopQueryExecutionCommand, options?: SimAthenaRequestOptions): SimStopQueryExecutionCommandOutput;
41
+ }
42
+ export {};
43
+ //# sourceMappingURL=sim-athena-execution-writes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-athena-execution-writes.d.ts","sourceRoot":"","sources":["../../../../../src/service/athena/command/execution/sim-athena-execution-writes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,qDAAqD,CAAC;AACxG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AACvF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAEvF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gDAAgD,CAAC;AAC9F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAGhF,OAAO,KAAK,EACV,6BAA6B,EAC7B,mCAAmC,EACnC,4BAA4B,EAC5B,kCAAkC,EACnC,MAAM,wBAAwB,CAAC;AAEhC,UAAU,kCAAkC;IAC1C,QAAQ,CAAC,UAAU,EAAE,4BAA4B,CAAC;IAClD,QAAQ,CAAC,UAAU,EAAE,uBAAuB,CAAC;IAC7C,QAAQ,CAAC,MAAM,EAAE,oBAAoB,CAAC;IACtC,QAAQ,CAAC,MAAM,EAAE,oBAAoB,CAAC;IACtC,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC;IACzC,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;CAC1B;AAED;;GAEG;AACH,qBAAa,wBAAwB;;IAGnC,YAAY,UAAU,EAAE,kCAAkC,EAEzD;IAED;;;;;;;;;OASG;IACH,mBAAmB,CACjB,OAAO,EAAE,6BAA6B,EACtC,OAAO,CAAC,EAAE,uBAAuB,GAChC,mCAAmC,CAWrC;IAED;;;;;OAKG;IACH,kBAAkB,CAChB,OAAO,EAAE,4BAA4B,EACrC,OAAO,CAAC,EAAE,uBAAuB,GAChC,kCAAkC,CAiBpC;CACF"}
@@ -0,0 +1,42 @@
1
+ import { requestedWorkGroupName } from "../../workgroup/sim-athena-work-group-name.js";
2
+ import { startQuery } from "./sim-athena-query-start.js";
3
+ import { stopQuery } from "./sim-athena-query-stop.js";
4
+ /**
5
+ * The commands that start and stop a query execution.
6
+ */
7
+ export class SimAthenaExecutionWrites {
8
+ #properties;
9
+ constructor(properties) {
10
+ this.#properties = properties;
11
+ }
12
+ /**
13
+ * Queue a query, and answer with the id everything else names it by.
14
+ *
15
+ * The query is queued rather than run. Whatever it answers with happens on
16
+ * the background scheduler, so a caller polling sees it queued first, as it
17
+ * would on real Athena.
18
+ *
19
+ * A repeated `ClientRequestToken` answers with the execution it started the
20
+ * first time rather than running the query again.
21
+ */
22
+ startQueryExecution(command, options) {
23
+ const input = command.input;
24
+ const workGroupName = requestedWorkGroupName(input.WorkGroup);
25
+ this.#properties.authorizer.authorizeWorkGroup("athena:StartQueryExecution", workGroupName, options);
26
+ return startQuery(this.#properties, workGroupName, input, options?.caller);
27
+ }
28
+ /**
29
+ * Give up on a query that has not finished.
30
+ *
31
+ * A query that already settled is left alone. Real Athena answers a stop
32
+ * that arrived too late without changing anything, rather than failing.
33
+ */
34
+ stopQueryExecution(command, options) {
35
+ const { executions, authorizer, clock } = this.#properties;
36
+ stopQuery(executions, command.input.QueryExecutionId, clock, (execution) => {
37
+ authorizer.authorizeWorkGroup("athena:StopQueryExecution", execution.workGroupName, options);
38
+ });
39
+ return { $metadata: {} };
40
+ }
41
+ }
42
+ //# sourceMappingURL=sim-athena-execution-writes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-athena-execution-writes.js","sourceRoot":"","sources":["../../../../../src/service/athena/command/execution/sim-athena-execution-writes.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AAIvF,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAiBvD;;GAEG;AACH,MAAM,OAAO,wBAAwB;IAC1B,WAAW,CAAqC;IAEzD,YAAY,UAA8C;QACxD,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;IAChC,CAAC;IAED;;;;;;;;;OASG;IACH,mBAAmB,CACjB,OAAsC,EACtC,OAAiC;QAEjC,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;QAC5B,MAAM,aAAa,GAAG,sBAAsB,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QAE9D,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,kBAAkB,CAC5C,4BAA4B,EAC5B,aAAa,EACb,OAAO,CACR,CAAC;QAEF,OAAO,UAAU,CAAC,IAAI,CAAC,WAAW,EAAE,aAAa,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;OAKG;IACH,kBAAkB,CAChB,OAAqC,EACrC,OAAiC;QAEjC,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,WAAW,CAAC;QAE3D,SAAS,CACP,UAAU,EACV,OAAO,CAAC,KAAK,CAAC,gBAAgB,EAC9B,KAAK,EACL,CAAC,SAAS,EAAE,EAAE;YACZ,UAAU,CAAC,kBAAkB,CAC3B,2BAA2B,EAC3B,SAAS,CAAC,aAAa,EACvB,OAAO,CACR,CAAC;QACJ,CAAC,CACF,CAAC;QAEF,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;IAC3B,CAAC;CACF"}
@@ -0,0 +1,17 @@
1
+ import type { SimAthenaWorkGroup } from "../../workgroup/sim-athena-work-group.js";
2
+ import type { SimAthenaResultConfigurationInput } from "../work-group/work-group.command.js";
3
+ /**
4
+ * Where one query's results go.
5
+ *
6
+ * A workgroup with `EnforceWorkGroupConfiguration` set wins whatever the
7
+ * request asked for, which is the whole point of the flag: a stack setting a
8
+ * results Bucket wants every query in the workgroup to land there. A workgroup
9
+ * without it lets a request name its own location and falls back to the
10
+ * workgroup's.
11
+ *
12
+ * A query with neither is refused. Athena has nowhere to put the results, and
13
+ * running it would leave the caller with a `SUCCEEDED` execution naming an
14
+ * object that was never written.
15
+ */
16
+ export declare function queryOutputLocation(workGroup: SimAthenaWorkGroup, requested: SimAthenaResultConfigurationInput | undefined): string;
17
+ //# sourceMappingURL=sim-athena-query-output-location.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-athena-query-output-location.d.ts","sourceRoot":"","sources":["../../../../../src/service/athena/command/execution/sim-athena-query-output-location.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AAE7F;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CACjC,SAAS,EAAE,kBAAkB,EAC7B,SAAS,EAAE,iCAAiC,GAAG,SAAS,GACvD,MAAM,CAgBR"}
@@ -0,0 +1,28 @@
1
+ import { SimAthenaOutputLocation } from "../../execution/sim-athena-output-location.js";
2
+ import { SimAthenaInvalidRequestException } from "../../error/sim-athena.error.js";
3
+ /**
4
+ * Where one query's results go.
5
+ *
6
+ * A workgroup with `EnforceWorkGroupConfiguration` set wins whatever the
7
+ * request asked for, which is the whole point of the flag: a stack setting a
8
+ * results Bucket wants every query in the workgroup to land there. A workgroup
9
+ * without it lets a request name its own location and falls back to the
10
+ * workgroup's.
11
+ *
12
+ * A query with neither is refused. Athena has nowhere to put the results, and
13
+ * running it would leave the caller with a `SUCCEEDED` execution naming an
14
+ * object that was never written.
15
+ */
16
+ export function queryOutputLocation(workGroup, requested) {
17
+ const location = workGroup.enforcesConfiguration
18
+ ? workGroup.outputLocation
19
+ : (requested?.OutputLocation ?? workGroup.outputLocation);
20
+ if (location === undefined || location === "") {
21
+ throw new SimAthenaInvalidRequestException(`No output location provided. Set ResultConfiguration.OutputLocation ` +
22
+ `on the request, or on workgroup ${workGroup.name}.`);
23
+ }
24
+ // Refuses a location that is not an S3 URI before the query is queued.
25
+ new SimAthenaOutputLocation(location);
26
+ return location;
27
+ }
28
+ //# sourceMappingURL=sim-athena-query-output-location.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-athena-query-output-location.js","sourceRoot":"","sources":["../../../../../src/service/athena/command/execution/sim-athena-query-output-location.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,gCAAgC,EAAE,MAAM,iCAAiC,CAAC;AAInF;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,mBAAmB,CACjC,SAA6B,EAC7B,SAAwD;IAExD,MAAM,QAAQ,GAAG,SAAS,CAAC,qBAAqB;QAC9C,CAAC,CAAC,SAAS,CAAC,cAAc;QAC1B,CAAC,CAAC,CAAC,SAAS,EAAE,cAAc,IAAI,SAAS,CAAC,cAAc,CAAC,CAAC;IAE5D,IAAI,QAAQ,KAAK,SAAS,IAAI,QAAQ,KAAK,EAAE,EAAE,CAAC;QAC9C,MAAM,IAAI,gCAAgC,CACxC,sEAAsE;YACpE,mCAAmC,SAAS,CAAC,IAAI,GAAG,CACvD,CAAC;IACJ,CAAC;IAED,uEAAuE;IACvE,IAAI,uBAAuB,CAAC,QAAQ,CAAC,CAAC;IAEtC,OAAO,QAAQ,CAAC;AAClB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { SimAthenaQueryExecution } from "../../execution/sim-athena-query-execution.js";
2
+ import type { SimGetQueryResultsCommandInput, SimGetQueryResultsCommandOutput } from "./execution.command.js";
3
+ /**
4
+ * One page of a finished query's rows.
5
+ *
6
+ * A query that has not succeeded has no rows to read, which real Athena
7
+ * refuses rather than answering with nothing.
8
+ */
9
+ export declare function queryResultsPage(execution: SimAthenaQueryExecution, input: SimGetQueryResultsCommandInput): SimGetQueryResultsCommandOutput;
10
+ //# sourceMappingURL=sim-athena-query-results-page.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-athena-query-results-page.d.ts","sourceRoot":"","sources":["../../../../../src/service/athena/command/execution/sim-athena-query-results-page.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AAG7F,OAAO,KAAK,EACV,8BAA8B,EAC9B,+BAA+B,EAChC,MAAM,wBAAwB,CAAC;AAUhC;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,uBAAuB,EAClC,KAAK,EAAE,8BAA8B,GACpC,+BAA+B,CAuBjC"}
@@ -0,0 +1,36 @@
1
+ import { SimAthenaInvalidRequestException } from "../../error/sim-athena.error.js";
2
+ import { SimAthenaPage } from "../sim-athena-page.js";
3
+ import { queryResultRows, queryResultSet } from "./sim-athena-query-rows.js";
4
+ /**
5
+ * The most rows one `GetQueryResults` carries.
6
+ *
7
+ * This paging is over rows rather than resources, and Athena lets it go far
8
+ * past the 50 a listing of workgroups or named queries stops at.
9
+ */
10
+ const maximumResultRows = 1000;
11
+ /**
12
+ * One page of a finished query's rows.
13
+ *
14
+ * A query that has not succeeded has no rows to read, which real Athena
15
+ * refuses rather than answering with nothing.
16
+ */
17
+ export function queryResultsPage(execution, input) {
18
+ const result = execution.result;
19
+ if (result === undefined) {
20
+ throw new SimAthenaInvalidRequestException(`Query ${execution.queryExecutionId} has not yet finished. Its ` +
21
+ `current state is ${execution.state}.`);
22
+ }
23
+ const page = new SimAthenaPage({
24
+ listed: queryResultRows(result),
25
+ maxResults: input.MaxResults,
26
+ nextToken: input.NextToken,
27
+ minimumResults: 0,
28
+ maximumResults: maximumResultRows,
29
+ });
30
+ return {
31
+ $metadata: {},
32
+ ResultSet: queryResultSet(result, page.items),
33
+ NextToken: page.nextToken,
34
+ };
35
+ }
36
+ //# sourceMappingURL=sim-athena-query-results-page.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-athena-query-results-page.js","sourceRoot":"","sources":["../../../../../src/service/athena/command/execution/sim-athena-query-results-page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,iCAAiC,CAAC;AAEnF,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAM7E;;;;;GAKG;AACH,MAAM,iBAAiB,GAAG,IAAI,CAAC;AAE/B;;;;;GAKG;AACH,MAAM,UAAU,gBAAgB,CAC9B,SAAkC,EAClC,KAAqC;IAErC,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC;IAEhC,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,MAAM,IAAI,gCAAgC,CACxC,SAAS,SAAS,CAAC,gBAAgB,6BAA6B;YAC9D,oBAAoB,SAAS,CAAC,KAAK,GAAG,CACzC,CAAC;IACJ,CAAC;IAED,MAAM,IAAI,GAAG,IAAI,aAAa,CAAC;QAC7B,MAAM,EAAE,eAAe,CAAC,MAAM,CAAC;QAC/B,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,cAAc,EAAE,CAAC;QACjB,cAAc,EAAE,iBAAiB;KAClC,CAAC,CAAC;IAEH,OAAO;QACL,SAAS,EAAE,EAAE;QACb,SAAS,EAAE,cAAc,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC;QAC7C,SAAS,EAAE,IAAI,CAAC,SAAS;KAC1B,CAAC;AACJ,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { SimAthenaResolvedResult } from "../../result/sim-athena-resolved-result.js";
2
+ import type { SimAthenaResultSet, SimAthenaRow } from "./execution.command.js";
3
+ /**
4
+ * Every row `GetQueryResults` carries, header first.
5
+ *
6
+ * Athena puts the column names in the first row of a `SELECT` result set and
7
+ * the values after them, so a caller reading the rows has to skip one. That
8
+ * catches people out often enough to be worth simulating rather than
9
+ * smoothing over.
10
+ */
11
+ export declare function queryResultRows(result: SimAthenaResolvedResult): readonly SimAthenaRow[];
12
+ /**
13
+ * One page of results, with the columns they belong to.
14
+ */
15
+ export declare function queryResultSet(result: SimAthenaResolvedResult, rows: readonly SimAthenaRow[]): SimAthenaResultSet;
16
+ //# sourceMappingURL=sim-athena-query-rows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-athena-query-rows.d.ts","sourceRoot":"","sources":["../../../../../src/service/athena/command/execution/sim-athena-query-rows.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AAC1F,OAAO,KAAK,EAEV,kBAAkB,EAClB,YAAY,EACb,MAAM,wBAAwB,CAAC;AAEhC;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,uBAAuB,GAC9B,SAAS,YAAY,EAAE,CAIzB;AAED;;GAEG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,uBAAuB,EAC/B,IAAI,EAAE,SAAS,YAAY,EAAE,GAC5B,kBAAkB,CAKpB"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Every row `GetQueryResults` carries, header first.
3
+ *
4
+ * Athena puts the column names in the first row of a `SELECT` result set and
5
+ * the values after them, so a caller reading the rows has to skip one. That
6
+ * catches people out often enough to be worth simulating rather than
7
+ * smoothing over.
8
+ */
9
+ export function queryResultRows(result) {
10
+ const header = result.columns.map((column) => column.name);
11
+ return [header, ...result.rows].map(resultRow);
12
+ }
13
+ /**
14
+ * One page of results, with the columns they belong to.
15
+ */
16
+ export function queryResultSet(result, rows) {
17
+ return {
18
+ Rows: rows,
19
+ ResultSetMetadata: { ColumnInfo: result.columns.map(columnInfo) },
20
+ };
21
+ }
22
+ function resultRow(values) {
23
+ return { Data: values.map((value) => ({ VarCharValue: value })) };
24
+ }
25
+ function columnInfo(column) {
26
+ return { Name: column.name, Type: column.type };
27
+ }
28
+ //# sourceMappingURL=sim-athena-query-rows.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-athena-query-rows.js","sourceRoot":"","sources":["../../../../../src/service/athena/command/execution/sim-athena-query-rows.ts"],"names":[],"mappings":"AAOA;;;;;;;GAOG;AACH,MAAM,UAAU,eAAe,CAC7B,MAA+B;IAE/B,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAE3D,OAAO,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;AACjD,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,cAAc,CAC5B,MAA+B,EAC/B,IAA6B;IAE7B,OAAO;QACL,IAAI,EAAE,IAAI;QACV,iBAAiB,EAAE,EAAE,UAAU,EAAE,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE;KAClE,CAAC;AACJ,CAAC;AAED,SAAS,SAAS,CAAC,MAAyB;IAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC;AACpE,CAAC;AAED,SAAS,UAAU,CAAC,MAGnB;IACC,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC;AAClD,CAAC"}
@@ -0,0 +1,24 @@
1
+ import type { SimClock } from "../../../../util/clock/sim-clock.js";
2
+ import type { SimAthenaQueryExecutionStore } from "../../execution/sim-athena-query-execution-store.js";
3
+ import type { SimAthenaQueryRunner } from "../../execution/sim-athena-query-runner.js";
4
+ import type { SimAthenaQueryTokens } from "../../execution/sim-athena-query-tokens.js";
5
+ import type { SimAthenaWorkGroupStore } from "../../workgroup/sim-athena-work-group-store.js";
6
+ import type { SimAwsCaller } from "../../../aws/caller/sim-aws-caller.js";
7
+ import type { SimStartQueryExecutionCommandInput, SimStartQueryExecutionCommandOutput } from "./execution.command.js";
8
+ interface SimAthenaQueryStartProperties {
9
+ readonly executions: SimAthenaQueryExecutionStore;
10
+ readonly workGroups: SimAthenaWorkGroupStore;
11
+ readonly runner: SimAthenaQueryRunner;
12
+ readonly tokens: SimAthenaQueryTokens;
13
+ readonly clock: SimClock;
14
+ }
15
+ /**
16
+ * Queue one query, or answer with the one its token already started.
17
+ *
18
+ * A repeated `ClientRequestToken` answers with the execution it started the
19
+ * first time rather than running the query again, which is what stops a
20
+ * client's retry after a timeout being charged twice.
21
+ */
22
+ export declare function startQuery(properties: SimAthenaQueryStartProperties, workGroupName: string, input: SimStartQueryExecutionCommandInput, caller: SimAwsCaller | undefined): SimStartQueryExecutionCommandOutput;
23
+ export {};
24
+ //# sourceMappingURL=sim-athena-query-start.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-athena-query-start.d.ts","sourceRoot":"","sources":["../../../../../src/service/athena/command/execution/sim-athena-query-start.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAIpE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,qDAAqD,CAAC;AACxG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AACvF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AACvF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gDAAgD,CAAC;AAC9F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAE1E,OAAO,KAAK,EACV,kCAAkC,EAClC,mCAAmC,EACpC,MAAM,wBAAwB,CAAC;AAEhC,UAAU,6BAA6B;IACrC,QAAQ,CAAC,UAAU,EAAE,4BAA4B,CAAC;IAClD,QAAQ,CAAC,UAAU,EAAE,uBAAuB,CAAC;IAC7C,QAAQ,CAAC,MAAM,EAAE,oBAAoB,CAAC;IACtC,QAAQ,CAAC,MAAM,EAAE,oBAAoB,CAAC;IACtC,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;CAC1B;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CACxB,UAAU,EAAE,6BAA6B,EACzC,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,kCAAkC,EACzC,MAAM,EAAE,YAAY,GAAG,SAAS,GAC/B,mCAAmC,CA0BrC"}