@kensio/yulin 1.7.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (569) hide show
  1. package/README.md +11 -0
  2. package/dist/cli/sim-cli.d.ts.map +1 -1
  3. package/dist/cli/sim-cli.js +5 -1
  4. package/dist/cli/sim-cli.js.map +1 -1
  5. package/dist/cli/watch/sim-watch-arguments.d.ts +1 -0
  6. package/dist/cli/watch/sim-watch-arguments.d.ts.map +1 -1
  7. package/dist/cli/watch/sim-watch-arguments.js +40 -12
  8. package/dist/cli/watch/sim-watch-arguments.js.map +1 -1
  9. package/dist/cli/watch/sim-watch-supervisor.d.ts.map +1 -1
  10. package/dist/cli/watch/sim-watch-supervisor.js +1 -0
  11. package/dist/cli/watch/sim-watch-supervisor.js.map +1 -1
  12. package/dist/cli/watch/sim-watch-watcher.d.ts +1 -1
  13. package/dist/cli/watch/sim-watch-watcher.d.ts.map +1 -1
  14. package/dist/cli/watch/sim-watch-watcher.js +5 -1
  15. package/dist/cli/watch/sim-watch-watcher.js.map +1 -1
  16. package/dist/cli/yulin.js +0 -0
  17. package/dist/index.d.ts +3 -1
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +1 -0
  20. package/dist/index.js.map +1 -1
  21. package/dist/serve/http/live-reload/sim-live-reload-client.d.ts +15 -3
  22. package/dist/serve/http/live-reload/sim-live-reload-client.d.ts.map +1 -1
  23. package/dist/serve/http/live-reload/sim-live-reload-client.js +36 -5
  24. package/dist/serve/http/live-reload/sim-live-reload-client.js.map +1 -1
  25. package/dist/serve/http/live-reload/sim-live-reload.config.d.ts +1 -0
  26. package/dist/serve/http/live-reload/sim-live-reload.config.d.ts.map +1 -1
  27. package/dist/serve/http/live-reload/sim-live-reload.config.js +6 -0
  28. package/dist/serve/http/live-reload/sim-live-reload.config.js.map +1 -1
  29. package/dist/serve/http/live-reload/sim-live-reload.d.ts +4 -1
  30. package/dist/serve/http/live-reload/sim-live-reload.d.ts.map +1 -1
  31. package/dist/serve/http/live-reload/sim-live-reload.js +6 -4
  32. package/dist/serve/http/live-reload/sim-live-reload.js.map +1 -1
  33. package/dist/serve/http/live-reload/sim-local-live-reload.d.ts +14 -1
  34. package/dist/serve/http/live-reload/sim-local-live-reload.d.ts.map +1 -1
  35. package/dist/serve/http/live-reload/sim-local-live-reload.js +24 -4
  36. package/dist/serve/http/live-reload/sim-local-live-reload.js.map +1 -1
  37. package/dist/serve/http/local-server/sim-aws-local-server.d.ts +45 -3
  38. package/dist/serve/http/local-server/sim-aws-local-server.d.ts.map +1 -1
  39. package/dist/serve/http/local-server/sim-aws-local-server.js +55 -5
  40. package/dist/serve/http/local-server/sim-aws-local-server.js.map +1 -1
  41. package/dist/serve/index.d.ts +1 -0
  42. package/dist/serve/index.d.ts.map +1 -1
  43. package/dist/serve/index.js.map +1 -1
  44. package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts.map +1 -1
  45. package/dist/service/aws/factory/sim-aws-account-region-service-builder.js +2 -2
  46. package/dist/service/aws/factory/sim-aws-account-region-service-builder.js.map +1 -1
  47. package/dist/service/aws/scope/sim-aws-scope-registry.d.ts +9 -0
  48. package/dist/service/aws/scope/sim-aws-scope-registry.d.ts.map +1 -1
  49. package/dist/service/aws/scope/sim-aws-scope-registry.js +13 -0
  50. package/dist/service/aws/scope/sim-aws-scope-registry.js.map +1 -1
  51. package/dist/service/aws/sim-aws-account-id.d.ts +27 -0
  52. package/dist/service/aws/sim-aws-account-id.d.ts.map +1 -0
  53. package/dist/service/aws/sim-aws-account-id.js +34 -0
  54. package/dist/service/aws/sim-aws-account-id.js.map +1 -0
  55. package/dist/service/aws/sim-aws-account-region-scope.d.ts +10 -0
  56. package/dist/service/aws/sim-aws-account-region-scope.d.ts.map +1 -1
  57. package/dist/service/aws/sim-aws-account-region-scope.js +18 -0
  58. package/dist/service/aws/sim-aws-account-region-scope.js.map +1 -1
  59. package/dist/service/aws/sim-aws-account.d.ts +5 -7
  60. package/dist/service/aws/sim-aws-account.d.ts.map +1 -1
  61. package/dist/service/aws/sim-aws-account.js +9 -8
  62. package/dist/service/aws/sim-aws-account.js.map +1 -1
  63. package/dist/service/aws/sim-aws-closing.d.ts +24 -0
  64. package/dist/service/aws/sim-aws-closing.d.ts.map +1 -0
  65. package/dist/service/aws/sim-aws-closing.js +7 -0
  66. package/dist/service/aws/sim-aws-closing.js.map +1 -0
  67. package/dist/service/aws/sim-aws.d.ts +34 -0
  68. package/dist/service/aws/sim-aws.d.ts.map +1 -1
  69. package/dist/service/aws/sim-aws.js +40 -0
  70. package/dist/service/aws/sim-aws.js.map +1 -1
  71. package/dist/service/cloudformation/deploy/sim-cfn-template-file-loader.d.ts +18 -0
  72. package/dist/service/cloudformation/deploy/sim-cfn-template-file-loader.d.ts.map +1 -1
  73. package/dist/service/cloudformation/deploy/sim-cfn-template-file-loader.js +8 -7
  74. package/dist/service/cloudformation/deploy/sim-cfn-template-file-loader.js.map +1 -1
  75. package/dist/service/cloudformation/deploy/sim-cfn-template-file-transform.d.ts +18 -0
  76. package/dist/service/cloudformation/deploy/sim-cfn-template-file-transform.d.ts.map +1 -0
  77. package/dist/service/cloudformation/deploy/sim-cfn-template-file-transform.js +23 -0
  78. package/dist/service/cloudformation/deploy/sim-cfn-template-file-transform.js.map +1 -0
  79. package/dist/service/cloudformation/index.d.ts +3 -1
  80. package/dist/service/cloudformation/index.d.ts.map +1 -1
  81. package/dist/service/cloudformation/sim-cloudformation.d.ts +9 -0
  82. package/dist/service/cloudformation/sim-cloudformation.d.ts.map +1 -1
  83. package/dist/service/cloudformation/sim-cloudformation.js +11 -0
  84. package/dist/service/cloudformation/sim-cloudformation.js.map +1 -1
  85. package/dist/service/cloudformation/watch/sim-cfn-template-file-watch.d.ts.map +1 -1
  86. package/dist/service/cloudformation/watch/sim-cfn-template-file-watch.js +1 -0
  87. package/dist/service/cloudformation/watch/sim-cfn-template-file-watch.js.map +1 -1
  88. package/dist/service/cloudformation/watch/sim-cfn-template-file-watches.d.ts +5 -0
  89. package/dist/service/cloudformation/watch/sim-cfn-template-file-watches.d.ts.map +1 -1
  90. package/dist/service/cloudformation/watch/sim-cfn-template-file-watches.js +0 -0
  91. package/dist/service/cloudformation/watch/sim-cfn-template-file-watches.js.map +1 -1
  92. package/dist/service/cloudformation/watch/sim-cfn-template-watch-report.d.ts +4 -2
  93. package/dist/service/cloudformation/watch/sim-cfn-template-watch-report.d.ts.map +1 -1
  94. package/dist/service/cloudformation/watch/sim-cfn-template-watch-report.js +5 -3
  95. package/dist/service/cloudformation/watch/sim-cfn-template-watch-report.js.map +1 -1
  96. package/dist/service/cloudformation/watch/sim-cfn-template-watch-update.d.ts +5 -4
  97. package/dist/service/cloudformation/watch/sim-cfn-template-watch-update.d.ts.map +1 -1
  98. package/dist/service/cloudformation/watch/sim-cfn-template-watch-update.js +15 -6
  99. package/dist/service/cloudformation/watch/sim-cfn-template-watch-update.js.map +1 -1
  100. package/dist/service/cloudformation/watch/sim-cfn-template-watch.type.d.ts +31 -3
  101. package/dist/service/cloudformation/watch/sim-cfn-template-watch.type.d.ts.map +1 -1
  102. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-admin-create-user-config.d.ts +29 -0
  103. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-admin-create-user-config.d.ts.map +1 -0
  104. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-admin-create-user-config.js +47 -0
  105. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-admin-create-user-config.js.map +1 -0
  106. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.d.ts.map +1 -1
  107. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js +26 -8
  108. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js.map +1 -1
  109. package/dist/service/cognito/command/auth/sim-cognito-admin-initiate-auth.d.ts +1 -1
  110. package/dist/service/cognito/command/auth/sim-cognito-admin-initiate-auth.d.ts.map +1 -1
  111. package/dist/service/cognito/command/auth/sim-cognito-admin-initiate-auth.js +3 -2
  112. package/dist/service/cognito/command/auth/sim-cognito-admin-initiate-auth.js.map +1 -1
  113. package/dist/service/cognito/command/auth/sim-cognito-admin-respond-to-challenge.d.ts +1 -1
  114. package/dist/service/cognito/command/auth/sim-cognito-admin-respond-to-challenge.d.ts.map +1 -1
  115. package/dist/service/cognito/command/auth/sim-cognito-admin-respond-to-challenge.js +3 -2
  116. package/dist/service/cognito/command/auth/sim-cognito-admin-respond-to-challenge.js.map +1 -1
  117. package/dist/service/cognito/command/auth/sim-cognito-auth-commands.d.ts +11 -4
  118. package/dist/service/cognito/command/auth/sim-cognito-auth-commands.d.ts.map +1 -1
  119. package/dist/service/cognito/command/auth/sim-cognito-auth-commands.js +11 -8
  120. package/dist/service/cognito/command/auth/sim-cognito-auth-commands.js.map +1 -1
  121. package/dist/service/cognito/command/auth/sim-cognito-auth-flow-runner.d.ts +5 -1
  122. package/dist/service/cognito/command/auth/sim-cognito-auth-flow-runner.d.ts.map +1 -1
  123. package/dist/service/cognito/command/auth/sim-cognito-auth-flow-runner.js +7 -3
  124. package/dist/service/cognito/command/auth/sim-cognito-auth-flow-runner.js.map +1 -1
  125. package/dist/service/cognito/command/auth/sim-cognito-initiate-auth.d.ts +1 -1
  126. package/dist/service/cognito/command/auth/sim-cognito-initiate-auth.d.ts.map +1 -1
  127. package/dist/service/cognito/command/auth/sim-cognito-initiate-auth.js +3 -2
  128. package/dist/service/cognito/command/auth/sim-cognito-initiate-auth.js.map +1 -1
  129. package/dist/service/cognito/command/auth/sim-cognito-new-password-response.d.ts +11 -1
  130. package/dist/service/cognito/command/auth/sim-cognito-new-password-response.d.ts.map +1 -1
  131. package/dist/service/cognito/command/auth/sim-cognito-new-password-response.js +30 -4
  132. package/dist/service/cognito/command/auth/sim-cognito-new-password-response.js.map +1 -1
  133. package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.d.ts +19 -1
  134. package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.d.ts.map +1 -1
  135. package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.js +40 -5
  136. package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.js.map +1 -1
  137. package/dist/service/cognito/command/auth/sim-cognito-refresh-sign-in.d.ts +5 -1
  138. package/dist/service/cognito/command/auth/sim-cognito-refresh-sign-in.d.ts.map +1 -1
  139. package/dist/service/cognito/command/auth/sim-cognito-refresh-sign-in.js +15 -2
  140. package/dist/service/cognito/command/auth/sim-cognito-refresh-sign-in.js.map +1 -1
  141. package/dist/service/cognito/command/auth/sim-cognito-respond-to-challenge.d.ts +1 -1
  142. package/dist/service/cognito/command/auth/sim-cognito-respond-to-challenge.d.ts.map +1 -1
  143. package/dist/service/cognito/command/auth/sim-cognito-respond-to-challenge.js +3 -2
  144. package/dist/service/cognito/command/auth/sim-cognito-respond-to-challenge.js.map +1 -1
  145. package/dist/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.d.ts +5 -0
  146. package/dist/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.d.ts.map +1 -1
  147. package/dist/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.js +5 -1
  148. package/dist/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.js.map +1 -1
  149. package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.d.ts +6 -4
  150. package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.d.ts.map +1 -1
  151. package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.js +9 -4
  152. package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.js.map +1 -1
  153. package/dist/service/cognito/command/client/sim-cognito-unsimulated-managed-login.d.ts +3 -2
  154. package/dist/service/cognito/command/client/sim-cognito-unsimulated-managed-login.d.ts.map +1 -1
  155. package/dist/service/cognito/command/client/sim-cognito-unsimulated-managed-login.js +6 -6
  156. package/dist/service/cognito/command/client/sim-cognito-unsimulated-managed-login.js.map +1 -1
  157. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-commands.d.ts +23 -3
  158. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-commands.d.ts.map +1 -1
  159. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-commands.js +35 -8
  160. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-commands.js.map +1 -1
  161. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.d.ts +2 -2
  162. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.js +2 -2
  163. package/dist/service/cognito/command/client/user-pool-client.command.d.ts +37 -5
  164. package/dist/service/cognito/command/client/user-pool-client.command.d.ts.map +1 -1
  165. package/dist/service/cognito/command/sim-cognito-command.types.d.ts +3 -2
  166. package/dist/service/cognito/command/sim-cognito-command.types.d.ts.map +1 -1
  167. package/dist/service/cognito/command/sim-cognito-commands.d.ts +4 -0
  168. package/dist/service/cognito/command/sim-cognito-commands.d.ts.map +1 -1
  169. package/dist/service/cognito/command/sim-cognito-commands.js +33 -3
  170. package/dist/service/cognito/command/sim-cognito-commands.js.map +1 -1
  171. package/dist/service/cognito/command/sim-cognito-unsimulated-input.d.ts +5 -1
  172. package/dist/service/cognito/command/sim-cognito-unsimulated-input.d.ts.map +1 -1
  173. package/dist/service/cognito/command/sim-cognito-unsimulated-input.js +4 -0
  174. package/dist/service/cognito/command/sim-cognito-unsimulated-input.js.map +1 -1
  175. package/dist/service/cognito/command/sim-cognito-validation-data.d.ts +14 -0
  176. package/dist/service/cognito/command/sim-cognito-validation-data.d.ts.map +1 -0
  177. package/dist/service/cognito/command/sim-cognito-validation-data.js +29 -0
  178. package/dist/service/cognito/command/sim-cognito-validation-data.js.map +1 -0
  179. package/dist/service/cognito/command/user/sign-up.command.d.ts +104 -0
  180. package/dist/service/cognito/command/user/sign-up.command.d.ts.map +1 -0
  181. package/dist/service/cognito/command/user/sign-up.command.js +2 -0
  182. package/dist/service/cognito/command/user/sign-up.command.js.map +1 -0
  183. package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.d.ts +104 -0
  184. package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.d.ts.map +1 -0
  185. package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.js +186 -0
  186. package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.js.map +1 -0
  187. package/dist/service/cognito/command/user/sim-cognito-unsimulated-sign-up-options.d.ts +38 -0
  188. package/dist/service/cognito/command/user/sim-cognito-unsimulated-sign-up-options.d.ts.map +1 -0
  189. package/dist/service/cognito/command/user/sim-cognito-unsimulated-sign-up-options.js +49 -0
  190. package/dist/service/cognito/command/user/sim-cognito-unsimulated-sign-up-options.js.map +1 -0
  191. package/dist/service/cognito/command/user/sim-cognito-unsimulated-user-options.d.ts +15 -5
  192. package/dist/service/cognito/command/user/sim-cognito-unsimulated-user-options.d.ts.map +1 -1
  193. package/dist/service/cognito/command/user/sim-cognito-unsimulated-user-options.js +17 -9
  194. package/dist/service/cognito/command/user/sim-cognito-unsimulated-user-options.js.map +1 -1
  195. package/dist/service/cognito/command/user/sim-cognito-user-commands.d.ts +25 -12
  196. package/dist/service/cognito/command/user/sim-cognito-user-commands.d.ts.map +1 -1
  197. package/dist/service/cognito/command/user/sim-cognito-user-commands.js +42 -19
  198. package/dist/service/cognito/command/user/sim-cognito-user-commands.js.map +1 -1
  199. package/dist/service/cognito/command/user/sim-cognito-user-update-commands.d.ts.map +1 -1
  200. package/dist/service/cognito/command/user/sim-cognito-user-update-commands.js +1 -1
  201. package/dist/service/cognito/command/user/sim-cognito-user-update-commands.js.map +1 -1
  202. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-features.d.ts +16 -5
  203. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-features.d.ts.map +1 -1
  204. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-features.js +21 -24
  205. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-features.js.map +1 -1
  206. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.d.ts +28 -0
  207. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.d.ts.map +1 -0
  208. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.js +42 -0
  209. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.js.map +1 -0
  210. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-messaging.d.ts +21 -12
  211. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-messaging.d.ts.map +1 -1
  212. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-messaging.js +28 -36
  213. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-messaging.js.map +1 -1
  214. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.d.ts +8 -14
  215. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.d.ts.map +1 -1
  216. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.js +13 -25
  217. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.js.map +1 -1
  218. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.d.ts +21 -0
  219. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.d.ts.map +1 -0
  220. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.js +25 -0
  221. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.js.map +1 -0
  222. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.d.ts +17 -2
  223. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.d.ts.map +1 -1
  224. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.js +35 -10
  225. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.js.map +1 -1
  226. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.d.ts +10 -2
  227. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.d.ts.map +1 -1
  228. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.js +17 -5
  229. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.js.map +1 -1
  230. package/dist/service/cognito/command/user-pool/user-pool.command.d.ts +56 -23
  231. package/dist/service/cognito/command/user-pool/user-pool.command.d.ts.map +1 -1
  232. package/dist/service/cognito/error/sim-cognito-trigger.error.d.ts +39 -0
  233. package/dist/service/cognito/error/sim-cognito-trigger.error.d.ts.map +1 -0
  234. package/dist/service/cognito/error/sim-cognito-trigger.error.js +45 -0
  235. package/dist/service/cognito/error/sim-cognito-trigger.error.js.map +1 -0
  236. package/dist/service/cognito/error/sim-cognito.error.d.ts +22 -0
  237. package/dist/service/cognito/error/sim-cognito.error.d.ts.map +1 -1
  238. package/dist/service/cognito/error/sim-cognito.error.js +26 -0
  239. package/dist/service/cognito/error/sim-cognito.error.js.map +1 -1
  240. package/dist/service/cognito/index.d.ts +8 -1
  241. package/dist/service/cognito/index.d.ts.map +1 -1
  242. package/dist/service/cognito/index.js +7 -1
  243. package/dist/service/cognito/index.js.map +1 -1
  244. package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.d.ts +6 -0
  245. package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.d.ts.map +1 -1
  246. package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.js +22 -0
  247. package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.js.map +1 -1
  248. package/dist/service/cognito/sdk/sim-cognito-sdk-pool-routes.d.ts.map +1 -1
  249. package/dist/service/cognito/sdk/sim-cognito-sdk-pool-routes.js +8 -0
  250. package/dist/service/cognito/sdk/sim-cognito-sdk-pool-routes.js.map +1 -1
  251. package/dist/service/cognito/serve/sim-cognito-controller.d.ts +10 -1
  252. package/dist/service/cognito/serve/sim-cognito-controller.d.ts.map +1 -1
  253. package/dist/service/cognito/serve/sim-cognito-controller.js +48 -8
  254. package/dist/service/cognito/serve/sim-cognito-controller.js.map +1 -1
  255. package/dist/service/cognito/serve/sim-cognito-endpoint-response.d.ts +1 -1
  256. package/dist/service/cognito/serve/sim-cognito-endpoint-response.d.ts.map +1 -1
  257. package/dist/service/cognito/serve/sim-cognito-endpoint-response.js +3 -2
  258. package/dist/service/cognito/serve/sim-cognito-endpoint-response.js.map +1 -1
  259. package/dist/service/cognito/sim-cognito-identity-provider.d.ts +20 -0
  260. package/dist/service/cognito/sim-cognito-identity-provider.d.ts.map +1 -1
  261. package/dist/service/cognito/sim-cognito-identity-provider.js +17 -1
  262. package/dist/service/cognito/sim-cognito-identity-provider.js.map +1 -1
  263. package/dist/service/cognito/sim-cognito-user-directory.d.ts +16 -0
  264. package/dist/service/cognito/sim-cognito-user-directory.d.ts.map +1 -1
  265. package/dist/service/cognito/sim-cognito-user-directory.js +28 -0
  266. package/dist/service/cognito/sim-cognito-user-directory.js.map +1 -1
  267. package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.d.ts +9 -0
  268. package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.d.ts.map +1 -1
  269. package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.js +14 -1
  270. package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.js.map +1 -1
  271. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.d.ts +2 -11
  272. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.d.ts.map +1 -1
  273. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.js +2 -14
  274. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.js.map +1 -1
  275. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.d.ts +38 -0
  276. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.d.ts.map +1 -0
  277. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.js +36 -0
  278. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.js.map +1 -0
  279. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.d.ts +40 -20
  280. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.d.ts.map +1 -1
  281. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.js +54 -20
  282. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.js.map +1 -1
  283. package/dist/service/cognito/user-pool/message/sim-cognito-message-delivery.d.ts +32 -0
  284. package/dist/service/cognito/user-pool/message/sim-cognito-message-delivery.d.ts.map +1 -0
  285. package/dist/service/cognito/user-pool/message/sim-cognito-message-delivery.js +52 -0
  286. package/dist/service/cognito/user-pool/message/sim-cognito-message-delivery.js.map +1 -0
  287. package/dist/service/cognito/user-pool/message/sim-cognito-message-occasion.d.ts +13 -0
  288. package/dist/service/cognito/user-pool/message/sim-cognito-message-occasion.d.ts.map +1 -0
  289. package/dist/service/cognito/user-pool/message/sim-cognito-message-occasion.js +2 -0
  290. package/dist/service/cognito/user-pool/message/sim-cognito-message-occasion.js.map +1 -0
  291. package/dist/service/cognito/user-pool/message/sim-cognito-message-placeholders.d.ts +49 -0
  292. package/dist/service/cognito/user-pool/message/sim-cognito-message-placeholders.d.ts.map +1 -0
  293. package/dist/service/cognito/user-pool/message/sim-cognito-message-placeholders.js +58 -0
  294. package/dist/service/cognito/user-pool/message/sim-cognito-message-placeholders.js.map +1 -0
  295. package/dist/service/cognito/user-pool/message/sim-cognito-message-wording.d.ts +41 -0
  296. package/dist/service/cognito/user-pool/message/sim-cognito-message-wording.d.ts.map +1 -0
  297. package/dist/service/cognito/user-pool/message/sim-cognito-message-wording.js +39 -0
  298. package/dist/service/cognito/user-pool/message/sim-cognito-message-wording.js.map +1 -0
  299. package/dist/service/cognito/user-pool/message/sim-cognito-occasion-wording.d.ts +13 -0
  300. package/dist/service/cognito/user-pool/message/sim-cognito-occasion-wording.d.ts.map +1 -0
  301. package/dist/service/cognito/user-pool/message/sim-cognito-occasion-wording.js +32 -0
  302. package/dist/service/cognito/user-pool/message/sim-cognito-occasion-wording.js.map +1 -0
  303. package/dist/service/cognito/user-pool/message/sim-cognito-pool-messenger.d.ts +53 -0
  304. package/dist/service/cognito/user-pool/message/sim-cognito-pool-messenger.d.ts.map +1 -0
  305. package/dist/service/cognito/user-pool/message/sim-cognito-pool-messenger.js +62 -0
  306. package/dist/service/cognito/user-pool/message/sim-cognito-pool-messenger.js.map +1 -0
  307. package/dist/service/cognito/user-pool/message/sim-cognito-sent-message-store.d.ts +19 -0
  308. package/dist/service/cognito/user-pool/message/sim-cognito-sent-message-store.d.ts.map +1 -0
  309. package/dist/service/cognito/user-pool/message/sim-cognito-sent-message-store.js +22 -0
  310. package/dist/service/cognito/user-pool/message/sim-cognito-sent-message-store.js.map +1 -0
  311. package/dist/service/cognito/user-pool/message/sim-cognito-sent-message.d.ts +65 -0
  312. package/dist/service/cognito/user-pool/message/sim-cognito-sent-message.d.ts.map +1 -0
  313. package/dist/service/cognito/user-pool/message/sim-cognito-sent-message.js +52 -0
  314. package/dist/service/cognito/user-pool/message/sim-cognito-sent-message.js.map +1 -0
  315. package/dist/service/cognito/user-pool/message/sim-cognito-verification-messages.d.ts +68 -0
  316. package/dist/service/cognito/user-pool/message/sim-cognito-verification-messages.d.ts.map +1 -0
  317. package/dist/service/cognito/user-pool/message/sim-cognito-verification-messages.js +91 -0
  318. package/dist/service/cognito/user-pool/message/sim-cognito-verification-messages.js.map +1 -0
  319. package/dist/service/cognito/user-pool/message/sim-cognito-verification-wording.d.ts +18 -0
  320. package/dist/service/cognito/user-pool/message/sim-cognito-verification-wording.d.ts.map +1 -0
  321. package/dist/service/cognito/user-pool/message/sim-cognito-verification-wording.js +31 -0
  322. package/dist/service/cognito/user-pool/message/sim-cognito-verification-wording.js.map +1 -0
  323. package/dist/service/cognito/user-pool/sim-cognito-admin-create-user-config.d.ts +41 -0
  324. package/dist/service/cognito/user-pool/sim-cognito-admin-create-user-config.d.ts.map +1 -0
  325. package/dist/service/cognito/user-pool/sim-cognito-admin-create-user-config.js +41 -0
  326. package/dist/service/cognito/user-pool/sim-cognito-admin-create-user-config.js.map +1 -0
  327. package/dist/service/cognito/user-pool/sim-cognito-auto-verified-attributes.d.ts +35 -0
  328. package/dist/service/cognito/user-pool/sim-cognito-auto-verified-attributes.d.ts.map +1 -0
  329. package/dist/service/cognito/user-pool/sim-cognito-auto-verified-attributes.js +60 -0
  330. package/dist/service/cognito/user-pool/sim-cognito-auto-verified-attributes.js.map +1 -0
  331. package/dist/service/cognito/user-pool/sim-cognito-unsimulated-pool-settings.d.ts +10 -15
  332. package/dist/service/cognito/user-pool/sim-cognito-unsimulated-pool-settings.d.ts.map +1 -1
  333. package/dist/service/cognito/user-pool/sim-cognito-unsimulated-pool-settings.js +10 -25
  334. package/dist/service/cognito/user-pool/sim-cognito-unsimulated-pool-settings.js.map +1 -1
  335. package/dist/service/cognito/user-pool/sim-cognito-user-pool-arn.d.ts +8 -0
  336. package/dist/service/cognito/user-pool/sim-cognito-user-pool-arn.d.ts.map +1 -1
  337. package/dist/service/cognito/user-pool/sim-cognito-user-pool-arn.js +9 -0
  338. package/dist/service/cognito/user-pool/sim-cognito-user-pool-arn.js.map +1 -1
  339. package/dist/service/cognito/user-pool/sim-cognito-user-pool-factory.d.ts +3 -7
  340. package/dist/service/cognito/user-pool/sim-cognito-user-pool-factory.d.ts.map +1 -1
  341. package/dist/service/cognito/user-pool/sim-cognito-user-pool-factory.js +6 -7
  342. package/dist/service/cognito/user-pool/sim-cognito-user-pool-factory.js.map +1 -1
  343. package/dist/service/cognito/user-pool/sim-cognito-user-pool-id.d.ts +24 -0
  344. package/dist/service/cognito/user-pool/sim-cognito-user-pool-id.d.ts.map +1 -1
  345. package/dist/service/cognito/user-pool/sim-cognito-user-pool-id.js +32 -0
  346. package/dist/service/cognito/user-pool/sim-cognito-user-pool-id.js.map +1 -1
  347. package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.d.ts +65 -0
  348. package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.d.ts.map +1 -0
  349. package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.js +52 -0
  350. package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.js.map +1 -0
  351. package/dist/service/cognito/user-pool/sim-cognito-user-pool.d.ts +41 -28
  352. package/dist/service/cognito/user-pool/sim-cognito-user-pool.d.ts.map +1 -1
  353. package/dist/service/cognito/user-pool/sim-cognito-user-pool.js +55 -27
  354. package/dist/service/cognito/user-pool/sim-cognito-user-pool.js.map +1 -1
  355. package/dist/service/cognito/user-pool/token/sim-cognito-claims-override-reader.d.ts +29 -0
  356. package/dist/service/cognito/user-pool/token/sim-cognito-claims-override-reader.d.ts.map +1 -0
  357. package/dist/service/cognito/user-pool/token/sim-cognito-claims-override-reader.js +80 -0
  358. package/dist/service/cognito/user-pool/token/sim-cognito-claims-override-reader.js.map +1 -0
  359. package/dist/service/cognito/user-pool/token/sim-cognito-claims-override-values.d.ts +21 -0
  360. package/dist/service/cognito/user-pool/token/sim-cognito-claims-override-values.d.ts.map +1 -0
  361. package/dist/service/cognito/user-pool/token/sim-cognito-claims-override-values.js +45 -0
  362. package/dist/service/cognito/user-pool/token/sim-cognito-claims-override-values.js.map +1 -0
  363. package/dist/service/cognito/user-pool/token/sim-cognito-claims-override.d.ts +54 -0
  364. package/dist/service/cognito/user-pool/token/sim-cognito-claims-override.d.ts.map +1 -0
  365. package/dist/service/cognito/user-pool/token/sim-cognito-claims-override.js +72 -0
  366. package/dist/service/cognito/user-pool/token/sim-cognito-claims-override.js.map +1 -0
  367. package/dist/service/cognito/user-pool/token/sim-cognito-group-override.d.ts +10 -0
  368. package/dist/service/cognito/user-pool/token/sim-cognito-group-override.d.ts.map +1 -0
  369. package/dist/service/cognito/user-pool/token/sim-cognito-group-override.js +54 -0
  370. package/dist/service/cognito/user-pool/token/sim-cognito-group-override.js.map +1 -0
  371. package/dist/service/cognito/user-pool/token/sim-cognito-reserved-claims.d.ts +23 -0
  372. package/dist/service/cognito/user-pool/token/sim-cognito-reserved-claims.d.ts.map +1 -0
  373. package/dist/service/cognito/user-pool/token/sim-cognito-reserved-claims.js +82 -0
  374. package/dist/service/cognito/user-pool/token/sim-cognito-reserved-claims.js.map +1 -0
  375. package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.d.ts +26 -2
  376. package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.d.ts.map +1 -1
  377. package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.js +32 -7
  378. package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.js.map +1 -1
  379. package/dist/service/cognito/user-pool/trigger/sim-aws-cognito-trigger-functions.d.ts +55 -0
  380. package/dist/service/cognito/user-pool/trigger/sim-aws-cognito-trigger-functions.d.ts.map +1 -0
  381. package/dist/service/cognito/user-pool/trigger/sim-aws-cognito-trigger-functions.js +101 -0
  382. package/dist/service/cognito/user-pool/trigger/sim-aws-cognito-trigger-functions.js.map +1 -0
  383. package/dist/service/cognito/user-pool/trigger/sim-cognito-custom-message.d.ts +31 -0
  384. package/dist/service/cognito/user-pool/trigger/sim-cognito-custom-message.d.ts.map +1 -0
  385. package/dist/service/cognito/user-pool/trigger/sim-cognito-custom-message.js +73 -0
  386. package/dist/service/cognito/user-pool/trigger/sim-cognito-custom-message.js.map +1 -0
  387. package/dist/service/cognito/user-pool/trigger/sim-cognito-lambda-config.d.ts +58 -0
  388. package/dist/service/cognito/user-pool/trigger/sim-cognito-lambda-config.d.ts.map +1 -0
  389. package/dist/service/cognito/user-pool/trigger/sim-cognito-lambda-config.js +77 -0
  390. package/dist/service/cognito/user-pool/trigger/sim-cognito-lambda-config.js.map +1 -0
  391. package/dist/service/cognito/user-pool/trigger/sim-cognito-pre-sign-up-response.d.ts +28 -0
  392. package/dist/service/cognito/user-pool/trigger/sim-cognito-pre-sign-up-response.d.ts.map +1 -0
  393. package/dist/service/cognito/user-pool/trigger/sim-cognito-pre-sign-up-response.js +68 -0
  394. package/dist/service/cognito/user-pool/trigger/sim-cognito-pre-sign-up-response.js.map +1 -0
  395. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-context.d.ts +36 -0
  396. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-context.d.ts.map +1 -0
  397. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-context.js +2 -0
  398. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-context.js.map +1 -0
  399. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-event.d.ts +27 -0
  400. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-event.d.ts.map +1 -0
  401. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-event.js +69 -0
  402. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-event.js.map +1 -0
  403. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-functions.d.ts +59 -0
  404. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-functions.d.ts.map +1 -0
  405. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-functions.js +25 -0
  406. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-functions.js.map +1 -0
  407. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-invocation.d.ts +33 -0
  408. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-invocation.d.ts.map +1 -0
  409. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-invocation.js +61 -0
  410. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-invocation.js.map +1 -0
  411. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-name.d.ts +20 -0
  412. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-name.d.ts.map +1 -0
  413. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-name.js +46 -0
  414. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-name.js.map +1 -0
  415. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.d.ts +89 -0
  416. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.d.ts.map +1 -0
  417. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.js +102 -0
  418. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.js.map +1 -0
  419. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-request.d.ts +75 -0
  420. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-request.d.ts.map +1 -0
  421. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-request.js +162 -0
  422. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-request.js.map +1 -0
  423. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-response.d.ts +19 -0
  424. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-response.d.ts.map +1 -0
  425. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-response.js +38 -0
  426. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-response.js.map +1 -0
  427. package/dist/service/cognito/user-pool/trigger/sim-cognito-user-pool-triggers.d.ts +81 -0
  428. package/dist/service/cognito/user-pool/trigger/sim-cognito-user-pool-triggers.d.ts.map +1 -0
  429. package/dist/service/cognito/user-pool/trigger/sim-cognito-user-pool-triggers.js +90 -0
  430. package/dist/service/cognito/user-pool/trigger/sim-cognito-user-pool-triggers.js.map +1 -0
  431. package/dist/service/cognito/user-pool/user/sim-cognito-confirmation-code.d.ts +29 -0
  432. package/dist/service/cognito/user-pool/user/sim-cognito-confirmation-code.d.ts.map +1 -0
  433. package/dist/service/cognito/user-pool/user/sim-cognito-confirmation-code.js +40 -0
  434. package/dist/service/cognito/user-pool/user/sim-cognito-confirmation-code.js.map +1 -0
  435. package/dist/service/cognito/user-pool/user/sim-cognito-user-attributes.d.ts +8 -0
  436. package/dist/service/cognito/user-pool/user/sim-cognito-user-attributes.d.ts.map +1 -1
  437. package/dist/service/cognito/user-pool/user/sim-cognito-user-attributes.js +12 -0
  438. package/dist/service/cognito/user-pool/user/sim-cognito-user-attributes.js.map +1 -1
  439. package/dist/service/cognito/user-pool/user/sim-cognito-user-confirmation.d.ts +36 -0
  440. package/dist/service/cognito/user-pool/user/sim-cognito-user-confirmation.d.ts.map +1 -0
  441. package/dist/service/cognito/user-pool/user/sim-cognito-user-confirmation.js +51 -0
  442. package/dist/service/cognito/user-pool/user/sim-cognito-user-confirmation.js.map +1 -0
  443. package/dist/service/cognito/user-pool/user/sim-cognito-user-factory.d.ts +31 -2
  444. package/dist/service/cognito/user-pool/user/sim-cognito-user-factory.d.ts.map +1 -1
  445. package/dist/service/cognito/user-pool/user/sim-cognito-user-factory.js +31 -4
  446. package/dist/service/cognito/user-pool/user/sim-cognito-user-factory.js.map +1 -1
  447. package/dist/service/cognito/user-pool/user/sim-cognito-user-status.d.ts +39 -8
  448. package/dist/service/cognito/user-pool/user/sim-cognito-user-status.d.ts.map +1 -1
  449. package/dist/service/cognito/user-pool/user/sim-cognito-user-status.js +50 -7
  450. package/dist/service/cognito/user-pool/user/sim-cognito-user-status.js.map +1 -1
  451. package/dist/service/cognito/user-pool/user/sim-cognito-user.d.ts +55 -3
  452. package/dist/service/cognito/user-pool/user/sim-cognito-user.d.ts.map +1 -1
  453. package/dist/service/cognito/user-pool/user/sim-cognito-user.js +74 -5
  454. package/dist/service/cognito/user-pool/user/sim-cognito-user.js.map +1 -1
  455. package/dist/service/lambda/function/invoke/sim-lambda-handler-runner.d.ts.map +1 -1
  456. package/dist/service/lambda/function/invoke/sim-lambda-handler-runner.js +22 -1
  457. package/dist/service/lambda/function/invoke/sim-lambda-handler-runner.js.map +1 -1
  458. package/dist/service/lambda/function/sim-lambda-function-arn-parts.d.ts +30 -0
  459. package/dist/service/lambda/function/sim-lambda-function-arn-parts.d.ts.map +1 -0
  460. package/dist/service/lambda/function/sim-lambda-function-arn-parts.js +32 -0
  461. package/dist/service/lambda/function/sim-lambda-function-arn-parts.js.map +1 -0
  462. package/dist/service/route53/cfn/record-set/build/sim-cfn-r53-record-set-builder.d.ts +5 -0
  463. package/dist/service/route53/cfn/record-set/build/sim-cfn-r53-record-set-builder.d.ts.map +1 -1
  464. package/dist/service/route53/cfn/record-set/build/sim-cfn-r53-record-set-builder.js +13 -3
  465. package/dist/service/route53/cfn/record-set/build/sim-cfn-r53-record-set-builder.js.map +1 -1
  466. package/dist/service/route53/cfn/record-set/build/sim-cfn-r53-record-type-skip.d.ts +26 -0
  467. package/dist/service/route53/cfn/record-set/build/sim-cfn-r53-record-type-skip.d.ts.map +1 -0
  468. package/dist/service/route53/cfn/record-set/build/sim-cfn-r53-record-type-skip.js +36 -0
  469. package/dist/service/route53/cfn/record-set/build/sim-cfn-r53-record-type-skip.js.map +1 -0
  470. package/dist/service/route53/dns/answer/dns-answerer-test-query.d.ts +6 -3
  471. package/dist/service/route53/dns/answer/dns-answerer-test-query.d.ts.map +1 -1
  472. package/dist/service/route53/dns/answer/dns-answerer-test-query.js +5 -2
  473. package/dist/service/route53/dns/answer/dns-answerer-test-query.js.map +1 -1
  474. package/dist/service/route53/dns/answer/sim-route53-dns-record-answer.d.ts.map +1 -1
  475. package/dist/service/route53/dns/answer/sim-route53-dns-record-answer.js +9 -3
  476. package/dist/service/route53/dns/answer/sim-route53-dns-record-answer.js.map +1 -1
  477. package/dist/service/route53/dns/dns-record-type.d.ts +24 -7
  478. package/dist/service/route53/dns/dns-record-type.d.ts.map +1 -1
  479. package/dist/service/route53/dns/dns-record-type.js +16 -7
  480. package/dist/service/route53/dns/dns-record-type.js.map +1 -1
  481. package/dist/service/route53/dns/rdata/dns-rdata.d.ts +2 -2
  482. package/dist/service/route53/dns/rdata/dns-rdata.d.ts.map +1 -1
  483. package/dist/service/route53/dns/rdata/dns-rdata.js.map +1 -1
  484. package/dist/service/route53/hosted-zone/register-sim-route53-hosted-zone.d.ts +34 -0
  485. package/dist/service/route53/hosted-zone/register-sim-route53-hosted-zone.d.ts.map +1 -0
  486. package/dist/service/route53/hosted-zone/register-sim-route53-hosted-zone.js +35 -0
  487. package/dist/service/route53/hosted-zone/register-sim-route53-hosted-zone.js.map +1 -0
  488. package/dist/service/route53/hosted-zone/sim-route53-hosted-zone-records.d.ts.map +1 -1
  489. package/dist/service/route53/hosted-zone/sim-route53-hosted-zone-records.js +2 -4
  490. package/dist/service/route53/hosted-zone/sim-route53-hosted-zone-records.js.map +1 -1
  491. package/dist/service/route53/hosted-zone/sim-route53-hosted-zone.d.ts +7 -0
  492. package/dist/service/route53/hosted-zone/sim-route53-hosted-zone.d.ts.map +1 -1
  493. package/dist/service/route53/hosted-zone/sim-route53-hosted-zone.js +10 -1
  494. package/dist/service/route53/hosted-zone/sim-route53-hosted-zone.js.map +1 -1
  495. package/dist/service/route53/index.d.ts +1 -0
  496. package/dist/service/route53/index.d.ts.map +1 -1
  497. package/dist/service/route53/index.js +1 -0
  498. package/dist/service/route53/index.js.map +1 -1
  499. package/dist/service/route53/record/sim-route53-record-type.d.ts +1 -1
  500. package/dist/service/route53/record/sim-route53-record-type.d.ts.map +1 -1
  501. package/dist/service/route53/record/sim-route53-record-type.js +3 -2
  502. package/dist/service/route53/record/sim-route53-record-type.js.map +1 -1
  503. package/dist/service/route53/record/sim-route53-record-value.d.ts +9 -0
  504. package/dist/service/route53/record/sim-route53-record-value.d.ts.map +1 -0
  505. package/dist/service/route53/record/sim-route53-record-value.js +26 -0
  506. package/dist/service/route53/record/sim-route53-record-value.js.map +1 -0
  507. package/dist/service/route53/record/sim-route53-record.d.ts +15 -1
  508. package/dist/service/route53/record/sim-route53-record.d.ts.map +1 -1
  509. package/dist/service/route53/record/sim-route53-record.js +21 -1
  510. package/dist/service/route53/record/sim-route53-record.js.map +1 -1
  511. package/dist/service/route53/sim-route53.d.ts +14 -0
  512. package/dist/service/route53/sim-route53.d.ts.map +1 -1
  513. package/dist/service/route53/sim-route53.js +19 -0
  514. package/dist/service/route53/sim-route53.js.map +1 -1
  515. package/dist/service/s3/bucket/sim-s3-bucket-access.d.ts +16 -4
  516. package/dist/service/s3/bucket/sim-s3-bucket-access.d.ts.map +1 -1
  517. package/dist/service/s3/bucket/sim-s3-bucket-access.js +21 -6
  518. package/dist/service/s3/bucket/sim-s3-bucket-access.js.map +1 -1
  519. package/dist/service/s3/index.d.ts +1 -0
  520. package/dist/service/s3/index.d.ts.map +1 -1
  521. package/dist/service/s3/mount/sim-s3-mount-directory-events.d.ts +40 -0
  522. package/dist/service/s3/mount/sim-s3-mount-directory-events.d.ts.map +1 -0
  523. package/dist/service/s3/mount/sim-s3-mount-directory-events.js +64 -0
  524. package/dist/service/s3/mount/sim-s3-mount-directory-events.js.map +1 -0
  525. package/dist/service/s3/mount/sim-s3-mount-watch.d.ts +36 -0
  526. package/dist/service/s3/mount/sim-s3-mount-watch.d.ts.map +1 -0
  527. package/dist/service/s3/mount/sim-s3-mount-watch.js +57 -0
  528. package/dist/service/s3/mount/sim-s3-mount-watch.js.map +1 -0
  529. package/dist/service/s3/mount/sim-s3-mount-watches.d.ts +42 -0
  530. package/dist/service/s3/mount/sim-s3-mount-watches.d.ts.map +1 -0
  531. package/dist/service/s3/mount/sim-s3-mount-watches.js +69 -0
  532. package/dist/service/s3/mount/sim-s3-mount-watches.js.map +1 -0
  533. package/dist/service/s3/mount/sim-s3-mount.type.d.ts +31 -0
  534. package/dist/service/s3/mount/sim-s3-mount.type.d.ts.map +1 -0
  535. package/dist/service/s3/mount/sim-s3-mount.type.js +2 -0
  536. package/dist/service/s3/mount/sim-s3-mount.type.js.map +1 -0
  537. package/dist/service/s3/notification/destination/lambda/sim-s3-notification-function-arn.d.ts +3 -3
  538. package/dist/service/s3/notification/destination/lambda/sim-s3-notification-function-arn.d.ts.map +1 -1
  539. package/dist/service/s3/notification/destination/lambda/sim-s3-notification-function-arn.js +8 -14
  540. package/dist/service/s3/notification/destination/lambda/sim-s3-notification-function-arn.js.map +1 -1
  541. package/dist/service/s3/sim-s3.d.ts +49 -64
  542. package/dist/service/s3/sim-s3.d.ts.map +1 -1
  543. package/dist/service/s3/sim-s3.js +56 -66
  544. package/dist/service/s3/sim-s3.js.map +1 -1
  545. package/dist/util/filesystem/path.d.ts +4 -0
  546. package/dist/util/filesystem/path.d.ts.map +1 -1
  547. package/dist/util/filesystem/path.js +8 -3
  548. package/dist/util/filesystem/path.js.map +1 -1
  549. package/dist/util/memo/memo.d.ts +8 -0
  550. package/dist/util/memo/memo.d.ts.map +1 -1
  551. package/dist/util/memo/memo.js +10 -0
  552. package/dist/util/memo/memo.js.map +1 -1
  553. package/dist/util/process/close-on-signal.d.ts +16 -0
  554. package/dist/util/process/close-on-signal.d.ts.map +1 -0
  555. package/dist/util/process/close-on-signal.js +54 -0
  556. package/dist/util/process/close-on-signal.js.map +1 -0
  557. package/dist/watch/index.d.ts +3 -0
  558. package/dist/watch/index.d.ts.map +1 -0
  559. package/dist/watch/index.js +2 -0
  560. package/dist/watch/index.js.map +1 -0
  561. package/dist/watch/sim-watch-settle.d.ts +13 -0
  562. package/dist/watch/sim-watch-settle.d.ts.map +1 -1
  563. package/dist/watch/sim-watch-settle.js +24 -2
  564. package/dist/watch/sim-watch-settle.js.map +1 -1
  565. package/dist/watch/sim-watch.config.d.ts +1 -0
  566. package/dist/watch/sim-watch.config.d.ts.map +1 -1
  567. package/dist/watch/sim-watch.config.js +21 -1
  568. package/dist/watch/sim-watch.config.js.map +1 -1
  569. package/package.json +29 -24
@@ -1,4 +1,4 @@
1
- import type { SimCreateUserPoolCommandInput } from "./user-pool.command.js";
1
+ import type { SimCognitoUserPoolCommandInput } from "./user-pool.command.js";
2
2
  /**
3
3
  * Refuses the user pool features this simulation does not model.
4
4
  *
@@ -6,16 +6,27 @@ import type { SimCreateUserPoolCommandInput } from "./user-pool.command.js";
6
6
  * them cannot be honoured here at all, and a pool created as if they had been
7
7
  * would behave differently in a deployment.
8
8
  *
9
- * Two are accepted at one value each, and refused at every other. Neither
10
- * value asks for anything this simulation does not do, and both are what CDK
11
- * emits, so a stack that only wanted a pool deploys.
9
+ * `AccountRecoverySetting` is accepted at one value and refused at every
10
+ * other. That value asks for nothing this simulation does not do, and it is
11
+ * what CDK emits, so a stack that only wanted a pool deploys.
12
+ *
13
+ * `AdminCreateUserConfig` is simulated as far as `AllowAdminCreateUserOnly`
14
+ * goes, which is what decides whether `SignUp` is allowed. The two keys beside
15
+ * it are about the invitation an admin-created user is sent, and no message is
16
+ * ever delivered here, so those are refused.
17
+ *
18
+ * `LambdaConfig` is not here. The triggers a pool can run are read by
19
+ * SimCognitoLambdaConfig, which accepts the two this simulation fires and
20
+ * refuses the rest one key at a time, so a pool can have a trigger without
21
+ * having every trigger.
12
22
  */
13
23
  export declare class SimCognitoUnsimulatedUserPoolFeatures {
14
24
  private readonly unsimulated;
15
25
  private readonly structure;
26
+ constructor(operation: string);
16
27
  /**
17
28
  * Refuse a request carrying a feature this simulation cannot honour.
18
29
  */
19
- refuseIn(input: SimCreateUserPoolCommandInput): void;
30
+ refuseIn(input: SimCognitoUserPoolCommandInput): void;
20
31
  }
21
32
  //# sourceMappingURL=sim-cognito-unsimulated-pool-features.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-unsimulated-pool-features.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-features.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAC;AAgC5E;;;;;;;;;;GAUG;AACH,qBAAa,qCAAqC;IAChD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAE1B;IACF,OAAO,CAAC,QAAQ,CAAC,SAAS,CAExB;IAEF;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,6BAA6B,GAAG,IAAI,CA4DnD;CACF"}
1
+ {"version":3,"file":"sim-cognito-unsimulated-pool-features.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-features.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAC;AAkB7E;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,qCAAqC;IAChD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA6B;IACzD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAiC;IAE3D,YAAY,SAAS,EAAE,MAAM,EAG5B;IAED;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,8BAA8B,GAAG,IAAI,CA2CpD;CACF"}
@@ -15,19 +15,6 @@ const accountRecoverySetting = {
15
15
  { Name: "verified_email", Priority: 2 },
16
16
  ],
17
17
  };
18
- /**
19
- * The AdminCreateUser configuration a pool is accepted with.
20
- *
21
- * `AllowAdminCreateUserOnly: true` says only an administrator creates users,
22
- * which is all `AdminCreateUser` does here, so accepting it promises nothing
23
- * this simulation does not already do. `false` says users may sign themselves
24
- * up, and there is no `SignUp` command to do that with, so it is refused.
25
- *
26
- * That asymmetry is deliberately stricter than AWS, whose own default for the
27
- * field is `false`. CDK emits `true`, which is why the accepted value is the
28
- * one that is safe rather than the one AWS defaults to.
29
- */
30
- const adminCreateUserConfig = { AllowAdminCreateUserOnly: true };
31
18
  /**
32
19
  * Refuses the user pool features this simulation does not model.
33
20
  *
@@ -35,26 +22,36 @@ const adminCreateUserConfig = { AllowAdminCreateUserOnly: true };
35
22
  * them cannot be honoured here at all, and a pool created as if they had been
36
23
  * would behave differently in a deployment.
37
24
  *
38
- * Two are accepted at one value each, and refused at every other. Neither
39
- * value asks for anything this simulation does not do, and both are what CDK
40
- * emits, so a stack that only wanted a pool deploys.
25
+ * `AccountRecoverySetting` is accepted at one value and refused at every
26
+ * other. That value asks for nothing this simulation does not do, and it is
27
+ * what CDK emits, so a stack that only wanted a pool deploys.
28
+ *
29
+ * `AdminCreateUserConfig` is simulated as far as `AllowAdminCreateUserOnly`
30
+ * goes, which is what decides whether `SignUp` is allowed. The two keys beside
31
+ * it are about the invitation an admin-created user is sent, and no message is
32
+ * ever delivered here, so those are refused.
33
+ *
34
+ * `LambdaConfig` is not here. The triggers a pool can run are read by
35
+ * SimCognitoLambdaConfig, which accepts the two this simulation fires and
36
+ * refuses the rest one key at a time, so a pool can have a trigger without
37
+ * having every trigger.
41
38
  */
42
39
  export class SimCognitoUnsimulatedUserPoolFeatures {
43
- unsimulated = new SimCognitoUnsimulatedInput("CreateUserPool");
44
- structure = new SimCognitoUnsimulatedStructure("CreateUserPool");
40
+ unsimulated;
41
+ structure;
42
+ constructor(operation) {
43
+ this.unsimulated = new SimCognitoUnsimulatedInput(operation);
44
+ this.structure = new SimCognitoUnsimulatedStructure(operation);
45
+ }
45
46
  /**
46
47
  * Refuse a request carrying a feature this simulation cannot honour.
47
48
  */
48
49
  refuseIn(input) {
49
- this.unsimulated.refuse("LambdaConfig", input.LambdaConfig, "Lambda triggers");
50
- this.unsimulated.refuse("AliasAttributes", input.AliasAttributes, "sign-in aliases");
51
- this.unsimulated.refuse("AutoVerifiedAttributes", input.AutoVerifiedAttributes, "automatic attribute verification");
52
- this.unsimulated.refuse("Schema", input.Schema, "custom attributes");
53
- this.unsimulated.refuse("UsernameConfiguration", input.UsernameConfiguration, "case-insensitive usernames");
54
50
  this.unsimulated.refuse("UserAttributeUpdateSettings", input.UserAttributeUpdateSettings, "verification before an attribute changes");
55
51
  this.unsimulated.refuse("DeviceConfiguration", input.DeviceConfiguration, "device remembering");
56
52
  this.structure.refuseUnless("AccountRecoverySetting", input.AccountRecoverySetting, accountRecoverySetting, "account recovery");
57
- this.structure.refuseUnless("AdminCreateUserConfig", input.AdminCreateUserConfig, adminCreateUserConfig, "self-service sign-up and the invitation an admin-created user is sent");
53
+ this.unsimulated.refuse("AdminCreateUserConfig InviteMessageTemplate", input.AdminCreateUserConfig?.InviteMessageTemplate, "the wording of the invitation an admin-created user is sent");
54
+ this.unsimulated.refuse("AdminCreateUserConfig UnusedAccountValidityDays", input.AdminCreateUserConfig?.UnusedAccountValidityDays, "expiring the temporary password an admin-created user was sent");
58
55
  this.unsimulated.refuse("UserPoolAddOns", input.UserPoolAddOns, "threat protection");
59
56
  this.unsimulated.refuse("KeyConfiguration", input.KeyConfiguration, "encryption under a customer managed key");
60
57
  this.unsimulated.refuse("IssuerConfiguration", input.IssuerConfiguration, "a custom token issuer");
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-unsimulated-pool-features.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-features.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AAGzF;;;;;;;;GAQG;AACH,MAAM,sBAAsB,GAAG;IAC7B,kBAAkB,EAAE;QAClB,EAAE,IAAI,EAAE,uBAAuB,EAAE,QAAQ,EAAE,CAAC,EAAE;QAC9C,EAAE,IAAI,EAAE,gBAAgB,EAAE,QAAQ,EAAE,CAAC,EAAE;KACxC;CACF,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,MAAM,qBAAqB,GAAG,EAAE,wBAAwB,EAAE,IAAI,EAAE,CAAC;AAEjE;;;;;;;;;;GAUG;AACH,MAAM,OAAO,qCAAqC;IAC/B,WAAW,GAAG,IAAI,0BAA0B,CAC3D,gBAAgB,CACjB,CAAC;IACe,SAAS,GAAG,IAAI,8BAA8B,CAC7D,gBAAgB,CACjB,CAAC;IAEF;;OAEG;IACH,QAAQ,CAAC,KAAoC;QAC3C,IAAI,CAAC,WAAW,CAAC,MAAM,CACrB,cAAc,EACd,KAAK,CAAC,YAAY,EAClB,iBAAiB,CAClB,CAAC;QACF,IAAI,CAAC,WAAW,CAAC,MAAM,CACrB,iBAAiB,EACjB,KAAK,CAAC,eAAe,EACrB,iBAAiB,CAClB,CAAC;QACF,IAAI,CAAC,WAAW,CAAC,MAAM,CACrB,wBAAwB,EACxB,KAAK,CAAC,sBAAsB,EAC5B,kCAAkC,CACnC,CAAC;QACF,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,QAAQ,EAAE,KAAK,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;QACrE,IAAI,CAAC,WAAW,CAAC,MAAM,CACrB,uBAAuB,EACvB,KAAK,CAAC,qBAAqB,EAC3B,4BAA4B,CAC7B,CAAC;QACF,IAAI,CAAC,WAAW,CAAC,MAAM,CACrB,6BAA6B,EAC7B,KAAK,CAAC,2BAA2B,EACjC,0CAA0C,CAC3C,CAAC;QACF,IAAI,CAAC,WAAW,CAAC,MAAM,CACrB,qBAAqB,EACrB,KAAK,CAAC,mBAAmB,EACzB,oBAAoB,CACrB,CAAC;QACF,IAAI,CAAC,SAAS,CAAC,YAAY,CACzB,wBAAwB,EACxB,KAAK,CAAC,sBAAsB,EAC5B,sBAAsB,EACtB,kBAAkB,CACnB,CAAC;QACF,IAAI,CAAC,SAAS,CAAC,YAAY,CACzB,uBAAuB,EACvB,KAAK,CAAC,qBAAqB,EAC3B,qBAAqB,EACrB,uEAAuE,CACxE,CAAC;QACF,IAAI,CAAC,WAAW,CAAC,MAAM,CACrB,gBAAgB,EAChB,KAAK,CAAC,cAAc,EACpB,mBAAmB,CACpB,CAAC;QACF,IAAI,CAAC,WAAW,CAAC,MAAM,CACrB,kBAAkB,EAClB,KAAK,CAAC,gBAAgB,EACtB,yCAAyC,CAC1C,CAAC;QACF,IAAI,CAAC,WAAW,CAAC,MAAM,CACrB,qBAAqB,EACrB,KAAK,CAAC,mBAAmB,EACzB,uBAAuB,CACxB,CAAC;QACF,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,cAAc,EAAE,KAAK,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IACtE,CAAC;CACF"}
1
+ {"version":3,"file":"sim-cognito-unsimulated-pool-features.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-features.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AAGzF;;;;;;;;GAQG;AACH,MAAM,sBAAsB,GAAG;IAC7B,kBAAkB,EAAE;QAClB,EAAE,IAAI,EAAE,uBAAuB,EAAE,QAAQ,EAAE,CAAC,EAAE;QAC9C,EAAE,IAAI,EAAE,gBAAgB,EAAE,QAAQ,EAAE,CAAC,EAAE;KACxC;CACF,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,OAAO,qCAAqC;IAC/B,WAAW,CAA6B;IACxC,SAAS,CAAiC;IAE3D,YAAY,SAAiB;QAC3B,IAAI,CAAC,WAAW,GAAG,IAAI,0BAA0B,CAAC,SAAS,CAAC,CAAC;QAC7D,IAAI,CAAC,SAAS,GAAG,IAAI,8BAA8B,CAAC,SAAS,CAAC,CAAC;IACjE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,KAAqC;QAC5C,IAAI,CAAC,WAAW,CAAC,MAAM,CACrB,6BAA6B,EAC7B,KAAK,CAAC,2BAA2B,EACjC,0CAA0C,CAC3C,CAAC;QACF,IAAI,CAAC,WAAW,CAAC,MAAM,CACrB,qBAAqB,EACrB,KAAK,CAAC,mBAAmB,EACzB,oBAAoB,CACrB,CAAC;QACF,IAAI,CAAC,SAAS,CAAC,YAAY,CACzB,wBAAwB,EACxB,KAAK,CAAC,sBAAsB,EAC5B,sBAAsB,EACtB,kBAAkB,CACnB,CAAC;QACF,IAAI,CAAC,WAAW,CAAC,MAAM,CACrB,6CAA6C,EAC7C,KAAK,CAAC,qBAAqB,EAAE,qBAAqB,EAClD,6DAA6D,CAC9D,CAAC;QACF,IAAI,CAAC,WAAW,CAAC,MAAM,CACrB,iDAAiD,EACjD,KAAK,CAAC,qBAAqB,EAAE,yBAAyB,EACtD,gEAAgE,CACjE,CAAC;QACF,IAAI,CAAC,WAAW,CAAC,MAAM,CACrB,gBAAgB,EAChB,KAAK,CAAC,cAAc,EACpB,mBAAmB,CACpB,CAAC;QACF,IAAI,CAAC,WAAW,CAAC,MAAM,CACrB,kBAAkB,EAClB,KAAK,CAAC,gBAAgB,EACtB,yCAAyC,CAC1C,CAAC;QACF,IAAI,CAAC,WAAW,CAAC,MAAM,CACrB,qBAAqB,EACrB,KAAK,CAAC,mBAAmB,EACzB,uBAAuB,CACxB,CAAC;QACF,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,cAAc,EAAE,KAAK,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IACtE,CAAC;CACF"}
@@ -0,0 +1,28 @@
1
+ import type { SimCreateUserPoolCommandInput } from "./user-pool.command.js";
2
+ /**
3
+ * Refuses the inputs deciding how a pool identifies its users.
4
+ *
5
+ * These four are `CreateUserPool` inputs only. Real Cognito fixes each of
6
+ * them when the pool is made and has no `UpdateUserPool` input for any of
7
+ * them, so the refusals only ever name creation.
8
+ *
9
+ * `UsernameAttributes` is the one that would hurt most, and it gets its own
10
+ * refusal saying why.
11
+ */
12
+ export declare class SimCognitoUnsimulatedUserPoolIdentity {
13
+ private readonly unsimulated;
14
+ /**
15
+ * Refuse a request choosing how its users are identified.
16
+ */
17
+ refuseIn(input: SimCreateUserPoolCommandInput): void;
18
+ /**
19
+ * Refuse a pool that signs users in by an attribute rather than by
20
+ * username.
21
+ *
22
+ * Such a pool stores a generated UUID as the username, so code written
23
+ * against it looks users up by something this simulation would not have
24
+ * given them.
25
+ */
26
+ private refuseUsernameAttributes;
27
+ }
28
+ //# sourceMappingURL=sim-cognito-unsimulated-pool-identity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-unsimulated-pool-identity.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAC;AAE5E;;;;;;;;;GASG;AACH,qBAAa,qCAAqC;IAChD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAE1B;IAEF;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,6BAA6B,GAAG,IAAI,CAcnD;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,wBAAwB;CAcjC"}
@@ -0,0 +1,42 @@
1
+ import { SimCognitoInvalidParameterException } from "../../error/sim-cognito.error.js";
2
+ import { SimCognitoUnsimulatedInput } from "../sim-cognito-unsimulated-input.js";
3
+ /**
4
+ * Refuses the inputs deciding how a pool identifies its users.
5
+ *
6
+ * These four are `CreateUserPool` inputs only. Real Cognito fixes each of
7
+ * them when the pool is made and has no `UpdateUserPool` input for any of
8
+ * them, so the refusals only ever name creation.
9
+ *
10
+ * `UsernameAttributes` is the one that would hurt most, and it gets its own
11
+ * refusal saying why.
12
+ */
13
+ export class SimCognitoUnsimulatedUserPoolIdentity {
14
+ unsimulated = new SimCognitoUnsimulatedInput("CreateUserPool");
15
+ /**
16
+ * Refuse a request choosing how its users are identified.
17
+ */
18
+ refuseIn(input) {
19
+ this.refuseUsernameAttributes(input.UsernameAttributes);
20
+ this.unsimulated.refuse("AliasAttributes", input.AliasAttributes, "sign-in aliases");
21
+ this.unsimulated.refuse("Schema", input.Schema, "custom attributes");
22
+ this.unsimulated.refuse("UsernameConfiguration", input.UsernameConfiguration, "case-insensitive usernames");
23
+ }
24
+ /**
25
+ * Refuse a pool that signs users in by an attribute rather than by
26
+ * username.
27
+ *
28
+ * Such a pool stores a generated UUID as the username, so code written
29
+ * against it looks users up by something this simulation would not have
30
+ * given them.
31
+ */
32
+ refuseUsernameAttributes(attributes) {
33
+ if (attributes === undefined) {
34
+ return;
35
+ }
36
+ throw new SimCognitoInvalidParameterException("CreateUserPool UsernameAttributes is not simulated: a pool that signs " +
37
+ "users in by email or phone number stores a generated UUID as the " +
38
+ "username, so simulating the pool without that would answer with the " +
39
+ "wrong username here and the right one on real AWS");
40
+ }
41
+ }
42
+ //# sourceMappingURL=sim-cognito-unsimulated-pool-identity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-unsimulated-pool-identity.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AAGjF;;;;;;;;;GASG;AACH,MAAM,OAAO,qCAAqC;IAC/B,WAAW,GAAG,IAAI,0BAA0B,CAC3D,gBAAgB,CACjB,CAAC;IAEF;;OAEG;IACH,QAAQ,CAAC,KAAoC;QAC3C,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;QAExD,IAAI,CAAC,WAAW,CAAC,MAAM,CACrB,iBAAiB,EACjB,KAAK,CAAC,eAAe,EACrB,iBAAiB,CAClB,CAAC;QACF,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,QAAQ,EAAE,KAAK,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;QACrE,IAAI,CAAC,WAAW,CAAC,MAAM,CACrB,uBAAuB,EACvB,KAAK,CAAC,qBAAqB,EAC3B,4BAA4B,CAC7B,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACK,wBAAwB,CAC9B,UAAyC;QAEzC,IAAI,UAAU,KAAK,SAAS,EAAE,CAAC;YAC7B,OAAO;QACT,CAAC;QAED,MAAM,IAAI,mCAAmC,CAC3C,wEAAwE;YACtE,mEAAmE;YACnE,sEAAsE;YACtE,mDAAmD,CACtD,CAAC;IACJ,CAAC;CACF"}
@@ -1,27 +1,36 @@
1
- import type { SimCreateUserPoolCommandInput } from "./user-pool.command.js";
1
+ import type { SimCognitoUserPoolCommandInput } from "./user-pool.command.js";
2
2
  /**
3
3
  * Refuses the message delivery inputs this simulation does not model.
4
4
  *
5
- * Nothing here sends an email or a text message, so a delivery configuration
6
- * would be stored and never used.
5
+ * Nothing here delivers an email or a text message. A pool records the message
6
+ * it would have sent instead, which is Cognito's own delivery rather than
7
+ * anything a delivery configuration points at: real Cognito with the default
8
+ * `EmailSendingAccount` of `COGNITO_DEFAULT` sends through no other service.
7
9
  *
8
- * The verification wording is a narrower case. No message is delivered, so
9
- * the wording is never read either, and refusing the wording CDK emits would
10
- * refuse every stack that only wanted a pool. It is accepted at that wording
11
- * and refused at any other, because a request writing its own wording is
12
- * asking for a message a user would read.
10
+ * So a pool configured to send through SES or through an SNS SMS role is
11
+ * refused. Accepting the configuration would say the messages went that way,
12
+ * and they would not: they would be recorded here exactly as a pool with no
13
+ * configuration at all records them.
14
+ *
15
+ * The wording of the messages is a different matter and is simulated. It is
16
+ * read by SimCognitoVerificationMessages, which is what a recorded message
17
+ * says. Verifying by following a link is not: nothing here serves the link,
18
+ * and `ConfirmSignUp` with the code is the only way a user is confirmed, so a
19
+ * pool that asked for a link would be tested against a flow it does not have
20
+ * in a deployment.
13
21
  */
14
22
  export declare class SimCognitoUnsimulatedUserPoolMessaging {
15
23
  private readonly unsimulated;
16
- private readonly structure;
24
+ constructor(operation: string);
17
25
  /**
18
26
  * Refuse a request carrying a message setting this simulation cannot
19
27
  * honour.
20
28
  */
21
- refuseIn(input: SimCreateUserPoolCommandInput): void;
29
+ refuseIn(input: SimCognitoUserPoolCommandInput): void;
22
30
  /**
23
- * Refuse verification wording other than the one this simulation accepts.
31
+ * Refuse a pool that verifies by following a link rather than by answering
32
+ * with a code.
24
33
  */
25
- private refuseVerificationWording;
34
+ private refuseLinkVerification;
26
35
  }
27
36
  //# sourceMappingURL=sim-cognito-unsimulated-pool-messaging.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-unsimulated-pool-messaging.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-messaging.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAC;AA0B5E;;;;;;;;;;;GAWG;AACH,qBAAa,sCAAsC;IACjD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAE1B;IACF,OAAO,CAAC,QAAQ,CAAC,SAAS,CAExB;IAEF;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,6BAA6B,GAAG,IAAI,CAkBnD;IAED;;OAEG;IACH,OAAO,CAAC,yBAAyB;CA4BlC"}
1
+ {"version":3,"file":"sim-cognito-unsimulated-pool-messaging.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-messaging.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAC;AAO7E;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,sCAAsC;IACjD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA6B;IAEzD,YAAY,SAAS,EAAE,MAAM,EAE5B;IAED;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,8BAA8B,GAAG,IAAI,CAkBpD;IAED;;;OAGG;IACH,OAAO,CAAC,sBAAsB;CAoB/B"}
@@ -1,41 +1,33 @@
1
1
  import { SimCognitoUnsimulatedInput } from "../sim-cognito-unsimulated-input.js";
2
- import { SimCognitoUnsimulatedStructure } from "../sim-cognito-unsimulated-structure.js";
3
2
  /**
4
- * The verification wording a pool is accepted with.
5
- *
6
- * These are the values `aws-cdk-lib` 2.262.1 emits for a `UserPool` construct
7
- * asking for nothing in particular, so a stack that only wants a pool
8
- * deploys. Whether real Cognito defaults a bare pool to the same wording was
9
- * not checked against a live account, so the CDK synth is the source here
10
- * rather than the AWS default.
11
- */
12
- const verificationMessage = "The verification code to your new account is {####}";
13
- const verificationSubject = "Verify your new account";
14
- const verificationMessageTemplate = {
15
- DefaultEmailOption: "CONFIRM_WITH_CODE",
16
- EmailMessage: verificationMessage,
17
- EmailSubject: verificationSubject,
18
- SmsMessage: verificationMessage,
19
- };
20
- /**
21
- * What a refusal of the verification wording says would be lost.
3
+ * What a refusal of the link options says would be lost.
22
4
  */
23
- const verificationWording = "the wording of a verification message";
5
+ const linkVerification = "confirming a sign-up by following a link";
24
6
  /**
25
7
  * Refuses the message delivery inputs this simulation does not model.
26
8
  *
27
- * Nothing here sends an email or a text message, so a delivery configuration
28
- * would be stored and never used.
9
+ * Nothing here delivers an email or a text message. A pool records the message
10
+ * it would have sent instead, which is Cognito's own delivery rather than
11
+ * anything a delivery configuration points at: real Cognito with the default
12
+ * `EmailSendingAccount` of `COGNITO_DEFAULT` sends through no other service.
29
13
  *
30
- * The verification wording is a narrower case. No message is delivered, so
31
- * the wording is never read either, and refusing the wording CDK emits would
32
- * refuse every stack that only wanted a pool. It is accepted at that wording
33
- * and refused at any other, because a request writing its own wording is
34
- * asking for a message a user would read.
14
+ * So a pool configured to send through SES or through an SNS SMS role is
15
+ * refused. Accepting the configuration would say the messages went that way,
16
+ * and they would not: they would be recorded here exactly as a pool with no
17
+ * configuration at all records them.
18
+ *
19
+ * The wording of the messages is a different matter and is simulated. It is
20
+ * read by SimCognitoVerificationMessages, which is what a recorded message
21
+ * says. Verifying by following a link is not: nothing here serves the link,
22
+ * and `ConfirmSignUp` with the code is the only way a user is confirmed, so a
23
+ * pool that asked for a link would be tested against a flow it does not have
24
+ * in a deployment.
35
25
  */
36
26
  export class SimCognitoUnsimulatedUserPoolMessaging {
37
- unsimulated = new SimCognitoUnsimulatedInput("CreateUserPool");
38
- structure = new SimCognitoUnsimulatedStructure("CreateUserPool");
27
+ unsimulated;
28
+ constructor(operation) {
29
+ this.unsimulated = new SimCognitoUnsimulatedInput(operation);
30
+ }
39
31
  /**
40
32
  * Refuse a request carrying a message setting this simulation cannot
41
33
  * honour.
@@ -44,16 +36,16 @@ export class SimCognitoUnsimulatedUserPoolMessaging {
44
36
  this.unsimulated.refuse("EmailConfiguration", input.EmailConfiguration, "email delivery");
45
37
  this.unsimulated.refuse("SmsConfiguration", input.SmsConfiguration, "SMS delivery");
46
38
  this.unsimulated.refuse("SmsAuthenticationMessage", input.SmsAuthenticationMessage, "multi-factor authentication messages");
47
- this.refuseVerificationWording(input);
39
+ this.refuseLinkVerification(input.VerificationMessageTemplate);
48
40
  }
49
41
  /**
50
- * Refuse verification wording other than the one this simulation accepts.
42
+ * Refuse a pool that verifies by following a link rather than by answering
43
+ * with a code.
51
44
  */
52
- refuseVerificationWording(input) {
53
- this.unsimulated.refuseUnless("EmailVerificationMessage", input.EmailVerificationMessage, verificationMessage, verificationWording);
54
- this.unsimulated.refuseUnless("EmailVerificationSubject", input.EmailVerificationSubject, verificationSubject, verificationWording);
55
- this.unsimulated.refuseUnless("SmsVerificationMessage", input.SmsVerificationMessage, verificationMessage, verificationWording);
56
- this.structure.refuseUnless("VerificationMessageTemplate", input.VerificationMessageTemplate, verificationMessageTemplate, verificationWording);
45
+ refuseLinkVerification(template) {
46
+ this.unsimulated.refuseUnless("VerificationMessageTemplate DefaultEmailOption", template?.DefaultEmailOption, "CONFIRM_WITH_CODE", linkVerification);
47
+ this.unsimulated.refuse("VerificationMessageTemplate EmailMessageByLink", template?.EmailMessageByLink, linkVerification);
48
+ this.unsimulated.refuse("VerificationMessageTemplate EmailSubjectByLink", template?.EmailSubjectByLink, linkVerification);
57
49
  }
58
50
  }
59
51
  //# sourceMappingURL=sim-cognito-unsimulated-pool-messaging.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-unsimulated-pool-messaging.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-messaging.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AAGzF;;;;;;;;GAQG;AACH,MAAM,mBAAmB,GACvB,qDAAqD,CAAC;AACxD,MAAM,mBAAmB,GAAG,yBAAyB,CAAC;AACtD,MAAM,2BAA2B,GAAG;IAClC,kBAAkB,EAAE,mBAAmB;IACvC,YAAY,EAAE,mBAAmB;IACjC,YAAY,EAAE,mBAAmB;IACjC,UAAU,EAAE,mBAAmB;CAChC,CAAC;AAEF;;GAEG;AACH,MAAM,mBAAmB,GAAG,uCAAuC,CAAC;AAEpE;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,sCAAsC;IAChC,WAAW,GAAG,IAAI,0BAA0B,CAC3D,gBAAgB,CACjB,CAAC;IACe,SAAS,GAAG,IAAI,8BAA8B,CAC7D,gBAAgB,CACjB,CAAC;IAEF;;;OAGG;IACH,QAAQ,CAAC,KAAoC;QAC3C,IAAI,CAAC,WAAW,CAAC,MAAM,CACrB,oBAAoB,EACpB,KAAK,CAAC,kBAAkB,EACxB,gBAAgB,CACjB,CAAC;QACF,IAAI,CAAC,WAAW,CAAC,MAAM,CACrB,kBAAkB,EAClB,KAAK,CAAC,gBAAgB,EACtB,cAAc,CACf,CAAC;QACF,IAAI,CAAC,WAAW,CAAC,MAAM,CACrB,0BAA0B,EAC1B,KAAK,CAAC,wBAAwB,EAC9B,sCAAsC,CACvC,CAAC;QAEF,IAAI,CAAC,yBAAyB,CAAC,KAAK,CAAC,CAAC;IACxC,CAAC;IAED;;OAEG;IACK,yBAAyB,CAC/B,KAAoC;QAEpC,IAAI,CAAC,WAAW,CAAC,YAAY,CAC3B,0BAA0B,EAC1B,KAAK,CAAC,wBAAwB,EAC9B,mBAAmB,EACnB,mBAAmB,CACpB,CAAC;QACF,IAAI,CAAC,WAAW,CAAC,YAAY,CAC3B,0BAA0B,EAC1B,KAAK,CAAC,wBAAwB,EAC9B,mBAAmB,EACnB,mBAAmB,CACpB,CAAC;QACF,IAAI,CAAC,WAAW,CAAC,YAAY,CAC3B,wBAAwB,EACxB,KAAK,CAAC,sBAAsB,EAC5B,mBAAmB,EACnB,mBAAmB,CACpB,CAAC;QACF,IAAI,CAAC,SAAS,CAAC,YAAY,CACzB,6BAA6B,EAC7B,KAAK,CAAC,2BAA2B,EACjC,2BAA2B,EAC3B,mBAAmB,CACpB,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"sim-cognito-unsimulated-pool-messaging.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-messaging.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AAGjF;;GAEG;AACH,MAAM,gBAAgB,GAAG,0CAA0C,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,OAAO,sCAAsC;IAChC,WAAW,CAA6B;IAEzD,YAAY,SAAiB;QAC3B,IAAI,CAAC,WAAW,GAAG,IAAI,0BAA0B,CAAC,SAAS,CAAC,CAAC;IAC/D,CAAC;IAED;;;OAGG;IACH,QAAQ,CAAC,KAAqC;QAC5C,IAAI,CAAC,WAAW,CAAC,MAAM,CACrB,oBAAoB,EACpB,KAAK,CAAC,kBAAkB,EACxB,gBAAgB,CACjB,CAAC;QACF,IAAI,CAAC,WAAW,CAAC,MAAM,CACrB,kBAAkB,EAClB,KAAK,CAAC,gBAAgB,EACtB,cAAc,CACf,CAAC;QACF,IAAI,CAAC,WAAW,CAAC,MAAM,CACrB,0BAA0B,EAC1B,KAAK,CAAC,wBAAwB,EAC9B,sCAAsC,CACvC,CAAC;QAEF,IAAI,CAAC,sBAAsB,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC;IACjE,CAAC;IAED;;;OAGG;IACK,sBAAsB,CAC5B,QAA+D;QAE/D,IAAI,CAAC,WAAW,CAAC,YAAY,CAC3B,gDAAgD,EAChD,QAAQ,EAAE,kBAAkB,EAC5B,mBAAmB,EACnB,gBAAgB,CACjB,CAAC;QACF,IAAI,CAAC,WAAW,CAAC,MAAM,CACrB,gDAAgD,EAChD,QAAQ,EAAE,kBAAkB,EAC5B,gBAAgB,CACjB,CAAC;QACF,IAAI,CAAC,WAAW,CAAC,MAAM,CACrB,gDAAgD,EAChD,QAAQ,EAAE,kBAAkB,EAC5B,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF"}
@@ -1,28 +1,22 @@
1
- import type { SimCreateUserPoolCommandInput } from "./user-pool.command.js";
1
+ import type { SimCognitoUserPoolCommandInput } from "./user-pool.command.js";
2
2
  /**
3
- * Refuses the CreateUserPool inputs this simulation does not model.
3
+ * Refuses the pool inputs this simulation does not model.
4
4
  *
5
5
  * Every one of these changes what the pool does on real AWS, so ignoring any
6
6
  * of them would let a request succeed here and behave differently in a
7
- * deployment. `UsernameAttributes` is the one that would hurt most, and it
8
- * gets its own refusal saying why.
7
+ * deployment.
8
+ *
9
+ * `CreateUserPool` and `UpdateUserPool` both carry them, so both refuse them,
10
+ * each naming itself in the refusal.
9
11
  */
10
12
  export declare class SimCognitoUnsimulatedUserPoolOptions {
11
13
  private readonly unsimulated;
12
14
  private readonly features;
13
15
  private readonly messaging;
16
+ constructor(operation: string);
14
17
  /**
15
18
  * Refuse a request carrying an input this simulation cannot honour.
16
19
  */
17
- refuseIn(input: SimCreateUserPoolCommandInput): void;
18
- /**
19
- * Refuse a pool that signs users in by an attribute rather than by
20
- * username.
21
- *
22
- * Such a pool stores a generated UUID as the username, so code written
23
- * against it looks users up by something this simulation would not have
24
- * given them.
25
- */
26
- private refuseUsernameAttributes;
20
+ refuseIn(input: SimCognitoUserPoolCommandInput): void;
27
21
  }
28
22
  //# sourceMappingURL=sim-cognito-unsimulated-pool-options.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-unsimulated-pool-options.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAC;AAE5E;;;;;;;GAOG;AACH,qBAAa,oCAAoC;IAC/C,OAAO,CAAC,QAAQ,CAAC,WAAW,CAE1B;IACF,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA+C;IACxE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAgD;IAE1E;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,6BAA6B,GAAG,IAAI,CA4BnD;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,wBAAwB;CAcjC"}
1
+ {"version":3,"file":"sim-cognito-unsimulated-pool-options.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAC;AAE7E;;;;;;;;;GASG;AACH,qBAAa,oCAAoC;IAC/C,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA6B;IACzD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAwC;IACjE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAyC;IAEnE,YAAY,SAAS,EAAE,MAAM,EAI5B;IAED;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,8BAA8B,GAAG,IAAI,CA0BpD;CACF"}
@@ -1,24 +1,29 @@
1
- import { SimCognitoInvalidParameterException } from "../../error/sim-cognito.error.js";
2
1
  import { SimCognitoUnsimulatedInput } from "../sim-cognito-unsimulated-input.js";
3
2
  import { SimCognitoUnsimulatedUserPoolFeatures } from "./sim-cognito-unsimulated-pool-features.js";
4
3
  import { SimCognitoUnsimulatedUserPoolMessaging } from "./sim-cognito-unsimulated-pool-messaging.js";
5
4
  /**
6
- * Refuses the CreateUserPool inputs this simulation does not model.
5
+ * Refuses the pool inputs this simulation does not model.
7
6
  *
8
7
  * Every one of these changes what the pool does on real AWS, so ignoring any
9
8
  * of them would let a request succeed here and behave differently in a
10
- * deployment. `UsernameAttributes` is the one that would hurt most, and it
11
- * gets its own refusal saying why.
9
+ * deployment.
10
+ *
11
+ * `CreateUserPool` and `UpdateUserPool` both carry them, so both refuse them,
12
+ * each naming itself in the refusal.
12
13
  */
13
14
  export class SimCognitoUnsimulatedUserPoolOptions {
14
- unsimulated = new SimCognitoUnsimulatedInput("CreateUserPool");
15
- features = new SimCognitoUnsimulatedUserPoolFeatures();
16
- messaging = new SimCognitoUnsimulatedUserPoolMessaging();
15
+ unsimulated;
16
+ features;
17
+ messaging;
18
+ constructor(operation) {
19
+ this.unsimulated = new SimCognitoUnsimulatedInput(operation);
20
+ this.features = new SimCognitoUnsimulatedUserPoolFeatures(operation);
21
+ this.messaging = new SimCognitoUnsimulatedUserPoolMessaging(operation);
22
+ }
17
23
  /**
18
24
  * Refuse a request carrying an input this simulation cannot honour.
19
25
  */
20
26
  refuseIn(input) {
21
- this.refuseUsernameAttributes(input.UsernameAttributes);
22
27
  this.unsimulated.refuseUnless("MfaConfiguration", input.MfaConfiguration, "OFF", "multi-factor authentication");
23
28
  this.unsimulated.refuseUnless("UserPoolTier", input.UserPoolTier, "ESSENTIALS", "the Lite and Plus feature plans");
24
29
  this.unsimulated.refuse("Policies SignInPolicy", input.Policies?.SignInPolicy, "choosing which factors a user may sign in with first");
@@ -26,22 +31,5 @@ export class SimCognitoUnsimulatedUserPoolOptions {
26
31
  this.features.refuseIn(input);
27
32
  this.messaging.refuseIn(input);
28
33
  }
29
- /**
30
- * Refuse a pool that signs users in by an attribute rather than by
31
- * username.
32
- *
33
- * Such a pool stores a generated UUID as the username, so code written
34
- * against it looks users up by something this simulation would not have
35
- * given them.
36
- */
37
- refuseUsernameAttributes(attributes) {
38
- if (attributes === undefined) {
39
- return;
40
- }
41
- throw new SimCognitoInvalidParameterException("CreateUserPool UsernameAttributes is not simulated: a pool that signs " +
42
- "users in by email or phone number stores a generated UUID as the " +
43
- "username, so simulating the pool without that would answer with the " +
44
- "wrong username here and the right one on real AWS");
45
- }
46
34
  }
47
35
  //# sourceMappingURL=sim-cognito-unsimulated-pool-options.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-unsimulated-pool-options.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EAAE,qCAAqC,EAAE,MAAM,4CAA4C,CAAC;AACnG,OAAO,EAAE,sCAAsC,EAAE,MAAM,6CAA6C,CAAC;AAGrG;;;;;;;GAOG;AACH,MAAM,OAAO,oCAAoC;IAC9B,WAAW,GAAG,IAAI,0BAA0B,CAC3D,gBAAgB,CACjB,CAAC;IACe,QAAQ,GAAG,IAAI,qCAAqC,EAAE,CAAC;IACvD,SAAS,GAAG,IAAI,sCAAsC,EAAE,CAAC;IAE1E;;OAEG;IACH,QAAQ,CAAC,KAAoC;QAC3C,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;QAExD,IAAI,CAAC,WAAW,CAAC,YAAY,CAC3B,kBAAkB,EAClB,KAAK,CAAC,gBAAgB,EACtB,KAAK,EACL,6BAA6B,CAC9B,CAAC;QACF,IAAI,CAAC,WAAW,CAAC,YAAY,CAC3B,cAAc,EACd,KAAK,CAAC,YAAY,EAClB,YAAY,EACZ,iCAAiC,CAClC,CAAC;QACF,IAAI,CAAC,WAAW,CAAC,MAAM,CACrB,uBAAuB,EACvB,KAAK,CAAC,QAAQ,EAAE,YAAY,EAC5B,sDAAsD,CACvD,CAAC;QACF,IAAI,CAAC,WAAW,CAAC,MAAM,CACrB,6CAA6C,EAC7C,KAAK,CAAC,QAAQ,EAAE,cAAc,EAAE,mBAAmB,EACnD,8CAA8C,CAC/C,CAAC;QAEF,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAC9B,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;IAED;;;;;;;OAOG;IACK,wBAAwB,CAC9B,UAAyC;QAEzC,IAAI,UAAU,KAAK,SAAS,EAAE,CAAC;YAC7B,OAAO;QACT,CAAC;QAED,MAAM,IAAI,mCAAmC,CAC3C,wEAAwE;YACtE,mEAAmE;YACnE,sEAAsE;YACtE,mDAAmD,CACtD,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"sim-cognito-unsimulated-pool-options.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EAAE,qCAAqC,EAAE,MAAM,4CAA4C,CAAC;AACnG,OAAO,EAAE,sCAAsC,EAAE,MAAM,6CAA6C,CAAC;AAGrG;;;;;;;;;GASG;AACH,MAAM,OAAO,oCAAoC;IAC9B,WAAW,CAA6B;IACxC,QAAQ,CAAwC;IAChD,SAAS,CAAyC;IAEnE,YAAY,SAAiB;QAC3B,IAAI,CAAC,WAAW,GAAG,IAAI,0BAA0B,CAAC,SAAS,CAAC,CAAC;QAC7D,IAAI,CAAC,QAAQ,GAAG,IAAI,qCAAqC,CAAC,SAAS,CAAC,CAAC;QACrE,IAAI,CAAC,SAAS,GAAG,IAAI,sCAAsC,CAAC,SAAS,CAAC,CAAC;IACzE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,KAAqC;QAC5C,IAAI,CAAC,WAAW,CAAC,YAAY,CAC3B,kBAAkB,EAClB,KAAK,CAAC,gBAAgB,EACtB,KAAK,EACL,6BAA6B,CAC9B,CAAC;QACF,IAAI,CAAC,WAAW,CAAC,YAAY,CAC3B,cAAc,EACd,KAAK,CAAC,YAAY,EAClB,YAAY,EACZ,iCAAiC,CAClC,CAAC;QACF,IAAI,CAAC,WAAW,CAAC,MAAM,CACrB,uBAAuB,EACvB,KAAK,CAAC,QAAQ,EAAE,YAAY,EAC5B,sDAAsD,CACvD,CAAC;QACF,IAAI,CAAC,WAAW,CAAC,MAAM,CACrB,6CAA6C,EAC7C,KAAK,CAAC,QAAQ,EAAE,cAAc,EAAE,mBAAmB,EACnD,8CAA8C,CAC/C,CAAC;QAEF,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAC9B,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;CACF"}
@@ -0,0 +1,21 @@
1
+ import type { SimUpdateUserPoolCommandInput } from "./user-pool.command.js";
2
+ /**
3
+ * Refuses the UpdateUserPool inputs this simulation does not model.
4
+ *
5
+ * An update carries the same settings a creation does, and they are refused
6
+ * in the same words, saying `UpdateUserPool`.
7
+ *
8
+ * `PoolName` is the one input only an update refuses. Real `UpdateUserPool`
9
+ * renames the pool with it, and a rename is not simulated, so a request
10
+ * carrying one is refused rather than answered with a pool still under its
11
+ * old name.
12
+ */
13
+ export declare class SimCognitoUnsimulatedUserPoolUpdates {
14
+ private readonly unsimulated;
15
+ private readonly options;
16
+ /**
17
+ * Refuse an update carrying an input this simulation cannot honour.
18
+ */
19
+ refuseIn(input: SimUpdateUserPoolCommandInput): void;
20
+ }
21
+ //# sourceMappingURL=sim-cognito-unsimulated-pool-updates.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-unsimulated-pool-updates.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAC;AAE5E;;;;;;;;;;GAUG;AACH,qBAAa,oCAAoC;IAC/C,OAAO,CAAC,QAAQ,CAAC,WAAW,CAE1B;IACF,OAAO,CAAC,QAAQ,CAAC,OAAO,CAEtB;IAEF;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,6BAA6B,GAAG,IAAI,CAInD;CACF"}
@@ -0,0 +1,25 @@
1
+ import { SimCognitoUnsimulatedInput } from "../sim-cognito-unsimulated-input.js";
2
+ import { SimCognitoUnsimulatedUserPoolOptions } from "./sim-cognito-unsimulated-pool-options.js";
3
+ /**
4
+ * Refuses the UpdateUserPool inputs this simulation does not model.
5
+ *
6
+ * An update carries the same settings a creation does, and they are refused
7
+ * in the same words, saying `UpdateUserPool`.
8
+ *
9
+ * `PoolName` is the one input only an update refuses. Real `UpdateUserPool`
10
+ * renames the pool with it, and a rename is not simulated, so a request
11
+ * carrying one is refused rather than answered with a pool still under its
12
+ * old name.
13
+ */
14
+ export class SimCognitoUnsimulatedUserPoolUpdates {
15
+ unsimulated = new SimCognitoUnsimulatedInput("UpdateUserPool");
16
+ options = new SimCognitoUnsimulatedUserPoolOptions("UpdateUserPool");
17
+ /**
18
+ * Refuse an update carrying an input this simulation cannot honour.
19
+ */
20
+ refuseIn(input) {
21
+ this.unsimulated.refuse("PoolName", input.PoolName, "renaming a pool");
22
+ this.options.refuseIn(input);
23
+ }
24
+ }
25
+ //# sourceMappingURL=sim-cognito-unsimulated-pool-updates.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-unsimulated-pool-updates.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EAAE,oCAAoC,EAAE,MAAM,2CAA2C,CAAC;AAGjG;;;;;;;;;;GAUG;AACH,MAAM,OAAO,oCAAoC;IAC9B,WAAW,GAAG,IAAI,0BAA0B,CAC3D,gBAAgB,CACjB,CAAC;IACe,OAAO,GAAG,IAAI,oCAAoC,CACjE,gBAAgB,CACjB,CAAC;IAEF;;OAEG;IACH,QAAQ,CAAC,KAAoC;QAC3C,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,UAAU,EAAE,KAAK,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC;QAEvE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;CACF"}
@@ -2,7 +2,7 @@ import type { SimAwsCaller } from "../../../aws/caller/sim-aws-caller.js";
2
2
  import type { SimCognitoUserPoolFactory } from "../../user-pool/sim-cognito-user-pool-factory.js";
3
3
  import type { SimCognitoUserPoolStore } from "../../user-pool/sim-cognito-user-pool-store.js";
4
4
  import type { SimCognitoAuthorizer } from "../authorize/sim-cognito-authorizer.js";
5
- import type { SimCreateUserPoolCommand, SimCreateUserPoolCommandOutput, SimDeleteUserPoolCommand, SimDeleteUserPoolCommandOutput, SimDescribeUserPoolCommand, SimDescribeUserPoolCommandOutput } from "./user-pool.command.js";
5
+ import type { SimCreateUserPoolCommand, SimCreateUserPoolCommandOutput, SimDeleteUserPoolCommand, SimDeleteUserPoolCommandOutput, SimDescribeUserPoolCommand, SimDescribeUserPoolCommandOutput, SimUpdateUserPoolCommand, SimUpdateUserPoolCommandOutput } from "./user-pool.command.js";
6
6
  interface SimCognitoUserPoolCommandsProperties {
7
7
  readonly pools: SimCognitoUserPoolStore;
8
8
  readonly poolFactory: SimCognitoUserPoolFactory;
@@ -12,7 +12,8 @@ interface SimCognitoCommandOptions {
12
12
  readonly caller?: SimAwsCaller;
13
13
  }
14
14
  /**
15
- * The commands that create, describe and delete a simulated user pool.
15
+ * The commands that create, describe, change and delete a simulated user
16
+ * pool.
16
17
  */
17
18
  export declare class SimCognitoUserPoolCommands {
18
19
  private readonly pools;
@@ -20,6 +21,8 @@ export declare class SimCognitoUserPoolCommands {
20
21
  private readonly authorizer;
21
22
  private readonly view;
22
23
  private readonly unsimulatedOptions;
24
+ private readonly unsimulatedIdentity;
25
+ private readonly unsimulatedUpdates;
23
26
  constructor(properties: SimCognitoUserPoolCommandsProperties);
24
27
  /**
25
28
  * Create a user pool.
@@ -28,6 +31,18 @@ export declare class SimCognitoUserPoolCommands {
28
31
  * Cognito, so nothing can rely on a pool id being predictable.
29
32
  */
30
33
  create(command: SimCreateUserPoolCommand, options?: SimCognitoCommandOptions): SimCreateUserPoolCommandOutput;
34
+ /**
35
+ * Change a user pool's settings.
36
+ *
37
+ * The settings are replaced rather than merged, as real Cognito replaces
38
+ * them: a setting the request leaves out goes back to the default
39
+ * `CreateUserPool` would have given it. A request naming every setting it
40
+ * wants is the one that behaves the same here and on real AWS.
41
+ *
42
+ * Real `UpdateUserPool` answers with nothing, so `DescribeUserPool` is what
43
+ * reads the change back.
44
+ */
45
+ update(command: SimUpdateUserPoolCommand, options?: SimCognitoCommandOptions): SimUpdateUserPoolCommandOutput;
31
46
  /**
32
47
  * Describe a user pool's settings.
33
48
  */
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-user-pool-commands.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/user-pool/sim-cognito-user-pool-commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAE1E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kDAAkD,CAAC;AAElG,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gDAAgD,CAAC;AAC9F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAGnF,OAAO,KAAK,EACV,wBAAwB,EACxB,8BAA8B,EAC9B,wBAAwB,EACxB,8BAA8B,EAC9B,0BAA0B,EAC1B,gCAAgC,EACjC,MAAM,wBAAwB,CAAC;AAEhC,UAAU,oCAAoC;IAC5C,QAAQ,CAAC,KAAK,EAAE,uBAAuB,CAAC;IACxC,QAAQ,CAAC,WAAW,EAAE,yBAAyB,CAAC;IAChD,QAAQ,CAAC,UAAU,EAAE,oBAAoB,CAAC;CAC3C;AAED,UAAU,wBAAwB;IAChC,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC;CAChC;AAED;;GAEG;AACH,qBAAa,0BAA0B;IACrC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA0B;IAChD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA4B;IACxD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAuB;IAClD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAgC;IACrD,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CACU;IAE7C,YAAY,UAAU,EAAE,oCAAoC,EAI3D;IAED;;;;;OAKG;IACH,MAAM,CACJ,OAAO,EAAE,wBAAwB,EACjC,OAAO,CAAC,EAAE,wBAAwB,GACjC,8BAA8B,CAgBhC;IAED;;OAEG;IACH,QAAQ,CACN,OAAO,EAAE,0BAA0B,EACnC,OAAO,CAAC,EAAE,wBAAwB,GACjC,gCAAgC,CAalC;IAED;;OAEG;IACH,MAAM,CACJ,OAAO,EAAE,wBAAwB,EACjC,OAAO,CAAC,EAAE,wBAAwB,GACjC,8BAA8B,CAuBhC;CACF"}
1
+ {"version":3,"file":"sim-cognito-user-pool-commands.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/user-pool/sim-cognito-user-pool-commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAE1E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kDAAkD,CAAC;AAGlG,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gDAAgD,CAAC;AAC9F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAKnF,OAAO,KAAK,EACV,wBAAwB,EACxB,8BAA8B,EAC9B,wBAAwB,EACxB,8BAA8B,EAC9B,0BAA0B,EAC1B,gCAAgC,EAChC,wBAAwB,EACxB,8BAA8B,EAC/B,MAAM,wBAAwB,CAAC;AAEhC,UAAU,oCAAoC;IAC5C,QAAQ,CAAC,KAAK,EAAE,uBAAuB,CAAC;IACxC,QAAQ,CAAC,WAAW,EAAE,yBAAyB,CAAC;IAChD,QAAQ,CAAC,UAAU,EAAE,oBAAoB,CAAC;CAC3C;AAED,UAAU,wBAAwB;IAChC,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC;CAChC;AAED;;;GAGG;AACH,qBAAa,0BAA0B;IACrC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA0B;IAChD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA4B;IACxD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAuB;IAClD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAgC;IACrD,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAC0B;IAC7D,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CACU;IAC9C,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CACU;IAE7C,YAAY,UAAU,EAAE,oCAAoC,EAI3D;IAED;;;;;OAKG;IACH,MAAM,CACJ,OAAO,EAAE,wBAAwB,EACjC,OAAO,CAAC,EAAE,wBAAwB,GACjC,8BAA8B,CAehC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,OAAO,EAAE,wBAAwB,EACjC,OAAO,CAAC,EAAE,wBAAwB,GACjC,8BAA8B,CAkBhC;IAED;;OAEG;IACH,QAAQ,CACN,OAAO,EAAE,0BAA0B,EACnC,OAAO,CAAC,EAAE,wBAAwB,GACjC,gCAAgC,CAalC;IAED;;OAEG;IACH,MAAM,CACJ,OAAO,EAAE,wBAAwB,EACjC,OAAO,CAAC,EAAE,wBAAwB,GACjC,8BAA8B,CAsBhC;CACF"}