@kensio/yulin 1.16.3 → 1.17.1

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 (852) hide show
  1. package/README.md +1 -0
  2. package/dist/sdk/wire/sim-sdk-wire-response.d.ts +12 -0
  3. package/dist/sdk/wire/sim-sdk-wire-response.d.ts.map +1 -1
  4. package/dist/sdk/wire/sim-sdk-wire-response.js +2 -2
  5. package/dist/sdk/wire/sim-sdk-wire-response.js.map +1 -1
  6. package/dist/serve/http/api/query/sim-query-endpoint.d.ts +42 -0
  7. package/dist/serve/http/api/query/sim-query-endpoint.d.ts.map +1 -0
  8. package/dist/serve/http/api/query/sim-query-endpoint.js +55 -0
  9. package/dist/serve/http/api/query/sim-query-endpoint.js.map +1 -0
  10. package/dist/serve/http/api/query/sim-query-operation.d.ts +19 -0
  11. package/dist/serve/http/api/query/sim-query-operation.d.ts.map +1 -0
  12. package/dist/serve/http/api/query/sim-query-operation.js +2 -0
  13. package/dist/serve/http/api/query/sim-query-operation.js.map +1 -0
  14. package/dist/serve/http/api/query/sim-query-request.d.ts +85 -0
  15. package/dist/serve/http/api/query/sim-query-request.d.ts.map +1 -0
  16. package/dist/serve/http/api/query/sim-query-request.js +136 -0
  17. package/dist/serve/http/api/query/sim-query-request.js.map +1 -0
  18. package/dist/serve/http/api/query/sim-query-response.d.ts +35 -0
  19. package/dist/serve/http/api/query/sim-query-response.d.ts.map +1 -0
  20. package/dist/serve/http/api/query/sim-query-response.js +63 -0
  21. package/dist/serve/http/api/query/sim-query-response.js.map +1 -0
  22. package/dist/serve/http/api/query/sim-query-result.d.ts +33 -0
  23. package/dist/serve/http/api/query/sim-query-result.d.ts.map +1 -0
  24. package/dist/serve/http/api/query/sim-query-result.js +87 -0
  25. package/dist/serve/http/api/query/sim-query-result.js.map +1 -0
  26. package/dist/serve/http/api/rest-json/sim-rest-json-endpoint.d.ts +40 -0
  27. package/dist/serve/http/api/rest-json/sim-rest-json-endpoint.d.ts.map +1 -0
  28. package/dist/serve/http/api/rest-json/sim-rest-json-endpoint.js +67 -0
  29. package/dist/serve/http/api/rest-json/sim-rest-json-endpoint.js.map +1 -0
  30. package/dist/serve/http/api/rest-json/sim-rest-json-input.d.ts +45 -0
  31. package/dist/serve/http/api/rest-json/sim-rest-json-input.d.ts.map +1 -0
  32. package/dist/serve/http/api/rest-json/sim-rest-json-input.js +52 -0
  33. package/dist/serve/http/api/rest-json/sim-rest-json-input.js.map +1 -0
  34. package/dist/serve/http/api/rest-json/sim-rest-json-request.d.ts +58 -0
  35. package/dist/serve/http/api/rest-json/sim-rest-json-request.d.ts.map +1 -0
  36. package/dist/serve/http/api/rest-json/sim-rest-json-request.js +68 -0
  37. package/dist/serve/http/api/rest-json/sim-rest-json-request.js.map +1 -0
  38. package/dist/serve/http/api/rest-json/sim-rest-json-response.d.ts +35 -0
  39. package/dist/serve/http/api/rest-json/sim-rest-json-response.d.ts.map +1 -0
  40. package/dist/serve/http/api/rest-json/sim-rest-json-response.js +55 -0
  41. package/dist/serve/http/api/rest-json/sim-rest-json-response.js.map +1 -0
  42. package/dist/serve/http/api/rest-json/sim-rest-json-route.type.d.ts +37 -0
  43. package/dist/serve/http/api/rest-json/sim-rest-json-route.type.d.ts.map +1 -0
  44. package/dist/serve/http/api/rest-json/sim-rest-json-route.type.js +2 -0
  45. package/dist/serve/http/api/rest-json/sim-rest-json-route.type.js.map +1 -0
  46. package/dist/serve/http/api/rest-json/sim-rest-json-routes.d.ts +27 -0
  47. package/dist/serve/http/api/rest-json/sim-rest-json-routes.d.ts.map +1 -0
  48. package/dist/serve/http/api/rest-json/sim-rest-json-routes.js +51 -0
  49. package/dist/serve/http/api/rest-json/sim-rest-json-routes.js.map +1 -0
  50. package/dist/serve/http/api/sim-aws-api-endpoint.d.ts +3 -4
  51. package/dist/serve/http/api/sim-aws-api-endpoint.d.ts.map +1 -1
  52. package/dist/serve/http/api/sim-aws-api-endpoint.js +8 -23
  53. package/dist/serve/http/api/sim-aws-api-endpoint.js.map +1 -1
  54. package/dist/serve/http/api/sim-aws-api-protocols.d.ts +13 -0
  55. package/dist/serve/http/api/sim-aws-api-protocols.d.ts.map +1 -0
  56. package/dist/serve/http/api/sim-aws-api-protocols.js +41 -0
  57. package/dist/serve/http/api/sim-aws-api-protocols.js.map +1 -0
  58. package/dist/service/acm/certificate/register-sim-acm-certificate.d.ts +41 -0
  59. package/dist/service/acm/certificate/register-sim-acm-certificate.d.ts.map +1 -0
  60. package/dist/service/acm/certificate/register-sim-acm-certificate.js +60 -0
  61. package/dist/service/acm/certificate/register-sim-acm-certificate.js.map +1 -0
  62. package/dist/service/acm/command/request-certificate/request-certificate.handler.d.ts +9 -0
  63. package/dist/service/acm/command/request-certificate/request-certificate.handler.d.ts.map +1 -1
  64. package/dist/service/acm/command/request-certificate/request-certificate.handler.js +18 -1
  65. package/dist/service/acm/command/request-certificate/request-certificate.handler.js.map +1 -1
  66. package/dist/service/acm/sim-acm.d.ts +15 -0
  67. package/dist/service/acm/sim-acm.d.ts.map +1 -1
  68. package/dist/service/acm/sim-acm.js +21 -0
  69. package/dist/service/acm/sim-acm.js.map +1 -1
  70. package/dist/service/cloudformation/cdk/sim-cdk-assembly-manifest-file.d.ts +29 -0
  71. package/dist/service/cloudformation/cdk/sim-cdk-assembly-manifest-file.d.ts.map +1 -0
  72. package/dist/service/cloudformation/cdk/sim-cdk-assembly-manifest-file.js +36 -0
  73. package/dist/service/cloudformation/cdk/sim-cdk-assembly-manifest-file.js.map +1 -0
  74. package/dist/service/cloudformation/cdk/sim-cdk-assembly-manifest.d.ts +27 -0
  75. package/dist/service/cloudformation/cdk/sim-cdk-assembly-manifest.d.ts.map +1 -0
  76. package/dist/service/cloudformation/cdk/sim-cdk-assembly-manifest.js +24 -0
  77. package/dist/service/cloudformation/cdk/sim-cdk-assembly-manifest.js.map +1 -0
  78. package/dist/service/cloudformation/cdk/sim-cdk-assembly-order.d.ts +12 -0
  79. package/dist/service/cloudformation/cdk/sim-cdk-assembly-order.d.ts.map +1 -0
  80. package/dist/service/cloudformation/cdk/sim-cdk-assembly-order.js +54 -0
  81. package/dist/service/cloudformation/cdk/sim-cdk-assembly-order.js.map +1 -0
  82. package/dist/service/cloudformation/cdk/sim-cdk-assembly-selection.d.ts +21 -0
  83. package/dist/service/cloudformation/cdk/sim-cdk-assembly-selection.d.ts.map +1 -0
  84. package/dist/service/cloudformation/cdk/sim-cdk-assembly-selection.js +38 -0
  85. package/dist/service/cloudformation/cdk/sim-cdk-assembly-selection.js.map +1 -0
  86. package/dist/service/cloudformation/cdk/sim-cdk-cloud-assembly.factory.d.ts +50 -0
  87. package/dist/service/cloudformation/cdk/sim-cdk-cloud-assembly.factory.d.ts.map +1 -0
  88. package/dist/service/cloudformation/cdk/sim-cdk-cloud-assembly.factory.js +69 -0
  89. package/dist/service/cloudformation/cdk/sim-cdk-cloud-assembly.factory.js.map +1 -0
  90. package/dist/service/cloudformation/command/create-stack/create-stack.handler.d.ts +3 -0
  91. package/dist/service/cloudformation/command/create-stack/create-stack.handler.d.ts.map +1 -1
  92. package/dist/service/cloudformation/command/create-stack/create-stack.handler.js +14 -4
  93. package/dist/service/cloudformation/command/create-stack/create-stack.handler.js.map +1 -1
  94. package/dist/service/cloudformation/command/update-stack/update-stack.handler.d.ts +7 -0
  95. package/dist/service/cloudformation/command/update-stack/update-stack.handler.d.ts.map +1 -1
  96. package/dist/service/cloudformation/command/update-stack/update-stack.handler.js +14 -1
  97. package/dist/service/cloudformation/command/update-stack/update-stack.handler.js.map +1 -1
  98. package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-deployer.d.ts +24 -0
  99. package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-deployer.d.ts.map +1 -0
  100. package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-deployer.js +42 -0
  101. package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-deployer.js.map +1 -0
  102. package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-plan.d.ts +43 -0
  103. package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-plan.d.ts.map +1 -0
  104. package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-plan.js +35 -0
  105. package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-plan.js.map +1 -0
  106. package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-stack-options.d.ts +51 -0
  107. package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-stack-options.d.ts.map +1 -0
  108. package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-stack-options.js +37 -0
  109. package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-stack-options.js.map +1 -0
  110. package/dist/service/cloudformation/deploy/sim-cfn-template-deployer.d.ts +9 -0
  111. package/dist/service/cloudformation/deploy/sim-cfn-template-deployer.d.ts.map +1 -1
  112. package/dist/service/cloudformation/deploy/sim-cfn-template-deployer.js +16 -0
  113. package/dist/service/cloudformation/deploy/sim-cfn-template-deployer.js.map +1 -1
  114. package/dist/service/cloudformation/deploy/sim-cfn-template-file-loader.d.ts.map +1 -1
  115. package/dist/service/cloudformation/deploy/sim-cfn-template-file-loader.js +2 -4
  116. package/dist/service/cloudformation/deploy/sim-cfn-template-file-loader.js.map +1 -1
  117. package/dist/service/cloudformation/deploy/sim-cfn-template-file-read.d.ts +13 -0
  118. package/dist/service/cloudformation/deploy/sim-cfn-template-file-read.d.ts.map +1 -0
  119. package/dist/service/cloudformation/deploy/sim-cfn-template-file-read.js +29 -0
  120. package/dist/service/cloudformation/deploy/sim-cfn-template-file-read.js.map +1 -0
  121. package/dist/service/cloudformation/deploy/sim-cfn-template-file-updater.d.ts +3 -0
  122. package/dist/service/cloudformation/deploy/sim-cfn-template-file-updater.d.ts.map +1 -1
  123. package/dist/service/cloudformation/deploy/sim-cfn-template-file-updater.js +3 -0
  124. package/dist/service/cloudformation/deploy/sim-cfn-template-file-updater.js.map +1 -1
  125. package/dist/service/cloudformation/export/sim-cfn-exports.d.ts +43 -0
  126. package/dist/service/cloudformation/export/sim-cfn-exports.d.ts.map +1 -0
  127. package/dist/service/cloudformation/export/sim-cfn-exports.js +65 -0
  128. package/dist/service/cloudformation/export/sim-cfn-exports.js.map +1 -0
  129. package/dist/service/cloudformation/export/sim-cfn-stack-exports.d.ts +11 -0
  130. package/dist/service/cloudformation/export/sim-cfn-stack-exports.d.ts.map +1 -0
  131. package/dist/service/cloudformation/export/sim-cfn-stack-exports.js +23 -0
  132. package/dist/service/cloudformation/export/sim-cfn-stack-exports.js.map +1 -0
  133. package/dist/service/cloudformation/index.d.ts +2 -0
  134. package/dist/service/cloudformation/index.d.ts.map +1 -1
  135. package/dist/service/cloudformation/parameters/sim-cfn-parameter-definitions.d.ts +10 -0
  136. package/dist/service/cloudformation/parameters/sim-cfn-parameter-definitions.d.ts.map +1 -0
  137. package/dist/service/cloudformation/parameters/sim-cfn-parameter-definitions.js +21 -0
  138. package/dist/service/cloudformation/parameters/sim-cfn-parameter-definitions.js.map +1 -0
  139. package/dist/service/cloudformation/parameters/sim-cfn-parameter-input-values.d.ts +10 -0
  140. package/dist/service/cloudformation/parameters/sim-cfn-parameter-input-values.d.ts.map +1 -0
  141. package/dist/service/cloudformation/parameters/sim-cfn-parameter-input-values.js +19 -0
  142. package/dist/service/cloudformation/parameters/sim-cfn-parameter-input-values.js.map +1 -0
  143. package/dist/service/cloudformation/parameters/sim-cfn-parameter-values.d.ts +34 -0
  144. package/dist/service/cloudformation/parameters/sim-cfn-parameter-values.d.ts.map +1 -0
  145. package/dist/service/cloudformation/parameters/sim-cfn-parameter-values.js +43 -0
  146. package/dist/service/cloudformation/parameters/sim-cfn-parameter-values.js.map +1 -0
  147. package/dist/service/cloudformation/parameters/sim-cfn-parameters.d.ts +21 -16
  148. package/dist/service/cloudformation/parameters/sim-cfn-parameters.d.ts.map +1 -1
  149. package/dist/service/cloudformation/parameters/sim-cfn-parameters.js +33 -62
  150. package/dist/service/cloudformation/parameters/sim-cfn-parameters.js.map +1 -1
  151. package/dist/service/cloudformation/parameters/sim-cfn-parameters.type.d.ts +30 -9
  152. package/dist/service/cloudformation/parameters/sim-cfn-parameters.type.d.ts.map +1 -1
  153. package/dist/service/cloudformation/parameters/store/sim-cfn-parameter-store-value-type.d.ts +20 -0
  154. package/dist/service/cloudformation/parameters/store/sim-cfn-parameter-store-value-type.d.ts.map +1 -0
  155. package/dist/service/cloudformation/parameters/store/sim-cfn-parameter-store-value-type.js +20 -0
  156. package/dist/service/cloudformation/parameters/store/sim-cfn-parameter-store-value-type.js.map +1 -0
  157. package/dist/service/cloudformation/parameters/store/sim-cfn-parameter-store-values.d.ts +48 -0
  158. package/dist/service/cloudformation/parameters/store/sim-cfn-parameter-store-values.d.ts.map +1 -0
  159. package/dist/service/cloudformation/parameters/store/sim-cfn-parameter-store-values.js +69 -0
  160. package/dist/service/cloudformation/parameters/store/sim-cfn-parameter-store-values.js.map +1 -0
  161. package/dist/service/cloudformation/parameters/store/sim-cfn-parameter-store.d.ts +17 -0
  162. package/dist/service/cloudformation/parameters/store/sim-cfn-parameter-store.d.ts.map +1 -0
  163. package/dist/service/cloudformation/parameters/store/sim-cfn-parameter-store.js +15 -0
  164. package/dist/service/cloudformation/parameters/store/sim-cfn-parameter-store.js.map +1 -0
  165. package/dist/service/cloudformation/parameters/store/sim-cfn-parameter-store.type.d.ts +28 -0
  166. package/dist/service/cloudformation/parameters/store/sim-cfn-parameter-store.type.d.ts.map +1 -0
  167. package/dist/service/cloudformation/parameters/store/sim-cfn-parameter-store.type.js +2 -0
  168. package/dist/service/cloudformation/parameters/store/sim-cfn-parameter-store.type.js.map +1 -0
  169. package/dist/service/cloudformation/resource/cfn/iam/sim-iam-cfn-value-adapter.d.ts.map +1 -1
  170. package/dist/service/cloudformation/resource/cfn/iam/sim-iam-cfn-value-adapter.js +4 -0
  171. package/dist/service/cloudformation/resource/cfn/iam/sim-iam-cfn-value-adapter.js.map +1 -1
  172. package/dist/service/cloudformation/resource/cfn/iam/sim-iam-user-cfn.d.ts +28 -0
  173. package/dist/service/cloudformation/resource/cfn/iam/sim-iam-user-cfn.d.ts.map +1 -0
  174. package/dist/service/cloudformation/resource/cfn/iam/sim-iam-user-cfn.js +33 -0
  175. package/dist/service/cloudformation/resource/cfn/iam/sim-iam-user-cfn.js.map +1 -0
  176. package/dist/service/cloudformation/resource/create/sim-cfn-resource-creator.js +1 -1
  177. package/dist/service/cloudformation/resource/create/sim-cfn-resource-creator.js.map +1 -1
  178. package/dist/service/cloudformation/resource/delete/sim-cfn-resource-deleter.js +1 -1
  179. package/dist/service/cloudformation/resource/delete/sim-cfn-resource-deleter.js.map +1 -1
  180. package/dist/service/cloudformation/resource/resolve/property/sim-cfn-resource-property-resolver.d.ts +29 -1
  181. package/dist/service/cloudformation/resource/resolve/property/sim-cfn-resource-property-resolver.d.ts.map +1 -1
  182. package/dist/service/cloudformation/resource/resolve/property/sim-cfn-resource-property-resolver.js +42 -2
  183. package/dist/service/cloudformation/resource/resolve/property/sim-cfn-resource-property-resolver.js.map +1 -1
  184. package/dist/service/cloudformation/resource/sim-cfn-resource-record.d.ts +6 -1
  185. package/dist/service/cloudformation/resource/sim-cfn-resource-record.d.ts.map +1 -1
  186. package/dist/service/cloudformation/resource/sim-cfn-resource-record.js +15 -4
  187. package/dist/service/cloudformation/resource/sim-cfn-resource-record.js.map +1 -1
  188. package/dist/service/cloudformation/resource/sim-cfn-resource.type.d.ts +7 -0
  189. package/dist/service/cloudformation/resource/sim-cfn-resource.type.d.ts.map +1 -1
  190. package/dist/service/cloudformation/serve/sim-cloudformation-api.d.ts +11 -0
  191. package/dist/service/cloudformation/serve/sim-cloudformation-api.d.ts.map +1 -0
  192. package/dist/service/cloudformation/serve/sim-cloudformation-api.js +87 -0
  193. package/dist/service/cloudformation/serve/sim-cloudformation-api.js.map +1 -0
  194. package/dist/service/cloudformation/sim-cloudformation.d.ts +7 -1
  195. package/dist/service/cloudformation/sim-cloudformation.d.ts.map +1 -1
  196. package/dist/service/cloudformation/sim-cloudformation.js +19 -12
  197. package/dist/service/cloudformation/sim-cloudformation.js.map +1 -1
  198. package/dist/service/cloudformation/stack/output/sim-cfn-stack-output-lookup.d.ts +31 -0
  199. package/dist/service/cloudformation/stack/output/sim-cfn-stack-output-lookup.d.ts.map +1 -0
  200. package/dist/service/cloudformation/stack/output/sim-cfn-stack-output-lookup.js +57 -0
  201. package/dist/service/cloudformation/stack/output/sim-cfn-stack-output-lookup.js.map +1 -0
  202. package/dist/service/cloudformation/stack/output/sim-cfn-stack-output-resolver.d.ts +3 -0
  203. package/dist/service/cloudformation/stack/output/sim-cfn-stack-output-resolver.d.ts.map +1 -1
  204. package/dist/service/cloudformation/stack/output/sim-cfn-stack-output-resolver.js +3 -0
  205. package/dist/service/cloudformation/stack/output/sim-cfn-stack-output-resolver.js.map +1 -1
  206. package/dist/service/cloudformation/stack/output/sim-cfn-stack-outputs.d.ts +31 -0
  207. package/dist/service/cloudformation/stack/output/sim-cfn-stack-outputs.d.ts.map +1 -0
  208. package/dist/service/cloudformation/stack/output/sim-cfn-stack-outputs.js +37 -0
  209. package/dist/service/cloudformation/stack/output/sim-cfn-stack-outputs.js.map +1 -0
  210. package/dist/service/cloudformation/stack/report/sim-cfn-stack-resource-report.d.ts +9 -5
  211. package/dist/service/cloudformation/stack/report/sim-cfn-stack-resource-report.d.ts.map +1 -1
  212. package/dist/service/cloudformation/stack/report/sim-cfn-stack-resource-report.js +15 -9
  213. package/dist/service/cloudformation/stack/report/sim-cfn-stack-resource-report.js.map +1 -1
  214. package/dist/service/cloudformation/stack/resource-map/sim-cfn-stack-resource-map.d.ts.map +1 -1
  215. package/dist/service/cloudformation/stack/resource-map/sim-cfn-stack-resource-map.js +1 -0
  216. package/dist/service/cloudformation/stack/resource-map/sim-cfn-stack-resource-map.js.map +1 -1
  217. package/dist/service/cloudformation/stack/sim-cfn-stack.d.ts +14 -1
  218. package/dist/service/cloudformation/stack/sim-cfn-stack.d.ts.map +1 -1
  219. package/dist/service/cloudformation/stack/sim-cfn-stack.js +26 -8
  220. package/dist/service/cloudformation/stack/sim-cfn-stack.js.map +1 -1
  221. package/dist/service/cloudformation/stack/sim-cfn-stack.type.d.ts +7 -0
  222. package/dist/service/cloudformation/stack/sim-cfn-stack.type.d.ts.map +1 -1
  223. package/dist/service/cloudformation/template/dynamic/make-sim-cfn-dynamic-references.d.ts +16 -0
  224. package/dist/service/cloudformation/template/dynamic/make-sim-cfn-dynamic-references.d.ts.map +1 -0
  225. package/dist/service/cloudformation/template/dynamic/make-sim-cfn-dynamic-references.js +20 -0
  226. package/dist/service/cloudformation/template/dynamic/make-sim-cfn-dynamic-references.js.map +1 -0
  227. package/dist/service/cloudformation/template/dynamic/sim-cfn-awaited-dynamic-references.d.ts +42 -0
  228. package/dist/service/cloudformation/template/dynamic/sim-cfn-awaited-dynamic-references.d.ts.map +1 -0
  229. package/dist/service/cloudformation/template/dynamic/sim-cfn-awaited-dynamic-references.js +41 -0
  230. package/dist/service/cloudformation/template/dynamic/sim-cfn-awaited-dynamic-references.js.map +1 -0
  231. package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-placeholder.d.ts +21 -0
  232. package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-placeholder.d.ts.map +1 -0
  233. package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-placeholder.js +61 -0
  234. package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-placeholder.js.map +1 -0
  235. package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-resolvers.d.ts +31 -0
  236. package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-resolvers.d.ts.map +1 -0
  237. package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-resolvers.js +29 -0
  238. package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-resolvers.js.map +1 -0
  239. package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-scan.d.ts +21 -0
  240. package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-scan.d.ts.map +1 -0
  241. package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-scan.js +39 -0
  242. package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-scan.js.map +1 -0
  243. package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference.type.d.ts +63 -0
  244. package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference.type.d.ts.map +1 -0
  245. package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference.type.js +2 -0
  246. package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference.type.js.map +1 -0
  247. package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-references.d.ts +57 -0
  248. package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-references.d.ts.map +1 -0
  249. package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-references.js +83 -0
  250. package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-references.js.map +1 -0
  251. package/dist/service/cloudformation/template/node/fn/import-value/sim-cfn-fn-import-value.d.ts +33 -0
  252. package/dist/service/cloudformation/template/node/fn/import-value/sim-cfn-fn-import-value.d.ts.map +1 -0
  253. package/dist/service/cloudformation/template/node/fn/import-value/sim-cfn-fn-import-value.js +47 -0
  254. package/dist/service/cloudformation/template/node/fn/import-value/sim-cfn-fn-import-value.js.map +1 -0
  255. package/dist/service/cloudformation/template/node/fn/split/sim-cfn-fn-split.d.ts +7 -0
  256. package/dist/service/cloudformation/template/node/fn/split/sim-cfn-fn-split.d.ts.map +1 -1
  257. package/dist/service/cloudformation/template/node/fn/split/sim-cfn-fn-split.js +12 -0
  258. package/dist/service/cloudformation/template/node/fn/split/sim-cfn-fn-split.js.map +1 -1
  259. package/dist/service/cloudformation/template/node/fn/sub/sim-cfn-fn-sub.d.ts.map +1 -1
  260. package/dist/service/cloudformation/template/node/fn/sub/sim-cfn-fn-sub.js +6 -1
  261. package/dist/service/cloudformation/template/node/fn/sub/sim-cfn-fn-sub.js.map +1 -1
  262. package/dist/service/cloudformation/template/node/sim-cfn-literal.d.ts +9 -2
  263. package/dist/service/cloudformation/template/node/sim-cfn-literal.d.ts.map +1 -1
  264. package/dist/service/cloudformation/template/node/sim-cfn-literal.js +12 -3
  265. package/dist/service/cloudformation/template/node/sim-cfn-literal.js.map +1 -1
  266. package/dist/service/cloudformation/template/parse/fn/import-value/sim-cfn-fn-import-value-parser.d.ts +26 -0
  267. package/dist/service/cloudformation/template/parse/fn/import-value/sim-cfn-fn-import-value-parser.d.ts.map +1 -0
  268. package/dist/service/cloudformation/template/parse/fn/import-value/sim-cfn-fn-import-value-parser.js +31 -0
  269. package/dist/service/cloudformation/template/parse/fn/import-value/sim-cfn-fn-import-value-parser.js.map +1 -0
  270. package/dist/service/cloudformation/template/parse/fn/sim-cfn-function-parser.d.ts +4 -7
  271. package/dist/service/cloudformation/template/parse/fn/sim-cfn-function-parser.d.ts.map +1 -1
  272. package/dist/service/cloudformation/template/parse/fn/sim-cfn-function-parser.js +9 -41
  273. package/dist/service/cloudformation/template/parse/fn/sim-cfn-function-parser.js.map +1 -1
  274. package/dist/service/cloudformation/template/parse/fn/sim-cfn-function-parsers.d.ts +19 -0
  275. package/dist/service/cloudformation/template/parse/fn/sim-cfn-function-parsers.d.ts.map +1 -0
  276. package/dist/service/cloudformation/template/parse/fn/sim-cfn-function-parsers.js +31 -0
  277. package/dist/service/cloudformation/template/parse/fn/sim-cfn-function-parsers.js.map +1 -0
  278. package/dist/service/cloudformation/template/resolve/sim-cfn-resolve-context.d.ts +19 -0
  279. package/dist/service/cloudformation/template/resolve/sim-cfn-resolve-context.d.ts.map +1 -1
  280. package/dist/service/cloudformation/template/resolve/sim-cfn-resolve-context.js +18 -0
  281. package/dist/service/cloudformation/template/resolve/sim-cfn-resolve-context.js.map +1 -1
  282. package/dist/service/cloudformation/template/sim-cfn-template.d.ts +5 -0
  283. package/dist/service/cloudformation/template/sim-cfn-template.d.ts.map +1 -1
  284. package/dist/service/cloudformation/template/sim-cfn-template.js +7 -1
  285. package/dist/service/cloudformation/template/sim-cfn-template.js.map +1 -1
  286. package/dist/service/cloudformation/template/value/sim-cfn-template-value-resolver.d.ts +4 -0
  287. package/dist/service/cloudformation/template/value/sim-cfn-template-value-resolver.d.ts.map +1 -1
  288. package/dist/service/cloudformation/template/value/sim-cfn-template-value-resolver.js +2 -0
  289. package/dist/service/cloudformation/template/value/sim-cfn-template-value-resolver.js.map +1 -1
  290. package/dist/service/cloudformation/template/value/sim-cfn-value-path.d.ts +5 -0
  291. package/dist/service/cloudformation/template/value/sim-cfn-value-path.d.ts.map +1 -1
  292. package/dist/service/cloudformation/template/value/sim-cfn-value-path.js +22 -0
  293. package/dist/service/cloudformation/template/value/sim-cfn-value-path.js.map +1 -1
  294. package/dist/service/cloudfront/command/create-function/create-function-code-size.d.ts +23 -0
  295. package/dist/service/cloudfront/command/create-function/create-function-code-size.d.ts.map +1 -0
  296. package/dist/service/cloudfront/command/create-function/create-function-code-size.js +33 -0
  297. package/dist/service/cloudfront/command/create-function/create-function-code-size.js.map +1 -0
  298. package/dist/service/cloudfront/command/create-function/create-function.handler.d.ts.map +1 -1
  299. package/dist/service/cloudfront/command/create-function/create-function.handler.js +2 -0
  300. package/dist/service/cloudfront/command/create-function/create-function.handler.js.map +1 -1
  301. package/dist/service/cloudfront/error/sim-cloudfront.error.d.ts +11 -0
  302. package/dist/service/cloudfront/error/sim-cloudfront.error.d.ts.map +1 -1
  303. package/dist/service/cloudfront/error/sim-cloudfront.error.js +13 -0
  304. package/dist/service/cloudfront/error/sim-cloudfront.error.js.map +1 -1
  305. package/dist/service/cloudfront/index.d.ts +1 -1
  306. package/dist/service/cloudfront/index.d.ts.map +1 -1
  307. package/dist/service/cloudfront/index.js +1 -1
  308. package/dist/service/cloudfront/index.js.map +1 -1
  309. package/dist/service/cognito/command/sim-cognito-commands.d.ts +6 -0
  310. package/dist/service/cognito/command/sim-cognito-commands.d.ts.map +1 -1
  311. package/dist/service/cognito/command/sim-cognito-commands.js +22 -6
  312. package/dist/service/cognito/command/sim-cognito-commands.js.map +1 -1
  313. package/dist/service/cognito/error/sim-cognito.error.d.ts +22 -0
  314. package/dist/service/cognito/error/sim-cognito.error.d.ts.map +1 -1
  315. package/dist/service/cognito/error/sim-cognito.error.js +26 -0
  316. package/dist/service/cognito/error/sim-cognito.error.js.map +1 -1
  317. package/dist/service/cognito/index.d.ts +2 -1
  318. package/dist/service/cognito/index.d.ts.map +1 -1
  319. package/dist/service/cognito/index.js +1 -1
  320. package/dist/service/cognito/index.js.map +1 -1
  321. package/dist/service/cognito/sim-cognito-identity-provider.d.ts +24 -0
  322. package/dist/service/cognito/sim-cognito-identity-provider.d.ts.map +1 -1
  323. package/dist/service/cognito/sim-cognito-identity-provider.js +26 -0
  324. package/dist/service/cognito/sim-cognito-identity-provider.js.map +1 -1
  325. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.d.ts +9 -0
  326. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.d.ts.map +1 -1
  327. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.js +2 -2
  328. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.js.map +1 -1
  329. package/dist/service/cognito/user-pool/register-sim-cognito-user-pool-client.d.ts +22 -0
  330. package/dist/service/cognito/user-pool/register-sim-cognito-user-pool-client.d.ts.map +1 -0
  331. package/dist/service/cognito/user-pool/register-sim-cognito-user-pool-client.js +36 -0
  332. package/dist/service/cognito/user-pool/register-sim-cognito-user-pool-client.js.map +1 -0
  333. package/dist/service/cognito/user-pool/register-sim-cognito-user-pool.d.ts +25 -0
  334. package/dist/service/cognito/user-pool/register-sim-cognito-user-pool.d.ts.map +1 -0
  335. package/dist/service/cognito/user-pool/register-sim-cognito-user-pool.js +30 -0
  336. package/dist/service/cognito/user-pool/register-sim-cognito-user-pool.js.map +1 -0
  337. package/dist/service/cognito/user-pool/sim-cognito-registration.types.d.ts +40 -0
  338. package/dist/service/cognito/user-pool/sim-cognito-registration.types.d.ts.map +1 -0
  339. package/dist/service/cognito/user-pool/sim-cognito-registration.types.js +2 -0
  340. package/dist/service/cognito/user-pool/sim-cognito-registration.types.js.map +1 -0
  341. package/dist/service/cognito/user-pool/sim-cognito-registrations.d.ts +34 -0
  342. package/dist/service/cognito/user-pool/sim-cognito-registrations.d.ts.map +1 -0
  343. package/dist/service/cognito/user-pool/sim-cognito-registrations.js +28 -0
  344. package/dist/service/cognito/user-pool/sim-cognito-registrations.js.map +1 -0
  345. package/dist/service/cognito/user-pool/sim-cognito-user-pool-factory.d.ts +9 -0
  346. package/dist/service/cognito/user-pool/sim-cognito-user-pool-factory.d.ts.map +1 -1
  347. package/dist/service/cognito/user-pool/sim-cognito-user-pool-factory.js +3 -2
  348. package/dist/service/cognito/user-pool/sim-cognito-user-pool-factory.js.map +1 -1
  349. package/dist/service/cognito/user-pool/sim-cognito-user-pool-id.d.ts +9 -0
  350. package/dist/service/cognito/user-pool/sim-cognito-user-pool-id.d.ts.map +1 -1
  351. package/dist/service/cognito/user-pool/sim-cognito-user-pool-id.js +18 -0
  352. package/dist/service/cognito/user-pool/sim-cognito-user-pool-id.js.map +1 -1
  353. package/dist/service/cognito/user-pool/sim-cognito-user-pool-store.d.ts +8 -0
  354. package/dist/service/cognito/user-pool/sim-cognito-user-pool-store.d.ts.map +1 -1
  355. package/dist/service/cognito/user-pool/sim-cognito-user-pool-store.js +15 -1
  356. package/dist/service/cognito/user-pool/sim-cognito-user-pool-store.js.map +1 -1
  357. package/dist/service/elbv2/serve/api/sim-elbv2-api.d.ts +15 -0
  358. package/dist/service/elbv2/serve/api/sim-elbv2-api.d.ts.map +1 -0
  359. package/dist/service/elbv2/serve/api/sim-elbv2-api.js +41 -0
  360. package/dist/service/elbv2/serve/api/sim-elbv2-api.js.map +1 -0
  361. package/dist/service/elbv2/serve/api/sim-elbv2-query-action.d.ts +14 -0
  362. package/dist/service/elbv2/serve/api/sim-elbv2-query-action.d.ts.map +1 -0
  363. package/dist/service/elbv2/serve/api/sim-elbv2-query-action.js +52 -0
  364. package/dist/service/elbv2/serve/api/sim-elbv2-query-action.js.map +1 -0
  365. package/dist/service/elbv2/serve/api/sim-elbv2-query-certificate.d.ts +14 -0
  366. package/dist/service/elbv2/serve/api/sim-elbv2-query-certificate.d.ts.map +1 -0
  367. package/dist/service/elbv2/serve/api/sim-elbv2-query-certificate.js +20 -0
  368. package/dist/service/elbv2/serve/api/sim-elbv2-query-certificate.js.map +1 -0
  369. package/dist/service/elbv2/serve/api/sim-elbv2-query-condition.d.ts +11 -0
  370. package/dist/service/elbv2/serve/api/sim-elbv2-query-condition.d.ts.map +1 -0
  371. package/dist/service/elbv2/serve/api/sim-elbv2-query-condition.js +39 -0
  372. package/dist/service/elbv2/serve/api/sim-elbv2-query-condition.js.map +1 -0
  373. package/dist/service/elbv2/serve/api/sim-elbv2-query-input.d.ts +47 -0
  374. package/dist/service/elbv2/serve/api/sim-elbv2-query-input.d.ts.map +1 -0
  375. package/dist/service/elbv2/serve/api/sim-elbv2-query-input.js +71 -0
  376. package/dist/service/elbv2/serve/api/sim-elbv2-query-input.js.map +1 -0
  377. package/dist/service/elbv2/serve/api/sim-elbv2-query-listener-certificate-operations.d.ts +11 -0
  378. package/dist/service/elbv2/serve/api/sim-elbv2-query-listener-certificate-operations.d.ts.map +1 -0
  379. package/dist/service/elbv2/serve/api/sim-elbv2-query-listener-certificate-operations.js +46 -0
  380. package/dist/service/elbv2/serve/api/sim-elbv2-query-listener-certificate-operations.js.map +1 -0
  381. package/dist/service/elbv2/serve/api/sim-elbv2-query-listener-operations.d.ts +6 -0
  382. package/dist/service/elbv2/serve/api/sim-elbv2-query-listener-operations.d.ts.map +1 -0
  383. package/dist/service/elbv2/serve/api/sim-elbv2-query-listener-operations.js +77 -0
  384. package/dist/service/elbv2/serve/api/sim-elbv2-query-listener-operations.js.map +1 -0
  385. package/dist/service/elbv2/serve/api/sim-elbv2-query-load-balancer-operations.d.ts +6 -0
  386. package/dist/service/elbv2/serve/api/sim-elbv2-query-load-balancer-operations.d.ts.map +1 -0
  387. package/dist/service/elbv2/serve/api/sim-elbv2-query-load-balancer-operations.js +67 -0
  388. package/dist/service/elbv2/serve/api/sim-elbv2-query-load-balancer-operations.js.map +1 -0
  389. package/dist/service/elbv2/serve/api/sim-elbv2-query-result.d.ts +15 -0
  390. package/dist/service/elbv2/serve/api/sim-elbv2-query-result.d.ts.map +1 -0
  391. package/dist/service/elbv2/serve/api/sim-elbv2-query-result.js +25 -0
  392. package/dist/service/elbv2/serve/api/sim-elbv2-query-result.js.map +1 -0
  393. package/dist/service/elbv2/serve/api/sim-elbv2-query-rule-operations.d.ts +6 -0
  394. package/dist/service/elbv2/serve/api/sim-elbv2-query-rule-operations.d.ts.map +1 -0
  395. package/dist/service/elbv2/serve/api/sim-elbv2-query-rule-operations.js +74 -0
  396. package/dist/service/elbv2/serve/api/sim-elbv2-query-rule-operations.js.map +1 -0
  397. package/dist/service/elbv2/serve/api/sim-elbv2-query-target-group-operations.d.ts +6 -0
  398. package/dist/service/elbv2/serve/api/sim-elbv2-query-target-group-operations.d.ts.map +1 -0
  399. package/dist/service/elbv2/serve/api/sim-elbv2-query-target-group-operations.js +114 -0
  400. package/dist/service/elbv2/serve/api/sim-elbv2-query-target-group-operations.js.map +1 -0
  401. package/dist/service/elbv2/serve/api/sim-elbv2-query-target-operations.d.ts +6 -0
  402. package/dist/service/elbv2/serve/api/sim-elbv2-query-target-operations.d.ts.map +1 -0
  403. package/dist/service/elbv2/serve/api/sim-elbv2-query-target-operations.js +64 -0
  404. package/dist/service/elbv2/serve/api/sim-elbv2-query-target-operations.js.map +1 -0
  405. package/dist/service/iam/cfn/managed-policy/sim-cfn-iam-managed-policy-attacher.d.ts +40 -0
  406. package/dist/service/iam/cfn/managed-policy/sim-cfn-iam-managed-policy-attacher.d.ts.map +1 -0
  407. package/dist/service/iam/cfn/managed-policy/sim-cfn-iam-managed-policy-attacher.js +65 -0
  408. package/dist/service/iam/cfn/managed-policy/sim-cfn-iam-managed-policy-attacher.js.map +1 -0
  409. package/dist/service/iam/cfn/managed-policy/sim-cfn-iam-managed-policy-creator.d.ts +1 -0
  410. package/dist/service/iam/cfn/managed-policy/sim-cfn-iam-managed-policy-creator.d.ts.map +1 -1
  411. package/dist/service/iam/cfn/managed-policy/sim-cfn-iam-managed-policy-creator.js +5 -0
  412. package/dist/service/iam/cfn/managed-policy/sim-cfn-iam-managed-policy-creator.js.map +1 -1
  413. package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-creator.d.ts +11 -20
  414. package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-creator.d.ts.map +1 -1
  415. package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-creator.js +29 -61
  416. package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-creator.js.map +1 -1
  417. package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-properties-parser.d.ts +38 -0
  418. package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-properties-parser.d.ts.map +1 -0
  419. package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-properties-parser.js +79 -0
  420. package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-properties-parser.js.map +1 -0
  421. package/dist/service/iam/cfn/role/sim-cfn-iam-role-properties-parser.d.ts +2 -2
  422. package/dist/service/iam/cfn/role/sim-cfn-iam-role-properties-parser.d.ts.map +1 -1
  423. package/dist/service/iam/cfn/role/sim-cfn-iam-role-properties-parser.js +4 -2
  424. package/dist/service/iam/cfn/role/sim-cfn-iam-role-properties-parser.js.map +1 -1
  425. package/dist/service/iam/cfn/sim-cfn-iam-policies-parser.d.ts +35 -0
  426. package/dist/service/iam/cfn/sim-cfn-iam-policies-parser.d.ts.map +1 -0
  427. package/dist/service/iam/cfn/{role/sim-cfn-iam-role-policies-parser.js → sim-cfn-iam-policies-parser.js} +17 -12
  428. package/dist/service/iam/cfn/sim-cfn-iam-policies-parser.js.map +1 -0
  429. package/dist/service/iam/cfn/sim-cfn-iam-resource-deleter.d.ts +11 -0
  430. package/dist/service/iam/cfn/sim-cfn-iam-resource-deleter.d.ts.map +1 -1
  431. package/dist/service/iam/cfn/sim-cfn-iam-resource-deleter.js +25 -0
  432. package/dist/service/iam/cfn/sim-cfn-iam-resource-deleter.js.map +1 -1
  433. package/dist/service/iam/cfn/sim-cfn-iam-resource-factory.d.ts +1 -0
  434. package/dist/service/iam/cfn/sim-cfn-iam-resource-factory.d.ts.map +1 -1
  435. package/dist/service/iam/cfn/sim-cfn-iam-resource-factory.js +6 -0
  436. package/dist/service/iam/cfn/sim-cfn-iam-resource-factory.js.map +1 -1
  437. package/dist/service/iam/cfn/user/sim-cfn-iam-user-creator.d.ts +28 -0
  438. package/dist/service/iam/cfn/user/sim-cfn-iam-user-creator.d.ts.map +1 -0
  439. package/dist/service/iam/cfn/user/sim-cfn-iam-user-creator.js +67 -0
  440. package/dist/service/iam/cfn/user/sim-cfn-iam-user-creator.js.map +1 -0
  441. package/dist/service/iam/cfn/user/sim-cfn-iam-user-deleter.d.ts +26 -0
  442. package/dist/service/iam/cfn/user/sim-cfn-iam-user-deleter.d.ts.map +1 -0
  443. package/dist/service/iam/cfn/user/sim-cfn-iam-user-deleter.js +29 -0
  444. package/dist/service/iam/cfn/user/sim-cfn-iam-user-deleter.js.map +1 -0
  445. package/dist/service/iam/cfn/user/sim-cfn-iam-user-properties-parser.d.ts +38 -0
  446. package/dist/service/iam/cfn/user/sim-cfn-iam-user-properties-parser.d.ts.map +1 -0
  447. package/dist/service/iam/cfn/user/sim-cfn-iam-user-properties-parser.js +80 -0
  448. package/dist/service/iam/cfn/user/sim-cfn-iam-user-properties-parser.js.map +1 -0
  449. package/dist/service/iam/command/sim-iam-command.types.d.ts +3 -0
  450. package/dist/service/iam/command/sim-iam-command.types.d.ts.map +1 -1
  451. package/dist/service/iam/command/user/attach-user-policy/attach-user-policy.command.d.ts +9 -0
  452. package/dist/service/iam/command/user/attach-user-policy/attach-user-policy.command.d.ts.map +1 -0
  453. package/dist/service/iam/command/user/attach-user-policy/attach-user-policy.command.js +2 -0
  454. package/dist/service/iam/command/user/attach-user-policy/attach-user-policy.command.js.map +1 -0
  455. package/dist/service/iam/command/user/attach-user-policy/attach-user-policy.handler.d.ts +30 -0
  456. package/dist/service/iam/command/user/attach-user-policy/attach-user-policy.handler.d.ts.map +1 -0
  457. package/dist/service/iam/command/user/attach-user-policy/attach-user-policy.handler.js +44 -0
  458. package/dist/service/iam/command/user/attach-user-policy/attach-user-policy.handler.js.map +1 -0
  459. package/dist/service/iam/command/user/create-login-profile/create-login-profile.command.d.ts +16 -0
  460. package/dist/service/iam/command/user/create-login-profile/create-login-profile.command.d.ts.map +1 -0
  461. package/dist/service/iam/command/user/create-login-profile/create-login-profile.command.js +2 -0
  462. package/dist/service/iam/command/user/create-login-profile/create-login-profile.command.js.map +1 -0
  463. package/dist/service/iam/command/user/create-login-profile/create-login-profile.handler.d.ts +32 -0
  464. package/dist/service/iam/command/user/create-login-profile/create-login-profile.handler.d.ts.map +1 -0
  465. package/dist/service/iam/command/user/create-login-profile/create-login-profile.handler.js +59 -0
  466. package/dist/service/iam/command/user/create-login-profile/create-login-profile.handler.js.map +1 -0
  467. package/dist/service/iam/command/user/create-user/create-user-record-factory.d.ts.map +1 -1
  468. package/dist/service/iam/command/user/create-user/create-user-record-factory.js +1 -0
  469. package/dist/service/iam/command/user/create-user/create-user-record-factory.js.map +1 -1
  470. package/dist/service/iam/command/user/delete-user/delete-user.command.d.ts +19 -0
  471. package/dist/service/iam/command/user/delete-user/delete-user.command.d.ts.map +1 -0
  472. package/dist/service/iam/command/user/delete-user/delete-user.command.js +2 -0
  473. package/dist/service/iam/command/user/delete-user/delete-user.command.js.map +1 -0
  474. package/dist/service/iam/command/user/delete-user/delete-user.handler.d.ts +34 -0
  475. package/dist/service/iam/command/user/delete-user/delete-user.handler.d.ts.map +1 -0
  476. package/dist/service/iam/command/user/delete-user/delete-user.handler.js +51 -0
  477. package/dist/service/iam/command/user/delete-user/delete-user.handler.js.map +1 -0
  478. package/dist/service/iam/command/user/sim-iam-user-command-handlers.d.ts +15 -0
  479. package/dist/service/iam/command/user/sim-iam-user-command-handlers.d.ts.map +1 -1
  480. package/dist/service/iam/command/user/sim-iam-user-command-handlers.js +36 -0
  481. package/dist/service/iam/command/user/sim-iam-user-command-handlers.js.map +1 -1
  482. package/dist/service/iam/sdk/sim-iam-sdk-command-router.d.ts.map +1 -1
  483. package/dist/service/iam/sdk/sim-iam-sdk-command-router.js +12 -0
  484. package/dist/service/iam/sdk/sim-iam-sdk-command-router.js.map +1 -1
  485. package/dist/service/iam/serve/sim-iam-api.d.ts +18 -0
  486. package/dist/service/iam/serve/sim-iam-api.d.ts.map +1 -0
  487. package/dist/service/iam/serve/sim-iam-api.js +38 -0
  488. package/dist/service/iam/serve/sim-iam-api.js.map +1 -0
  489. package/dist/service/iam/serve/sim-iam-query-entity.d.ts +12 -0
  490. package/dist/service/iam/serve/sim-iam-query-entity.d.ts.map +1 -0
  491. package/dist/service/iam/serve/sim-iam-query-entity.js +22 -0
  492. package/dist/service/iam/serve/sim-iam-query-entity.js.map +1 -0
  493. package/dist/service/iam/serve/sim-iam-query-listing.d.ts +18 -0
  494. package/dist/service/iam/serve/sim-iam-query-listing.d.ts.map +1 -0
  495. package/dist/service/iam/serve/sim-iam-query-listing.js +25 -0
  496. package/dist/service/iam/serve/sim-iam-query-listing.js.map +1 -0
  497. package/dist/service/iam/serve/sim-iam-query-policy-operations.d.ts +6 -0
  498. package/dist/service/iam/serve/sim-iam-query-policy-operations.d.ts.map +1 -0
  499. package/dist/service/iam/serve/sim-iam-query-policy-operations.js +70 -0
  500. package/dist/service/iam/serve/sim-iam-query-policy-operations.js.map +1 -0
  501. package/dist/service/iam/serve/sim-iam-query-role-operations.d.ts +10 -0
  502. package/dist/service/iam/serve/sim-iam-query-role-operations.d.ts.map +1 -0
  503. package/dist/service/iam/serve/sim-iam-query-role-operations.js +108 -0
  504. package/dist/service/iam/serve/sim-iam-query-role-operations.js.map +1 -0
  505. package/dist/service/iam/serve/sim-iam-query-user-operations.d.ts +11 -0
  506. package/dist/service/iam/serve/sim-iam-query-user-operations.d.ts.map +1 -0
  507. package/dist/service/iam/serve/sim-iam-query-user-operations.js +62 -0
  508. package/dist/service/iam/serve/sim-iam-query-user-operations.js.map +1 -0
  509. package/dist/service/iam/sim-iam.d.ts +12 -0
  510. package/dist/service/iam/sim-iam.d.ts.map +1 -1
  511. package/dist/service/iam/sim-iam.js +18 -0
  512. package/dist/service/iam/sim-iam.js.map +1 -1
  513. package/dist/service/iam/user/sim-iam-user-login-profile.d.ts +14 -0
  514. package/dist/service/iam/user/sim-iam-user-login-profile.d.ts.map +1 -0
  515. package/dist/service/iam/user/sim-iam-user-login-profile.js +2 -0
  516. package/dist/service/iam/user/sim-iam-user-login-profile.js.map +1 -0
  517. package/dist/service/iam/user/sim-iam-user.d.ts +8 -0
  518. package/dist/service/iam/user/sim-iam-user.d.ts.map +1 -1
  519. package/dist/service/lambda/function/code/sim-lambda-executable-code.d.ts +6 -5
  520. package/dist/service/lambda/function/code/sim-lambda-executable-code.d.ts.map +1 -1
  521. package/dist/service/lambda/function/code/sim-lambda-executable-code.js +7 -6
  522. package/dist/service/lambda/function/code/sim-lambda-executable-code.js.map +1 -1
  523. package/dist/service/lambda/function/invoke/sim-lambda-host-scope.d.ts +11 -3
  524. package/dist/service/lambda/function/invoke/sim-lambda-host-scope.d.ts.map +1 -1
  525. package/dist/service/lambda/function/invoke/sim-lambda-host-scope.js +13 -7
  526. package/dist/service/lambda/function/invoke/sim-lambda-host-scope.js.map +1 -1
  527. package/dist/service/lambda/function/invoke/sim-lambda-process-output.d.ts +104 -0
  528. package/dist/service/lambda/function/invoke/sim-lambda-process-output.d.ts.map +1 -0
  529. package/dist/service/lambda/function/invoke/sim-lambda-process-output.js +133 -0
  530. package/dist/service/lambda/function/invoke/sim-lambda-process-output.js.map +1 -0
  531. package/dist/service/lambda/function/logging/sim-lambda-function-logging.d.ts +10 -0
  532. package/dist/service/lambda/function/logging/sim-lambda-function-logging.d.ts.map +1 -1
  533. package/dist/service/lambda/function/logging/sim-lambda-function-logging.js +11 -0
  534. package/dist/service/lambda/function/logging/sim-lambda-function-logging.js.map +1 -1
  535. package/dist/service/lambda/function/sim-lambda-function.d.ts +2 -1
  536. package/dist/service/lambda/function/sim-lambda-function.d.ts.map +1 -1
  537. package/dist/service/lambda/function/sim-lambda-function.js +5 -2
  538. package/dist/service/lambda/function/sim-lambda-function.js.map +1 -1
  539. package/dist/service/lambda/serve/api/sim-lambda-api-event-source-routes.d.ts +9 -0
  540. package/dist/service/lambda/serve/api/sim-lambda-api-event-source-routes.d.ts.map +1 -0
  541. package/dist/service/lambda/serve/api/sim-lambda-api-event-source-routes.js +59 -0
  542. package/dist/service/lambda/serve/api/sim-lambda-api-event-source-routes.js.map +1 -0
  543. package/dist/service/lambda/serve/api/sim-lambda-api-function-routes.d.ts +6 -0
  544. package/dist/service/lambda/serve/api/sim-lambda-api-function-routes.d.ts.map +1 -0
  545. package/dist/service/lambda/serve/api/sim-lambda-api-function-routes.js +91 -0
  546. package/dist/service/lambda/serve/api/sim-lambda-api-function-routes.js.map +1 -0
  547. package/dist/service/lambda/serve/api/sim-lambda-api-invoke-output.d.ts +12 -0
  548. package/dist/service/lambda/serve/api/sim-lambda-api-invoke-output.d.ts.map +1 -0
  549. package/dist/service/lambda/serve/api/sim-lambda-api-invoke-output.js +28 -0
  550. package/dist/service/lambda/serve/api/sim-lambda-api-invoke-output.js.map +1 -0
  551. package/dist/service/lambda/serve/api/sim-lambda-api-permission-routes.d.ts +10 -0
  552. package/dist/service/lambda/serve/api/sim-lambda-api-permission-routes.d.ts.map +1 -0
  553. package/dist/service/lambda/serve/api/sim-lambda-api-permission-routes.js +36 -0
  554. package/dist/service/lambda/serve/api/sim-lambda-api-permission-routes.js.map +1 -0
  555. package/dist/service/lambda/serve/api/sim-lambda-api-routes.d.ts +11 -0
  556. package/dist/service/lambda/serve/api/sim-lambda-api-routes.d.ts.map +1 -0
  557. package/dist/service/lambda/serve/api/sim-lambda-api-routes.js +19 -0
  558. package/dist/service/lambda/serve/api/sim-lambda-api-routes.js.map +1 -0
  559. package/dist/service/lambda/serve/api/sim-lambda-api-url-routes.d.ts +11 -0
  560. package/dist/service/lambda/serve/api/sim-lambda-api-url-routes.d.ts.map +1 -0
  561. package/dist/service/lambda/serve/api/sim-lambda-api-url-routes.js +50 -0
  562. package/dist/service/lambda/serve/api/sim-lambda-api-url-routes.js.map +1 -0
  563. package/dist/service/lambda/serve/api/sim-lambda-api.d.ts +16 -0
  564. package/dist/service/lambda/serve/api/sim-lambda-api.d.ts.map +1 -0
  565. package/dist/service/lambda/serve/api/sim-lambda-api.js +22 -0
  566. package/dist/service/lambda/serve/api/sim-lambda-api.js.map +1 -0
  567. package/dist/service/s3/bucket/notification/sim-s3-notification-event.d.ts +1 -1
  568. package/dist/service/s3/bucket/notification/sim-s3-notification-event.d.ts.map +1 -1
  569. package/dist/service/s3/bucket/notification/sim-s3-notification-event.js +9 -1
  570. package/dist/service/s3/bucket/notification/sim-s3-notification-event.js.map +1 -1
  571. package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-events.d.ts.map +1 -1
  572. package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-events.js +0 -1
  573. package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-events.js.map +1 -1
  574. package/dist/service/s3/bucket/sim-s3-bucket.d.ts +10 -0
  575. package/dist/service/s3/bucket/sim-s3-bucket.d.ts.map +1 -1
  576. package/dist/service/s3/bucket/sim-s3-bucket.js +12 -0
  577. package/dist/service/s3/bucket/sim-s3-bucket.js.map +1 -1
  578. package/dist/service/s3/command/abort-multipart-upload/abort-multipart-upload.command.d.ts +23 -0
  579. package/dist/service/s3/command/abort-multipart-upload/abort-multipart-upload.command.d.ts.map +1 -0
  580. package/dist/service/s3/command/abort-multipart-upload/abort-multipart-upload.command.js +2 -0
  581. package/dist/service/s3/command/abort-multipart-upload/abort-multipart-upload.command.js.map +1 -0
  582. package/dist/service/s3/command/abort-multipart-upload/abort-multipart-upload.handler.d.ts +23 -0
  583. package/dist/service/s3/command/abort-multipart-upload/abort-multipart-upload.handler.d.ts.map +1 -0
  584. package/dist/service/s3/command/abort-multipart-upload/abort-multipart-upload.handler.js +32 -0
  585. package/dist/service/s3/command/abort-multipart-upload/abort-multipart-upload.handler.js.map +1 -0
  586. package/dist/service/s3/command/complete-multipart-upload/complete-multipart-upload.command.d.ts +42 -0
  587. package/dist/service/s3/command/complete-multipart-upload/complete-multipart-upload.command.d.ts.map +1 -0
  588. package/dist/service/s3/command/complete-multipart-upload/complete-multipart-upload.command.js +2 -0
  589. package/dist/service/s3/command/complete-multipart-upload/complete-multipart-upload.command.js.map +1 -0
  590. package/dist/service/s3/command/complete-multipart-upload/complete-multipart-upload.handler.d.ts +28 -0
  591. package/dist/service/s3/command/complete-multipart-upload/complete-multipart-upload.handler.d.ts.map +1 -0
  592. package/dist/service/s3/command/complete-multipart-upload/complete-multipart-upload.handler.js +73 -0
  593. package/dist/service/s3/command/complete-multipart-upload/complete-multipart-upload.handler.js.map +1 -0
  594. package/dist/service/s3/command/create-multipart-upload/create-multipart-upload.command.d.ts +30 -0
  595. package/dist/service/s3/command/create-multipart-upload/create-multipart-upload.command.d.ts.map +1 -0
  596. package/dist/service/s3/command/create-multipart-upload/create-multipart-upload.command.js +2 -0
  597. package/dist/service/s3/command/create-multipart-upload/create-multipart-upload.command.js.map +1 -0
  598. package/dist/service/s3/command/create-multipart-upload/create-multipart-upload.handler.d.ts +21 -0
  599. package/dist/service/s3/command/create-multipart-upload/create-multipart-upload.handler.d.ts.map +1 -0
  600. package/dist/service/s3/command/create-multipart-upload/create-multipart-upload.handler.js +38 -0
  601. package/dist/service/s3/command/create-multipart-upload/create-multipart-upload.handler.js.map +1 -0
  602. package/dist/service/s3/command/get-object/get-object-loader.d.ts +5 -3
  603. package/dist/service/s3/command/get-object/get-object-loader.d.ts.map +1 -1
  604. package/dist/service/s3/command/get-object/get-object-loader.js +19 -4
  605. package/dist/service/s3/command/get-object/get-object-loader.js.map +1 -1
  606. package/dist/service/s3/command/get-object/get-object.command.d.ts +13 -0
  607. package/dist/service/s3/command/get-object/get-object.command.d.ts.map +1 -1
  608. package/dist/service/s3/command/get-object/get-object.handler.d.ts +3 -0
  609. package/dist/service/s3/command/get-object/get-object.handler.d.ts.map +1 -1
  610. package/dist/service/s3/command/get-object/get-object.handler.js +4 -1
  611. package/dist/service/s3/command/get-object/get-object.handler.js.map +1 -1
  612. package/dist/service/s3/command/list-multipart-uploads/list-multipart-uploads.command.d.ts +34 -0
  613. package/dist/service/s3/command/list-multipart-uploads/list-multipart-uploads.command.d.ts.map +1 -0
  614. package/dist/service/s3/command/list-multipart-uploads/list-multipart-uploads.command.js +2 -0
  615. package/dist/service/s3/command/list-multipart-uploads/list-multipart-uploads.command.js.map +1 -0
  616. package/dist/service/s3/command/list-multipart-uploads/list-multipart-uploads.handler.d.ts +23 -0
  617. package/dist/service/s3/command/list-multipart-uploads/list-multipart-uploads.handler.d.ts.map +1 -0
  618. package/dist/service/s3/command/list-multipart-uploads/list-multipart-uploads.handler.js +43 -0
  619. package/dist/service/s3/command/list-multipart-uploads/list-multipart-uploads.handler.js.map +1 -0
  620. package/dist/service/s3/command/list-parts/list-parts.command.d.ts +37 -0
  621. package/dist/service/s3/command/list-parts/list-parts.command.d.ts.map +1 -0
  622. package/dist/service/s3/command/list-parts/list-parts.command.js +2 -0
  623. package/dist/service/s3/command/list-parts/list-parts.command.js.map +1 -0
  624. package/dist/service/s3/command/list-parts/list-parts.handler.d.ts +22 -0
  625. package/dist/service/s3/command/list-parts/list-parts.handler.d.ts.map +1 -0
  626. package/dist/service/s3/command/list-parts/list-parts.handler.js +47 -0
  627. package/dist/service/s3/command/list-parts/list-parts.handler.js.map +1 -0
  628. package/dist/service/s3/command/multipart/sim-s3-multipart-access.d.ts +54 -0
  629. package/dist/service/s3/command/multipart/sim-s3-multipart-access.d.ts.map +1 -0
  630. package/dist/service/s3/command/multipart/sim-s3-multipart-access.js +60 -0
  631. package/dist/service/s3/command/multipart/sim-s3-multipart-access.js.map +1 -0
  632. package/dist/service/s3/command/multipart/sim-s3-multipart-authorizer.d.ts +36 -0
  633. package/dist/service/s3/command/multipart/sim-s3-multipart-authorizer.d.ts.map +1 -0
  634. package/dist/service/s3/command/multipart/sim-s3-multipart-authorizer.js +52 -0
  635. package/dist/service/s3/command/multipart/sim-s3-multipart-authorizer.js.map +1 -0
  636. package/dist/service/s3/command/multipart/sim-s3-multipart-commands.d.ts +35 -0
  637. package/dist/service/s3/command/multipart/sim-s3-multipart-commands.d.ts.map +1 -0
  638. package/dist/service/s3/command/multipart/sim-s3-multipart-commands.js +52 -0
  639. package/dist/service/s3/command/multipart/sim-s3-multipart-commands.js.map +1 -0
  640. package/dist/service/s3/command/put-object/put-object-builder.d.ts +0 -32
  641. package/dist/service/s3/command/put-object/put-object-builder.d.ts.map +1 -1
  642. package/dist/service/s3/command/put-object/put-object-builder.js +5 -61
  643. package/dist/service/s3/command/put-object/put-object-builder.js.map +1 -1
  644. package/dist/service/s3/command/put-object/put-object.command.d.ts +7 -17
  645. package/dist/service/s3/command/put-object/put-object.command.d.ts.map +1 -1
  646. package/dist/service/s3/command/put-object/put-object.handler.d.ts.map +1 -1
  647. package/dist/service/s3/command/put-object/put-object.handler.js +6 -1
  648. package/dist/service/s3/command/put-object/put-object.handler.js.map +1 -1
  649. package/dist/service/s3/command/sim-s3-command.types.d.ts +6 -0
  650. package/dist/service/s3/command/sim-s3-command.types.d.ts.map +1 -1
  651. package/dist/service/s3/command/upload-part/upload-part.command.d.ts +32 -0
  652. package/dist/service/s3/command/upload-part/upload-part.command.d.ts.map +1 -0
  653. package/dist/service/s3/command/upload-part/upload-part.command.js +2 -0
  654. package/dist/service/s3/command/upload-part/upload-part.command.js.map +1 -0
  655. package/dist/service/s3/command/upload-part/upload-part.handler.d.ts +22 -0
  656. package/dist/service/s3/command/upload-part/upload-part.handler.d.ts.map +1 -0
  657. package/dist/service/s3/command/upload-part/upload-part.handler.js +34 -0
  658. package/dist/service/s3/command/upload-part/upload-part.handler.js.map +1 -0
  659. package/dist/service/s3/error/sim-s3.error.d.ts +47 -0
  660. package/dist/service/s3/error/sim-s3.error.d.ts.map +1 -1
  661. package/dist/service/s3/error/sim-s3.error.js +55 -0
  662. package/dist/service/s3/error/sim-s3.error.js.map +1 -1
  663. package/dist/service/s3/notification/event/sim-s3-object-event-builder.d.ts +10 -0
  664. package/dist/service/s3/notification/event/sim-s3-object-event-builder.d.ts.map +1 -1
  665. package/dist/service/s3/notification/event/sim-s3-object-event-builder.js +1 -1
  666. package/dist/service/s3/notification/event/sim-s3-object-event-builder.js.map +1 -1
  667. package/dist/service/s3/notification/sim-s3-object-notifier.d.ts +1 -1
  668. package/dist/service/s3/notification/sim-s3-object-notifier.js +2 -2
  669. package/dist/service/s3/notification/sim-s3-object-notifier.js.map +1 -1
  670. package/dist/service/s3/object/s3-object-etag.d.ts +20 -4
  671. package/dist/service/s3/object/s3-object-etag.d.ts.map +1 -1
  672. package/dist/service/s3/object/s3-object-etag.js +25 -4
  673. package/dist/service/s3/object/s3-object-etag.js.map +1 -1
  674. package/dist/service/s3/object/s3-object-range.d.ts +26 -0
  675. package/dist/service/s3/object/s3-object-range.d.ts.map +1 -0
  676. package/dist/service/s3/object/s3-object-range.js +89 -0
  677. package/dist/service/s3/object/s3-object-range.js.map +1 -0
  678. package/dist/service/s3/object/s3-object-response-headers.d.ts +7 -1
  679. package/dist/service/s3/object/s3-object-response-headers.d.ts.map +1 -1
  680. package/dist/service/s3/object/s3-object-response-headers.js +5 -1
  681. package/dist/service/s3/object/s3-object-response-headers.js.map +1 -1
  682. package/dist/service/s3/object/s3-object-summary.d.ts +9 -0
  683. package/dist/service/s3/object/s3-object-summary.d.ts.map +1 -1
  684. package/dist/service/s3/object/s3-object-summary.js +2 -2
  685. package/dist/service/s3/object/s3-object-summary.js.map +1 -1
  686. package/dist/service/s3/object/s3-object.d.ts +10 -0
  687. package/dist/service/s3/object/s3-object.d.ts.map +1 -1
  688. package/dist/service/s3/object/s3-object.js +7 -1
  689. package/dist/service/s3/object/s3-object.js.map +1 -1
  690. package/dist/service/s3/object/s3-write-body.d.ts +23 -0
  691. package/dist/service/s3/object/s3-write-body.d.ts.map +1 -0
  692. package/dist/service/s3/object/s3-write-body.js +26 -0
  693. package/dist/service/s3/object/s3-write-body.js.map +1 -0
  694. package/dist/service/s3/object/s3-write-metadata.d.ts +33 -0
  695. package/dist/service/s3/object/s3-write-metadata.d.ts.map +1 -0
  696. package/dist/service/s3/object/s3-write-metadata.js +35 -0
  697. package/dist/service/s3/object/s3-write-metadata.js.map +1 -0
  698. package/dist/service/s3/sdk/sim-s3-sdk-command-router.d.ts.map +1 -1
  699. package/dist/service/s3/sdk/sim-s3-sdk-command-router.js +24 -0
  700. package/dist/service/s3/sdk/sim-s3-sdk-command-router.js.map +1 -1
  701. package/dist/service/s3/serve/api/sim-s3-api-bucket-routes.d.ts.map +1 -1
  702. package/dist/service/s3/serve/api/sim-s3-api-bucket-routes.js +8 -0
  703. package/dist/service/s3/serve/api/sim-s3-api-bucket-routes.js.map +1 -1
  704. package/dist/service/s3/serve/api/sim-s3-api-input.d.ts +0 -9
  705. package/dist/service/s3/serve/api/sim-s3-api-input.d.ts.map +1 -1
  706. package/dist/service/s3/serve/api/sim-s3-api-input.js +0 -23
  707. package/dist/service/s3/serve/api/sim-s3-api-input.js.map +1 -1
  708. package/dist/service/s3/serve/api/sim-s3-api-multipart-input.d.ts +25 -0
  709. package/dist/service/s3/serve/api/sim-s3-api-multipart-input.d.ts.map +1 -0
  710. package/dist/service/s3/serve/api/sim-s3-api-multipart-input.js +48 -0
  711. package/dist/service/s3/serve/api/sim-s3-api-multipart-input.js.map +1 -0
  712. package/dist/service/s3/serve/api/sim-s3-api-multipart-listing.d.ts +36 -0
  713. package/dist/service/s3/serve/api/sim-s3-api-multipart-listing.d.ts.map +1 -0
  714. package/dist/service/s3/serve/api/sim-s3-api-multipart-listing.js +34 -0
  715. package/dist/service/s3/serve/api/sim-s3-api-multipart-listing.js.map +1 -0
  716. package/dist/service/s3/serve/api/sim-s3-api-multipart-output.d.ts +10 -0
  717. package/dist/service/s3/serve/api/sim-s3-api-multipart-output.d.ts.map +1 -0
  718. package/dist/service/s3/serve/api/sim-s3-api-multipart-output.js +62 -0
  719. package/dist/service/s3/serve/api/sim-s3-api-multipart-output.js.map +1 -0
  720. package/dist/service/s3/serve/api/sim-s3-api-object-input.d.ts +27 -0
  721. package/dist/service/s3/serve/api/sim-s3-api-object-input.d.ts.map +1 -0
  722. package/dist/service/s3/serve/api/sim-s3-api-object-input.js +47 -0
  723. package/dist/service/s3/serve/api/sim-s3-api-object-input.js.map +1 -0
  724. package/dist/service/s3/serve/api/sim-s3-api-object-output.d.ts +10 -0
  725. package/dist/service/s3/serve/api/sim-s3-api-object-output.d.ts.map +1 -0
  726. package/dist/service/s3/serve/api/sim-s3-api-object-output.js +38 -0
  727. package/dist/service/s3/serve/api/sim-s3-api-object-output.js.map +1 -0
  728. package/dist/service/s3/serve/api/sim-s3-api-object-routes.d.ts.map +1 -1
  729. package/dist/service/s3/serve/api/sim-s3-api-object-routes.js +38 -2
  730. package/dist/service/s3/serve/api/sim-s3-api-object-routes.js.map +1 -1
  731. package/dist/service/s3/serve/api/sim-s3-api-output.d.ts.map +1 -1
  732. package/dist/service/s3/serve/api/sim-s3-api-output.js +15 -36
  733. package/dist/service/s3/serve/api/sim-s3-api-output.js.map +1 -1
  734. package/dist/service/s3/serve/api/sim-s3-api-routes.d.ts.map +1 -1
  735. package/dist/service/s3/serve/api/sim-s3-api-routes.js +2 -1
  736. package/dist/service/s3/serve/api/sim-s3-api-routes.js.map +1 -1
  737. package/dist/service/s3/serve/api/sim-s3-api-xml-read.d.ts +7 -0
  738. package/dist/service/s3/serve/api/sim-s3-api-xml-read.d.ts.map +1 -1
  739. package/dist/service/s3/serve/api/sim-s3-api-xml-read.js +16 -1
  740. package/dist/service/s3/serve/api/sim-s3-api-xml-read.js.map +1 -1
  741. package/dist/service/s3/serve/sim-s3-rest-object-reader.d.ts +5 -0
  742. package/dist/service/s3/serve/sim-s3-rest-object-reader.d.ts.map +1 -1
  743. package/dist/service/s3/serve/sim-s3-rest-object-reader.js +20 -3
  744. package/dist/service/s3/serve/sim-s3-rest-object-reader.js.map +1 -1
  745. package/dist/service/s3/sim-s3-commands.d.ts +2 -0
  746. package/dist/service/s3/sim-s3-commands.d.ts.map +1 -1
  747. package/dist/service/s3/sim-s3-commands.js +3 -0
  748. package/dist/service/s3/sim-s3-commands.js.map +1 -1
  749. package/dist/service/s3/sim-s3-operations.d.ts +12 -0
  750. package/dist/service/s3/sim-s3-operations.d.ts.map +1 -1
  751. package/dist/service/s3/sim-s3-operations.js +24 -0
  752. package/dist/service/s3/sim-s3-operations.js.map +1 -1
  753. package/dist/service/s3/upload/sim-s3-completed-upload.d.ts +30 -0
  754. package/dist/service/s3/upload/sim-s3-completed-upload.d.ts.map +1 -0
  755. package/dist/service/s3/upload/sim-s3-completed-upload.js +69 -0
  756. package/dist/service/s3/upload/sim-s3-completed-upload.js.map +1 -0
  757. package/dist/service/s3/upload/sim-s3-multipart-upload.d.ts +66 -0
  758. package/dist/service/s3/upload/sim-s3-multipart-upload.d.ts.map +1 -0
  759. package/dist/service/s3/upload/sim-s3-multipart-upload.js +78 -0
  760. package/dist/service/s3/upload/sim-s3-multipart-upload.js.map +1 -0
  761. package/dist/service/s3/upload/sim-s3-multipart-uploads.d.ts +48 -0
  762. package/dist/service/s3/upload/sim-s3-multipart-uploads.d.ts.map +1 -0
  763. package/dist/service/s3/upload/sim-s3-multipart-uploads.js +62 -0
  764. package/dist/service/s3/upload/sim-s3-multipart-uploads.js.map +1 -0
  765. package/dist/service/secretsmanager/cfn/dynamic/sim-cfn-secrets-manager-dynamic-reference-resolver.d.ts +51 -0
  766. package/dist/service/secretsmanager/cfn/dynamic/sim-cfn-secrets-manager-dynamic-reference-resolver.d.ts.map +1 -0
  767. package/dist/service/secretsmanager/cfn/dynamic/sim-cfn-secrets-manager-dynamic-reference-resolver.js +89 -0
  768. package/dist/service/secretsmanager/cfn/dynamic/sim-cfn-secrets-manager-dynamic-reference-resolver.js.map +1 -0
  769. package/dist/service/secretsmanager/cfn/dynamic/sim-cfn-secrets-manager-json-key.d.ts +9 -0
  770. package/dist/service/secretsmanager/cfn/dynamic/sim-cfn-secrets-manager-json-key.d.ts.map +1 -0
  771. package/dist/service/secretsmanager/cfn/dynamic/sim-cfn-secrets-manager-json-key.js +40 -0
  772. package/dist/service/secretsmanager/cfn/dynamic/sim-cfn-secrets-manager-json-key.js.map +1 -0
  773. package/dist/service/secretsmanager/cfn/dynamic/sim-cfn-secrets-manager-reference-body.d.ts +40 -0
  774. package/dist/service/secretsmanager/cfn/dynamic/sim-cfn-secrets-manager-reference-body.d.ts.map +1 -0
  775. package/dist/service/secretsmanager/cfn/dynamic/sim-cfn-secrets-manager-reference-body.js +90 -0
  776. package/dist/service/secretsmanager/cfn/dynamic/sim-cfn-secrets-manager-reference-body.js.map +1 -0
  777. package/dist/service/sns/serve/sim-sns-api.d.ts +15 -0
  778. package/dist/service/sns/serve/sim-sns-api.d.ts.map +1 -0
  779. package/dist/service/sns/serve/sim-sns-api.js +37 -0
  780. package/dist/service/sns/serve/sim-sns-api.js.map +1 -0
  781. package/dist/service/sns/serve/sim-sns-query-publish-operations.d.ts +6 -0
  782. package/dist/service/sns/serve/sim-sns-query-publish-operations.d.ts.map +1 -0
  783. package/dist/service/sns/serve/sim-sns-query-publish-operations.js +36 -0
  784. package/dist/service/sns/serve/sim-sns-query-publish-operations.js.map +1 -0
  785. package/dist/service/sns/serve/sim-sns-query-published-message.d.ts +10 -0
  786. package/dist/service/sns/serve/sim-sns-query-published-message.d.ts.map +1 -0
  787. package/dist/service/sns/serve/sim-sns-query-published-message.js +39 -0
  788. package/dist/service/sns/serve/sim-sns-query-published-message.js.map +1 -0
  789. package/dist/service/sns/serve/sim-sns-query-sms-operations.d.ts +9 -0
  790. package/dist/service/sns/serve/sim-sns-query-sms-operations.d.ts.map +1 -0
  791. package/dist/service/sns/serve/sim-sns-query-sms-operations.js +40 -0
  792. package/dist/service/sns/serve/sim-sns-query-sms-operations.js.map +1 -0
  793. package/dist/service/sns/serve/sim-sns-query-subscription-operations.d.ts +6 -0
  794. package/dist/service/sns/serve/sim-sns-query-subscription-operations.d.ts.map +1 -0
  795. package/dist/service/sns/serve/sim-sns-query-subscription-operations.js +83 -0
  796. package/dist/service/sns/serve/sim-sns-query-subscription-operations.js.map +1 -0
  797. package/dist/service/sns/serve/sim-sns-query-topic-operations.d.ts +6 -0
  798. package/dist/service/sns/serve/sim-sns-query-topic-operations.d.ts.map +1 -0
  799. package/dist/service/sns/serve/sim-sns-query-topic-operations.js +62 -0
  800. package/dist/service/sns/serve/sim-sns-query-topic-operations.js.map +1 -0
  801. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-dynamic-reference-resolver.d.ts +32 -0
  802. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-dynamic-reference-resolver.d.ts.map +1 -0
  803. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-dynamic-reference-resolver.js +61 -0
  804. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-dynamic-reference-resolver.js.map +1 -0
  805. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-reference-body.d.ts +14 -0
  806. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-reference-body.d.ts.map +1 -0
  807. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-reference-body.js +26 -0
  808. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-reference-body.js.map +1 -0
  809. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-reference-stand-in.d.ts +11 -0
  810. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-reference-stand-in.d.ts.map +1 -0
  811. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-reference-stand-in.js +16 -0
  812. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-reference-stand-in.js.map +1 -0
  813. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-dynamic-reference-resolver.d.ts +40 -0
  814. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-dynamic-reference-resolver.d.ts.map +1 -0
  815. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-dynamic-reference-resolver.js +67 -0
  816. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-dynamic-reference-resolver.js.map +1 -0
  817. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-reference-properties.d.ts +8 -0
  818. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-reference-properties.d.ts.map +1 -0
  819. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-reference-properties.js +61 -0
  820. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-reference-properties.js.map +1 -0
  821. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-refusals.d.ts +19 -0
  822. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-refusals.d.ts.map +1 -0
  823. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-refusals.js +37 -0
  824. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-refusals.js.map +1 -0
  825. package/dist/service/ssm/cfn/parameter/sim-cfn-ssm-parameter-value-reader.d.ts +36 -0
  826. package/dist/service/ssm/cfn/parameter/sim-cfn-ssm-parameter-value-reader.d.ts.map +1 -0
  827. package/dist/service/ssm/cfn/parameter/sim-cfn-ssm-parameter-value-reader.js +48 -0
  828. package/dist/service/ssm/cfn/parameter/sim-cfn-ssm-parameter-value-reader.js.map +1 -0
  829. package/dist/service/ssm/sim-ssm.d.ts +15 -0
  830. package/dist/service/ssm/sim-ssm.d.ts.map +1 -1
  831. package/dist/service/ssm/sim-ssm.js +21 -0
  832. package/dist/service/ssm/sim-ssm.js.map +1 -1
  833. package/dist/service/sts/serve/sim-sts-api.d.ts +7 -19
  834. package/dist/service/sts/serve/sim-sts-api.d.ts.map +1 -1
  835. package/dist/service/sts/serve/sim-sts-api.js +44 -48
  836. package/dist/service/sts/serve/sim-sts-api.js.map +1 -1
  837. package/dist/util/xml/xml-document.d.ts +4 -0
  838. package/dist/util/xml/xml-document.d.ts.map +1 -1
  839. package/dist/util/xml/xml-document.js +11 -0
  840. package/dist/util/xml/xml-document.js.map +1 -1
  841. package/package.json +1 -1
  842. package/dist/service/iam/cfn/role/sim-cfn-iam-role-policies-parser.d.ts +0 -25
  843. package/dist/service/iam/cfn/role/sim-cfn-iam-role-policies-parser.d.ts.map +0 -1
  844. package/dist/service/iam/cfn/role/sim-cfn-iam-role-policies-parser.js.map +0 -1
  845. package/dist/service/sts/serve/sim-sts-query-request.d.ts +0 -19
  846. package/dist/service/sts/serve/sim-sts-query-request.d.ts.map +0 -1
  847. package/dist/service/sts/serve/sim-sts-query-request.js +0 -27
  848. package/dist/service/sts/serve/sim-sts-query-request.js.map +0 -1
  849. package/dist/service/sts/serve/sim-sts-query-response.d.ts +0 -15
  850. package/dist/service/sts/serve/sim-sts-query-response.d.ts.map +0 -1
  851. package/dist/service/sts/serve/sim-sts-query-response.js +0 -42
  852. package/dist/service/sts/serve/sim-sts-query-response.js.map +0 -1
@@ -0,0 +1,51 @@
1
+ import { simRestJsonPathSegments, } from "./sim-rest-json-request.js";
2
+ /**
3
+ * Find the operation a REST-JSON request names.
4
+ *
5
+ * A template matches a request only when it has the same number of segments
6
+ * and every literal segment is the segment the request sent. That is what
7
+ * keeps a path this endpoint has no operation for from being answered by one
8
+ * that happens to share its method: `GET /2015-03-31/functions/orders/aliases`
9
+ * has no route, and matches neither `GET /2015-03-31/functions/{FunctionName}`
10
+ * nor anything else, because a label stands for one segment rather than for
11
+ * the rest of the path.
12
+ *
13
+ * Returns undefined for a request matching no route, which is either an
14
+ * operation the simulated service has not implemented or one the real service
15
+ * does not have.
16
+ */
17
+ export function resolveSimRestJsonRoute(routes, request) {
18
+ for (const route of routes) {
19
+ if (route.method !== request.method) {
20
+ continue;
21
+ }
22
+ const labels = matchSimRestJsonPath(route.path, request.segments);
23
+ if (labels !== undefined) {
24
+ return { route, labels };
25
+ }
26
+ }
27
+ return undefined;
28
+ }
29
+ /**
30
+ * Match one path template against the segments a request sent, and read the
31
+ * labels out of it.
32
+ */
33
+ function matchSimRestJsonPath(template, segments) {
34
+ const expected = simRestJsonPathSegments(template);
35
+ if (expected.length !== segments.length) {
36
+ return undefined;
37
+ }
38
+ const labels = new Map();
39
+ for (const [index, part] of expected.entries()) {
40
+ const segment = segments.at(index) ?? "";
41
+ if (part.startsWith("{") && part.endsWith("}")) {
42
+ labels.set(part.slice(1, -1), segment);
43
+ continue;
44
+ }
45
+ if (part !== segment) {
46
+ return undefined;
47
+ }
48
+ }
49
+ return labels;
50
+ }
51
+ //# sourceMappingURL=sim-rest-json-routes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-rest-json-routes.js","sourceRoot":"","sources":["../../../../../src/serve/http/api/rest-json/sim-rest-json-routes.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,GAExB,MAAM,4BAA4B,CAAC;AAYpC;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,uBAAuB,CACrC,MAAmC,EACnC,OAA2B;IAE3B,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,IAAI,KAAK,CAAC,MAAM,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC;YACpC,SAAS;QACX,CAAC;QAED,MAAM,MAAM,GAAG,oBAAoB,CAAC,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;QAClE,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;YACzB,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;QAC3B,CAAC;IACH,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC;AAED;;;GAGG;AACH,SAAS,oBAAoB,CAC3B,QAAgB,EAChB,QAA2B;IAE3B,MAAM,QAAQ,GAAG,uBAAuB,CAAC,QAAQ,CAAC,CAAC;IACnD,IAAI,QAAQ,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM,EAAE,CAAC;QACxC,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,MAAM,GAAG,IAAI,GAAG,EAAkB,CAAC;IACzC,KAAK,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,QAAQ,CAAC,OAAO,EAAE,EAAE,CAAC;QAC/C,MAAM,OAAO,GAAG,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;QAEzC,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YAC/C,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;YACvC,SAAS;QACX,CAAC;QAED,IAAI,IAAI,KAAK,OAAO,EAAE,CAAC;YACrB,OAAO,SAAS,CAAC;QACnB,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -18,14 +18,13 @@ interface SimAwsApiEndpointProperties {
18
18
  *
19
19
  * The scope also says which protocol to read the request with. Most simulated
20
20
  * services speak the AWS JSON protocol and name their operation in a header.
21
- * S3 speaks REST-XML and STS speaks Query, and each names its operation
22
- * somewhere else, so each is read by an endpoint of its own.
21
+ * The rest name it somewhere else, and each is read by an endpoint of its own,
22
+ * registered under its signing name.
23
23
  */
24
24
  export declare class SimAwsApiEndpoint {
25
25
  private readonly simAws;
26
26
  private readonly dispatcher;
27
- private readonly s3;
28
- private readonly sts;
27
+ private readonly protocols;
29
28
  constructor(properties: SimAwsApiEndpointProperties);
30
29
  /**
31
30
  * Answer an AWS service API request, or decline one that is not signed.
@@ -1 +1 @@
1
- {"version":3,"file":"sim-aws-api-endpoint.d.ts","sourceRoot":"","sources":["../../../../src/serve/http/api/sim-aws-api-endpoint.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAK9D,UAAU,2BAA2B;IACnC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AASD;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAuB;IAClD,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAmB;IACtC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAoB;IAExC,YAAY,UAAU,EAAE,2BAA2B,EAKlD;IAED;;;;;;OAMG;IACG,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC,CAuD5D;CACF"}
1
+ {"version":3,"file":"sim-aws-api-endpoint.d.ts","sourceRoot":"","sources":["../../../../src/serve/http/api/sim-aws-api-endpoint.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAO9D,UAAU,2BAA2B;IACnC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAuB;IAClD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA8C;IAExE,YAAY,UAAU,EAAE,2BAA2B,EAIlD;IAED;;;;;;OAMG;IACG,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC,CA0C5D;CACF"}
@@ -1,15 +1,8 @@
1
1
  import { SimSdkUnbridgedWireRequestError } from "../../../sdk/error/sim-sdk.error.js";
2
2
  import { SimSdkWireDispatcher } from "../../../sdk/wire/sim-sdk-wire-dispatcher.js";
3
3
  import { readSimSdkWireCredentialScope } from "../../../sdk/wire/sim-sdk-wire-operation.js";
4
- import { SimS3ApiEndpoint } from "../../../service/s3/serve/api/sim-s3-api.js";
5
- import { SimStsApiEndpoint } from "../../../service/sts/serve/sim-sts-api.js";
6
4
  import { SimAwsReceivedRequest } from "../request/sim-aws-received-request.js";
7
- /**
8
- * The SigV4 signing names of the services whose protocol is read by an
9
- * endpoint of its own rather than by the AWS JSON protocol dispatcher.
10
- */
11
- const s3SigningName = "s3";
12
- const stsSigningName = "sts";
5
+ import { simAwsProtocolEndpoints, } from "./sim-aws-api-protocols.js";
13
6
  /**
14
7
  * The general AWS service API, served on one endpoint.
15
8
  *
@@ -26,19 +19,17 @@ const stsSigningName = "sts";
26
19
  *
27
20
  * The scope also says which protocol to read the request with. Most simulated
28
21
  * services speak the AWS JSON protocol and name their operation in a header.
29
- * S3 speaks REST-XML and STS speaks Query, and each names its operation
30
- * somewhere else, so each is read by an endpoint of its own.
22
+ * The rest name it somewhere else, and each is read by an endpoint of its own,
23
+ * registered under its signing name.
31
24
  */
32
25
  export class SimAwsApiEndpoint {
33
26
  simAws;
34
27
  dispatcher;
35
- s3;
36
- sts;
28
+ protocols;
37
29
  constructor(properties) {
38
30
  this.simAws = properties.simAws;
39
31
  this.dispatcher = new SimSdkWireDispatcher(properties.simAws);
40
- this.s3 = new SimS3ApiEndpoint({ simAws: properties.simAws });
41
- this.sts = new SimStsApiEndpoint({ simAws: properties.simAws });
32
+ this.protocols = simAwsProtocolEndpoints(properties.simAws);
42
33
  }
43
34
  /**
44
35
  * Answer an AWS service API request, or decline one that is not signed.
@@ -61,15 +52,9 @@ export class SimAwsApiEndpoint {
61
52
  regionName: scope.regionName,
62
53
  },
63
54
  });
64
- // S3 states its operation in the method and path, and STS in a
65
- // form-encoded field, so neither can be read by the header the AWS JSON
66
- // protocol names its operation in.
67
- const body = received.body ?? new Uint8Array();
68
- if (scope.signingName === s3SigningName) {
69
- return await this.s3.handle(request, body, caller.toCaller(), scope.regionName);
70
- }
71
- if (scope.signingName === stsSigningName) {
72
- return await this.sts.handle(request, body, caller.toCaller(), scope.regionName);
55
+ const protocol = this.protocols.get(scope.signingName);
56
+ if (protocol !== undefined) {
57
+ return await protocol.handle(request, received.body ?? new Uint8Array(), caller.toCaller(), scope.regionName);
73
58
  }
74
59
  let response;
75
60
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"sim-aws-api-endpoint.js","sourceRoot":"","sources":["../../../../src/serve/http/api/sim-aws-api-endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,qCAAqC,CAAC;AACtF,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAG5F,OAAO,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAM/E;;;GAGG;AACH,MAAM,aAAa,GAAG,IAAI,CAAC;AAC3B,MAAM,cAAc,GAAG,KAAK,CAAC;AAE7B;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,OAAO,iBAAiB;IACX,MAAM,CAAS;IACf,UAAU,CAAuB;IACjC,EAAE,CAAmB;IACrB,GAAG,CAAoB;IAExC,YAAY,UAAuC;QACjD,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;QAChC,IAAI,CAAC,UAAU,GAAG,IAAI,oBAAoB,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QAC9D,IAAI,CAAC,EAAE,GAAG,IAAI,gBAAgB,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,MAAM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C;AAED;;;;;GAKG;AACH,SAAS,oBAAoB,CAC3B,OAAgB,EAChB,IAA4B;IAE5B,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAEjC,OAAO;QACL,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,QAAQ,EAAE,GAAG,CAAC,QAAQ;QACtB,IAAI,EAAE,GAAG,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,MAAM,EAAE;QACpC,OAAO,EAAE,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC;QAC5C,IAAI,EAAE,IAAI,IAAI,IAAI,UAAU,EAAE;KAC/B,CAAC;AACJ,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { SimAwsCaller } from "../../../service/aws/caller/sim-aws-caller.js";
2
+ import type { SimAws } from "../../../service/aws/sim-aws.js";
3
+ /**
4
+ * A served endpoint that reads one AWS protocol other than AWS JSON.
5
+ */
6
+ export interface SimAwsProtocolEndpoint {
7
+ handle(request: Request, body: Uint8Array, caller: SimAwsCaller, regionName: string): Promise<Response>;
8
+ }
9
+ /**
10
+ * Build the endpoint for each service that reads its own protocol.
11
+ */
12
+ export declare function simAwsProtocolEndpoints(simAws: SimAws): ReadonlyMap<string, SimAwsProtocolEndpoint>;
13
+ //# sourceMappingURL=sim-aws-api-protocols.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-aws-api-protocols.d.ts","sourceRoot":"","sources":["../../../../src/serve/http/api/sim-aws-api-protocols.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAClF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAS9D;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,MAAM,CACJ,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,UAAU,EAChB,MAAM,EAAE,YAAY,EACpB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,QAAQ,CAAC,CAAC;CACtB;AA+BD;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,MAAM,GACb,WAAW,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAM7C"}
@@ -0,0 +1,41 @@
1
+ import { simCloudFormationApiEndpoint } from "../../../service/cloudformation/serve/sim-cloudformation-api.js";
2
+ import { simElbV2ApiEndpoint } from "../../../service/elbv2/serve/api/sim-elbv2-api.js";
3
+ import { simIamApiEndpoint } from "../../../service/iam/serve/sim-iam-api.js";
4
+ import { simLambdaApiEndpoint } from "../../../service/lambda/serve/api/sim-lambda-api.js";
5
+ import { SimS3ApiEndpoint } from "../../../service/s3/serve/api/sim-s3-api.js";
6
+ import { simSnsApiEndpoint } from "../../../service/sns/serve/sim-sns-api.js";
7
+ import { simStsApiEndpoint } from "../../../service/sts/serve/sim-sts-api.js";
8
+ /**
9
+ * The services whose requests are read by an endpoint of their own, keyed by
10
+ * the SigV4 signing name that routes a request to one.
11
+ *
12
+ * Most simulated services speak the AWS JSON protocol and name their operation
13
+ * in a header, and those are dispatched from the header without any of this.
14
+ * The rest name their operation somewhere the header does not reach: S3 in the
15
+ * method and the path, and the Query services in a form-encoded field. Each of
16
+ * those needs a reader, and the signing name is the only thing in the request
17
+ * that says which one to use, since a client given `--endpoint-url` sends the
18
+ * same hostname whatever service it is addressing.
19
+ *
20
+ * A service joins this by adding an entry. The value builds the endpoint from
21
+ * the environment it serves, so nothing is built until an endpoint exists to
22
+ * serve.
23
+ */
24
+ const simAwsProtocolEndpointFactories = new Map([
25
+ ["s3", (simAws) => new SimS3ApiEndpoint({ simAws })],
26
+ ["sts", simStsApiEndpoint],
27
+ ["sns", simSnsApiEndpoint],
28
+ ["cloudformation", simCloudFormationApiEndpoint],
29
+ ["lambda", simLambdaApiEndpoint],
30
+ ["iam", simIamApiEndpoint],
31
+ ["elasticloadbalancing", simElbV2ApiEndpoint],
32
+ ]);
33
+ /**
34
+ * Build the endpoint for each service that reads its own protocol.
35
+ */
36
+ export function simAwsProtocolEndpoints(simAws) {
37
+ return new Map(simAwsProtocolEndpointFactories
38
+ .entries()
39
+ .map(([signingName, build]) => [signingName, build(simAws)]));
40
+ }
41
+ //# sourceMappingURL=sim-aws-api-protocols.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-aws-api-protocols.js","sourceRoot":"","sources":["../../../../src/serve/http/api/sim-aws-api-protocols.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,4BAA4B,EAAE,MAAM,iEAAiE,CAAC;AAC/G,OAAO,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAC;AACxF,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,qDAAqD,CAAC;AAC3F,OAAO,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAc9E;;;;;;;;;;;;;;;GAeG;AACH,MAAM,+BAA+B,GAAG,IAAI,GAAG,CAG7C;IACA,CAAC,IAAI,EAAE,CAAC,MAAM,EAA0B,EAAE,CAAC,IAAI,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;IAC5E,CAAC,KAAK,EAAE,iBAAiB,CAAC;IAC1B,CAAC,KAAK,EAAE,iBAAiB,CAAC;IAC1B,CAAC,gBAAgB,EAAE,4BAA4B,CAAC;IAChD,CAAC,QAAQ,EAAE,oBAAoB,CAAC;IAChC,CAAC,KAAK,EAAE,iBAAiB,CAAC;IAC1B,CAAC,sBAAsB,EAAE,mBAAmB,CAAC;CAC9C,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,UAAU,uBAAuB,CACrC,MAAc;IAEd,OAAO,IAAI,GAAG,CACZ,+BAA+B;SAC5B,OAAO,EAAE;SACT,GAAG,CAAC,CAAC,CAAC,WAAW,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAC/D,CAAC;AACJ,CAAC"}
@@ -0,0 +1,41 @@
1
+ import { type SimArn } from "../../aws/arn.js";
2
+ import type { SimAwsAccountRegionScope } from "../../aws/sim-aws-account-region-scope.js";
3
+ import { SimAcmCertificate, type SimAcmCertificateStatus } from "./sim-acm-certificate.js";
4
+ import { type SimClock } from "../../../util/clock/sim-clock.js";
5
+ /**
6
+ * What a simulation says about a Certificate it registers as already existing.
7
+ */
8
+ export interface SimAcmCertificateRegistration {
9
+ /**
10
+ * The Certificate ARN the simulated Certificate takes. It has to be in this
11
+ * ACM's own Account and Region, since that is how other services find it.
12
+ */
13
+ readonly arn: string;
14
+ readonly domainName: string;
15
+ readonly subjectAlternativeNames?: readonly string[] | undefined;
16
+ /**
17
+ * The status the Certificate holds. `ISSUED` by default, a registered
18
+ * Certificate having been described as already existing.
19
+ */
20
+ readonly status?: SimAcmCertificateStatus | undefined;
21
+ }
22
+ interface RegisterSimAcmCertificateProperties {
23
+ readonly certificates: Map<SimArn, SimAcmCertificate>;
24
+ readonly accountRegionScope: SimAwsAccountRegionScope;
25
+ readonly clock?: SimClock | undefined;
26
+ }
27
+ /**
28
+ * Register a Certificate the simulation is told already exists.
29
+ *
30
+ * Real ACM allocates a Certificate ARN, so nothing on the command surface
31
+ * takes one. A CDK app that passes a certificate ARN between stacks bakes that
32
+ * ARN into the template of the stack using it, and this is how a simulation
33
+ * comes to own that ARN before the template deploys.
34
+ *
35
+ * The Certificate is ISSUED from the start. There is nothing to validate: it
36
+ * is described as already existing rather than requested here, so it carries
37
+ * no domain validation options.
38
+ */
39
+ export declare function registerSimAcmCertificate(registration: SimAcmCertificateRegistration, properties: RegisterSimAcmCertificateProperties): SimAcmCertificate;
40
+ export {};
41
+ //# sourceMappingURL=register-sim-acm-certificate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register-sim-acm-certificate.d.ts","sourceRoot":"","sources":["../../../../src/service/acm/certificate/register-sim-acm-certificate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAE1F,OAAO,EACL,iBAAiB,EACjB,KAAK,uBAAuB,EAC7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,KAAK,QAAQ,EAAgB,MAAM,kCAAkC,CAAC;AAE/E;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;;OAGG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,uBAAuB,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;IACjE;;;OAGG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,uBAAuB,GAAG,SAAS,CAAC;CACvD;AAED,UAAU,mCAAmC;IAC3C,QAAQ,CAAC,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;IACtD,QAAQ,CAAC,kBAAkB,EAAE,wBAAwB,CAAC;IACtD,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CACvC;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,yBAAyB,CACvC,YAAY,EAAE,6BAA6B,EAC3C,UAAU,EAAE,mCAAmC,GAC9C,iBAAiB,CA8BnB"}
@@ -0,0 +1,60 @@
1
+ import { parseSimArn } from "../../aws/arn.js";
2
+ import { SimAcmInvalidArgumentsException } from "../error/sim-acm.error.js";
3
+ import { SimAcmCertificate, } from "./sim-acm-certificate.js";
4
+ import { SimRealClock } from "../../../util/clock/sim-clock.js";
5
+ /**
6
+ * Register a Certificate the simulation is told already exists.
7
+ *
8
+ * Real ACM allocates a Certificate ARN, so nothing on the command surface
9
+ * takes one. A CDK app that passes a certificate ARN between stacks bakes that
10
+ * ARN into the template of the stack using it, and this is how a simulation
11
+ * comes to own that ARN before the template deploys.
12
+ *
13
+ * The Certificate is ISSUED from the start. There is nothing to validate: it
14
+ * is described as already existing rather than requested here, so it carries
15
+ * no domain validation options.
16
+ */
17
+ export function registerSimAcmCertificate(registration, properties) {
18
+ const { certificates, accountRegionScope } = properties;
19
+ const certificateArn = scopedCertificateArn(registration.arn, accountRegionScope);
20
+ if (certificates.has(certificateArn)) {
21
+ throw new SimAcmInvalidArgumentsException(`A sim ACM Certificate with ARN ${certificateArn} already exists`);
22
+ }
23
+ const clock = properties.clock ?? new SimRealClock();
24
+ const registeredAt = clock.now();
25
+ const status = registration.status ?? "ISSUED";
26
+ const certificate = new SimAcmCertificate({
27
+ certificateArn,
28
+ domainName: registration.domainName,
29
+ subjectAlternativeNames: registration.subjectAlternativeNames ?? [],
30
+ status,
31
+ clock,
32
+ createdAt: registeredAt,
33
+ issuedAt: status === "ISSUED" ? registeredAt : undefined,
34
+ });
35
+ certificates.set(certificateArn, certificate);
36
+ return certificate;
37
+ }
38
+ /**
39
+ * Read a Certificate ARN this ACM can be found by.
40
+ *
41
+ * Other services reach a Certificate through the Account and Region in its
42
+ * ARN, so an ARN naming another scope would answer ACM commands here and be
43
+ * missed by every service that looks it up. Refusing it keeps the two views of
44
+ * the Certificate together.
45
+ */
46
+ function scopedCertificateArn(value, accountRegionScope) {
47
+ const arn = parseSimArn(value);
48
+ if (arn?.service !== "acm" ||
49
+ arn.resourceType !== "certificate" ||
50
+ arn.resourceId === "") {
51
+ throw new SimAcmInvalidArgumentsException(`${value} is not a sim ACM Certificate ARN`);
52
+ }
53
+ const { accountId, regionName } = accountRegionScope;
54
+ if (arn.accountId !== accountId || arn.region !== regionName) {
55
+ throw new SimAcmInvalidArgumentsException(`Sim ACM Certificate ARN ${value} names Account ${arn.accountId} in ${arn.region}, ` +
56
+ `but this sim ACM is Account ${accountId} in ${regionName}`);
57
+ }
58
+ return value;
59
+ }
60
+ //# sourceMappingURL=register-sim-acm-certificate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register-sim-acm-certificate.js","sourceRoot":"","sources":["../../../../src/service/acm/certificate/register-sim-acm-certificate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAe,MAAM,kBAAkB,CAAC;AAE5D,OAAO,EAAE,+BAA+B,EAAE,MAAM,2BAA2B,CAAC;AAC5E,OAAO,EACL,iBAAiB,GAElB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAiB,YAAY,EAAE,MAAM,kCAAkC,CAAC;AA0B/E;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,yBAAyB,CACvC,YAA2C,EAC3C,UAA+C;IAE/C,MAAM,EAAE,YAAY,EAAE,kBAAkB,EAAE,GAAG,UAAU,CAAC;IACxD,MAAM,cAAc,GAAG,oBAAoB,CACzC,YAAY,CAAC,GAAG,EAChB,kBAAkB,CACnB,CAAC;IAEF,IAAI,YAAY,CAAC,GAAG,CAAC,cAAc,CAAC,EAAE,CAAC;QACrC,MAAM,IAAI,+BAA+B,CACvC,kCAAkC,cAAc,iBAAiB,CAClE,CAAC;IACJ,CAAC;IAED,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,IAAI,IAAI,YAAY,EAAE,CAAC;IACrD,MAAM,YAAY,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC;IACjC,MAAM,MAAM,GAAG,YAAY,CAAC,MAAM,IAAI,QAAQ,CAAC;IAE/C,MAAM,WAAW,GAAG,IAAI,iBAAiB,CAAC;QACxC,cAAc;QACd,UAAU,EAAE,YAAY,CAAC,UAAU;QACnC,uBAAuB,EAAE,YAAY,CAAC,uBAAuB,IAAI,EAAE;QACnE,MAAM;QACN,KAAK;QACL,SAAS,EAAE,YAAY;QACvB,QAAQ,EAAE,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS;KACzD,CAAC,CAAC;IAEH,YAAY,CAAC,GAAG,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;IAE9C,OAAO,WAAW,CAAC;AACrB,CAAC;AAED;;;;;;;GAOG;AACH,SAAS,oBAAoB,CAC3B,KAAa,EACb,kBAA4C;IAE5C,MAAM,GAAG,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;IAE/B,IACE,GAAG,EAAE,OAAO,KAAK,KAAK;QACtB,GAAG,CAAC,YAAY,KAAK,aAAa;QAClC,GAAG,CAAC,UAAU,KAAK,EAAE,EACrB,CAAC;QACD,MAAM,IAAI,+BAA+B,CACvC,GAAG,KAAK,mCAAmC,CAC5C,CAAC;IACJ,CAAC;IAED,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,kBAAkB,CAAC;IAErD,IAAI,GAAG,CAAC,SAAS,KAAK,SAAS,IAAI,GAAG,CAAC,MAAM,KAAK,UAAU,EAAE,CAAC;QAC7D,MAAM,IAAI,+BAA+B,CACvC,2BAA2B,KAAK,kBAAkB,GAAG,CAAC,SAAS,OAAO,GAAG,CAAC,MAAM,IAAI;YAClF,+BAA+B,SAAS,OAAO,UAAU,EAAE,CAC9D,CAAC;IACJ,CAAC;IAED,OAAO,KAAe,CAAC;AACzB,CAAC"}
@@ -39,6 +39,15 @@ export declare class RequestCertificateCommandHandler implements CommandHandler<
39
39
  * scheduling a certificate issuance task.
40
40
  */
41
41
  handle(command: SimRequestCertificateCommand, options?: RequestCertificateCommandHandlerOptions): Promise<SimRequestCertificateCommandOutput>;
42
+ /**
43
+ * Build the certificate, on an ARN no other certificate holds.
44
+ *
45
+ * ARNs are allocated from the number of certificates ACM holds, and a
46
+ * registered certificate holds an ARN the simulation never allocated. One of
47
+ * those can sit on the sequence number this count reaches, and stepping past
48
+ * it keeps a requested certificate from replacing a registered one.
49
+ */
50
+ private makeUntakenCertificate;
42
51
  }
43
52
  export {};
44
53
  //# sourceMappingURL=request-certificate.handler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"request-certificate.handler.d.ts","sourceRoot":"","sources":["../../../../../src/service/acm/command/request-certificate/request-certificate.handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAC;AAC7F,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,2CAA2C,CAAC;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,KAAK,EACV,4BAA4B,EAC5B,kCAAkC,EACnC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAIlF,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,wDAAwD,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,2BAA2B,EAAE,MAAM,oDAAoD,CAAC;AAEjG,UAAU,0CAA0C;IAClD,QAAQ,CAAC,kBAAkB,EAAE,wBAAwB,CAAC;IACtD,QAAQ,CAAC,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;IACtD,QAAQ,CAAC,GAAG,CAAC,EAAE,uBAAuB,CAAC;IACvC,QAAQ,CAAC,UAAU,CAAC,EAAE,mBAAmB,CAAC;IAC1C,QAAQ,CAAC,UAAU,CAAC,EAAE,2BAA2B,CAAC;CACnD;AAED,UAAU,uCAAuC;IAC/C,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC;CAChC;AAED;;;;GAIG;AACH,qBAAa,gCAAiC,YAAW,cAAc,CACrE,4BAA4B,EAC5B,kCAAkC,CACnC;IACC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAiC;IAC9D,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA+B;IAC1D,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAsB;IACjD,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAA4B;IAC/D,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA8B;IACzD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAqC;IAE/D,YAAY,UAAU,EAAE,0CAA0C,EAoBjE;IAED;;;;;;;OAOG;IACG,MAAM,CACV,OAAO,EAAE,4BAA4B,EACrC,OAAO,CAAC,EAAE,uCAAuC,GAChD,OAAO,CAAC,kCAAkC,CAAC,CAuB7C;CACF"}
1
+ {"version":3,"file":"request-certificate.handler.d.ts","sourceRoot":"","sources":["../../../../../src/service/acm/command/request-certificate/request-certificate.handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAC;AAC7F,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,2CAA2C,CAAC;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,KAAK,EACV,4BAA4B,EAC5B,kCAAkC,EACnC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAIlF,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,wDAAwD,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,2BAA2B,EAAE,MAAM,oDAAoD,CAAC;AAEjG,UAAU,0CAA0C;IAClD,QAAQ,CAAC,kBAAkB,EAAE,wBAAwB,CAAC;IACtD,QAAQ,CAAC,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;IACtD,QAAQ,CAAC,GAAG,CAAC,EAAE,uBAAuB,CAAC;IACvC,QAAQ,CAAC,UAAU,CAAC,EAAE,mBAAmB,CAAC;IAC1C,QAAQ,CAAC,UAAU,CAAC,EAAE,2BAA2B,CAAC;CACnD;AAED,UAAU,uCAAuC;IAC/C,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC;CAChC;AAED;;;;GAIG;AACH,qBAAa,gCAAiC,YAAW,cAAc,CACrE,4BAA4B,EAC5B,kCAAkC,CACnC;IACC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAiC;IAC9D,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA+B;IAC1D,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAsB;IACjD,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAA4B;IAC/D,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA8B;IACzD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAqC;IAE/D,YAAY,UAAU,EAAE,0CAA0C,EAoBjE;IAED;;;;;;;OAOG;IACG,MAAM,CACV,OAAO,EAAE,4BAA4B,EACrC,OAAO,CAAC,EAAE,uCAAuC,GAChD,OAAO,CAAC,kCAAkC,CAAC,CAoB7C;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,sBAAsB;CAmB/B"}
@@ -43,7 +43,7 @@ export class RequestCertificateCommandHandler {
43
43
  // Allow for potential non-deterministic sequencing of async events.
44
44
  await this.background.sequence();
45
45
  this.authorizer.authorize(options?.caller);
46
- const certificate = this.certificateFactory.makeCertificate(command, this.certificates.size);
46
+ const certificate = this.makeUntakenCertificate(command);
47
47
  const { certificateArn } = certificate;
48
48
  this.certificates.set(certificateArn, certificate);
49
49
  // Issuance waits on domain validation, which happens in the background.
@@ -53,5 +53,22 @@ export class RequestCertificateCommandHandler {
53
53
  CertificateArn: certificateArn,
54
54
  };
55
55
  }
56
+ /**
57
+ * Build the certificate, on an ARN no other certificate holds.
58
+ *
59
+ * ARNs are allocated from the number of certificates ACM holds, and a
60
+ * registered certificate holds an ARN the simulation never allocated. One of
61
+ * those can sit on the sequence number this count reaches, and stepping past
62
+ * it keeps a requested certificate from replacing a registered one.
63
+ */
64
+ makeUntakenCertificate(command) {
65
+ let certificateCount = this.certificates.size;
66
+ let certificate = this.certificateFactory.makeCertificate(command, certificateCount);
67
+ while (this.certificates.has(certificate.certificateArn)) {
68
+ certificateCount += 1;
69
+ certificate = this.certificateFactory.makeCertificate(command, certificateCount);
70
+ }
71
+ return certificate;
72
+ }
56
73
  }
57
74
  //# sourceMappingURL=request-certificate.handler.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"request-certificate.handler.js","sourceRoot":"","sources":["../../../../../src/service/acm/command/request-certificate/request-certificate.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,eAAe,GAChB,MAAM,2CAA2C,CAAC;AAOnD,OAAO,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AACnF,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,EACL,kBAAkB,GAEnB,MAAM,wDAAwD,CAAC;AAEhE,OAAO,EAAE,2BAA2B,EAAE,MAAM,oDAAoD,CAAC;AAcjG;;;;GAIG;AACH,MAAM,OAAO,gCAAgC;IAI1B,YAAY,CAAiC;IAC7C,UAAU,CAA+B;IACzC,UAAU,CAAsB;IAChC,kBAAkB,CAA4B;IAC9C,UAAU,CAA8B;IACxC,SAAS,GAAG,IAAI,2BAA2B,EAAE,CAAC;IAE/D,YAAY,UAAsD;QAChE,MAAM,EACJ,kBAAkB,EAClB,YAAY,EACZ,GAAG,GAAG,IAAI,kBAAkB,EAAE,EAC9B,UAAU,GAAG,IAAI,eAAe,EAAE,EAClC,UAAU,GAAG,IAAI,2BAA2B,CAAC,EAAE,UAAU,EAAE,CAAC,GAC7D,GAAG,UAAU,CAAC;QAEf,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,UAAU,GAAG,IAAI,4BAA4B,CAAC;YACjD,GAAG;YACH,QAAQ,EAAE,eAAe,kBAAkB,CAAC,UAAU,IAAI,kBAAkB,CAAC,SAAS,gBAAgB;SACvG,CAAC,CAAC;QACH,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,kBAAkB,GAAG,IAAI,yBAAyB,CAAC;YACtD,kBAAkB;YAClB,KAAK,EAAE,UAAU;SAClB,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,MAAM,CACV,OAAqC,EACrC,OAAiD;QAEjD,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAEjC,oEAAoE;QACpE,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;QAEjC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QAE3C,MAAM,WAAW,GAAG,IAAI,CAAC,kBAAkB,CAAC,eAAe,CACzD,OAAO,EACP,IAAI,CAAC,YAAY,CAAC,IAAI,CACvB,CAAC;QACF,MAAM,EAAE,cAAc,EAAE,GAAG,WAAW,CAAC;QAEvC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;QAEnD,wEAAwE;QACxE,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAEnC,OAAO;YACL,SAAS,EAAE,EAAE;YACb,cAAc,EAAE,cAAc;SAC/B,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"request-certificate.handler.js","sourceRoot":"","sources":["../../../../../src/service/acm/command/request-certificate/request-certificate.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,eAAe,GAChB,MAAM,2CAA2C,CAAC;AAOnD,OAAO,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AACnF,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,2BAA2B,EAAE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M,WAAW,GAAG,IAAI,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC;QACzD,MAAM,EAAE,cAAc,EAAE,GAAG,WAAW,CAAC;QAEvC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;QAEnD,wEAAwE;QACxE,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAEnC,OAAO;YACL,SAAS,EAAE,EAAE;YACb,cAAc,EAAE,cAAc;SAC/B,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACK,sBAAsB,CAC5B,OAAqC;QAErC,IAAI,gBAAgB,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC;QAC9C,IAAI,WAAW,GAAG,IAAI,CAAC,kBAAkB,CAAC,eAAe,CACvD,OAAO,EACP,gBAAgB,CACjB,CAAC;QAEF,OAAO,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,WAAW,CAAC,cAAc,CAAC,EAAE,CAAC;YACzD,gBAAgB,IAAI,CAAC,CAAC;YACtB,WAAW,GAAG,IAAI,CAAC,kBAAkB,CAAC,eAAe,CACnD,OAAO,EACP,gBAAgB,CACjB,CAAC;QACJ,CAAC;QAED,OAAO,WAAW,CAAC;IACrB,CAAC;CACF"}
@@ -2,6 +2,7 @@ import { type BackgroundScheduler } from "../../util/background/background.js";
2
2
  import type { SimAwsAccountRegionScope } from "../aws/sim-aws-account-region-scope.js";
3
3
  import type { SimRequestCertificateCommand, SimRequestCertificateCommandOutput } from "./command/request-certificate/request-certificate.command.js";
4
4
  import type { SimAcmCertificate } from "./certificate/sim-acm-certificate.js";
5
+ import { type SimAcmCertificateRegistration } from "./certificate/register-sim-acm-certificate.js";
5
6
  import type { SimDescribeCertificateCommand, SimDescribeCertificateCommandOutput } from "./command/describe-certificate/describe-certificate.command.js";
6
7
  import type { SimDeleteCertificateCommand, SimDeleteCertificateCommandOutput } from "./command/delete-certificate/delete-certificate.command.js";
7
8
  import type { SimListCertificatesCommand, SimListCertificatesCommandOutput } from "./command/list-certificates/list-certificates.command.js";
@@ -58,6 +59,20 @@ export declare class SimAcm {
58
59
  * @internal
59
60
  */
60
61
  settleCertificateValidation(certificate: SimAcmCertificate): Promise<void>;
62
+ /**
63
+ * Register a Certificate that already exists, with an ARN of your choosing.
64
+ *
65
+ * `RequestCertificate` allocates its own ARN, as real ACM does, so this is
66
+ * the way to stand up a Certificate a template already names. A CDK app that
67
+ * passes a certificate ARN into another stack bakes that ARN into the
68
+ * template it synthesizes, and a registered Certificate answers ACM commands
69
+ * and satisfies the CloudFront and ELBv2 lookups the same as one this
70
+ * simulation issued.
71
+ *
72
+ * An ARN another Certificate holds, an ARN outside this ACM's own Account and
73
+ * Region, or a string that is no ACM Certificate ARN, is refused.
74
+ */
75
+ registerCertificate(registration: SimAcmCertificateRegistration): SimAcmCertificate;
61
76
  /**
62
77
  * Handle a Describe Certificate Command from the SDK.
63
78
  */
@@ -1 +1 @@
1
- {"version":3,"file":"sim-acm.d.ts","sourceRoot":"","sources":["../../../src/service/acm/sim-acm.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAEvF,OAAO,KAAK,EACV,4BAA4B,EAC5B,kCAAkC,EACnC,MAAM,8DAA8D,CAAC;AAEtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,KAAK,EACV,6BAA6B,EAC7B,mCAAmC,EACpC,MAAM,gEAAgE,CAAC;AAExE,OAAO,KAAK,EACV,2BAA2B,EAC3B,iCAAiC,EAClC,MAAM,4DAA4D,CAAC;AAEpE,OAAO,KAAK,EACV,0BAA0B,EAC1B,gCAAgC,EACjC,MAAM,0DAA0D,CAAC;AAElE,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AAEjF,OAAO,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;;;;;OAMG;IACG,2BAA2B,CAC/B,WAAW,EAAE,iBAAiB,GAC7B,OAAO,CAAC,IAAI,CAAC,CAEf;IAED;;;;;;;;;;;;OAYG;IACH,mBAAmB,CACjB,YAAY,EAAE,6BAA6B,GAC1C,iBAAiB,CAMnB;IAED;;OAEG;IACG,mBAAmB,CACvB,OAAO,EAAE,6BAA6B,EACtC,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,mCAAmC,CAAC,CAO9C;IAED;;OAEG;IACG,iBAAiB,CACrB,OAAO,EAAE,2BAA2B,EACpC,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,iCAAiC,CAAC,CAO5C;IAED;;OAEG;IACG,gBAAgB,CACpB,OAAO,EAAE,0BAA0B,EACnC,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,gCAAgC,CAAC,CAO3C;IAED;;OAEG;IACG,kBAAkB,CACtB,OAAO,EAAE,4BAA4B,EACrC,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,kCAAkC,CAAC,CAS7C;IAED;;OAEG;IACH,kBAAkB,IAAI,wBAAwB,CAE7C;IAED;;OAEG;IACH,gBAAgB,IAAI,mBAAmB,CAEtC;CACF"}
@@ -1,5 +1,6 @@
1
1
  import { BackgroundTasks, } from "../../util/background/background.js";
2
2
  import { RequestCertificateCommandHandler } from "./command/request-certificate/request-certificate.handler.js";
3
+ import { registerSimAcmCertificate, } from "./certificate/register-sim-acm-certificate.js";
3
4
  import { DescribeCertificateCommandHandler } from "./command/describe-certificate/describe-certificate.handler.js";
4
5
  import { DeleteCertificateCommandHandler } from "./command/delete-certificate/delete-certificate.handler.js";
5
6
  import { ListCertificatesCommandHandler } from "./command/list-certificates/list-certificates.handler.js";
@@ -74,6 +75,26 @@ export class SimAcm {
74
75
  async settleCertificateValidation(certificate) {
75
76
  await this.validation.settle(certificate);
76
77
  }
78
+ /**
79
+ * Register a Certificate that already exists, with an ARN of your choosing.
80
+ *
81
+ * `RequestCertificate` allocates its own ARN, as real ACM does, so this is
82
+ * the way to stand up a Certificate a template already names. A CDK app that
83
+ * passes a certificate ARN into another stack bakes that ARN into the
84
+ * template it synthesizes, and a registered Certificate answers ACM commands
85
+ * and satisfies the CloudFront and ELBv2 lookups the same as one this
86
+ * simulation issued.
87
+ *
88
+ * An ARN another Certificate holds, an ARN outside this ACM's own Account and
89
+ * Region, or a string that is no ACM Certificate ARN, is refused.
90
+ */
91
+ registerCertificate(registration) {
92
+ return registerSimAcmCertificate(registration, {
93
+ certificates: this.certificates,
94
+ accountRegionScope: this.accountRegionScope,
95
+ clock: this.background,
96
+ });
97
+ }
77
98
  /**
78
99
  * Handle a Describe Certificate Command from the SDK.
79
100
  */
@@ -1 +1 @@
1
- {"version":3,"file":"sim-acm.js","sourceRoot":"","sources":["../../../src/service/acm/sim-acm.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,GAChB,MAAM,qCAAqC,CAAC;AAO7C,OAAO,EAAE,gCAAgC,EAAE,MAAM,8DAA8D,CAAC;AAMhH,OAAO,EAAE,iCAAiC,EAAE,MAAM,gEAAgE,CAAC;AAKnH,OAAO,EAAE,+BAA+B,EAAE,MAAM,4DAA4D,CAAC;AAK7G,OAAO,EAAE,8BAA8B,EAAE,MAAM,0DAA0D,CAAC;AAC1G,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAE,+BAA+B,EAAE,MAAM,gDAAgD,CAAC;AAEjG,OAAO,EACL,kBAAkB,GAEnB,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAE7E,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAC7F,OAAO,EAAE,4BAA4B,EAAE,MAAM,kDAAkD,CAAC;AAchG;;GAEG;AACH,MAAM,OAAO,MAAM;IACD,YAAY,GAAG,IAAI,GAAG,EAA6B,CAAC;IAEnD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AC;IAChD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,kBAAkB,CACtB,OAAqC,EACrC,OAA8B;QAE9B,MAAM,OAAO,GAAG,IAAI,gCAAgC,CAAC;YACnD,kBAAkB,EAAE,IAAI,CAAC,kBAAkB;YAC3C,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,GAAG,EAAE,IAAI,CAAC,GAAG;YACb,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,UAAU,EAAE,IAAI,CAAC,UAAU;SAC5B,CAAC,CAAC;QACH,OAAO,MAAM,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAChD,CAAC;IAED;;OAEG;IACH,kBAAkB;QAChB,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,gBAAgB;QACd,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;CACF"}
@@ -0,0 +1,29 @@
1
+ import type { AwsRegionName } from "../../aws/sim-aws-region.js";
2
+ /** The file a CDK cloud assembly describes itself in. */
3
+ export declare const CDK_ASSEMBLY_MANIFEST_FILE_NAME = "manifest.json";
4
+ interface SimCdkAssemblyArtifact {
5
+ readonly type?: string | undefined;
6
+ readonly environment?: string | undefined;
7
+ readonly dependencies?: readonly string[] | undefined;
8
+ readonly properties?: {
9
+ readonly templateFile?: string | undefined;
10
+ readonly stackName?: string | undefined;
11
+ } | undefined;
12
+ }
13
+ export type SimCdkAssemblyArtifacts = Record<string, SimCdkAssemblyArtifact>;
14
+ /**
15
+ * Read the artifacts a CDK cloud assembly's `manifest.json` holds.
16
+ *
17
+ * Reading it is what tells a caller that the directory they named is a cloud
18
+ * assembly at all, so the failure names the file rather than the directory.
19
+ */
20
+ export declare function readCdkAssemblyArtifacts(manifestPath: string): Promise<SimCdkAssemblyArtifacts>;
21
+ /**
22
+ * Read the region out of a CDK environment such as `aws://111111111111/eu-west-2`.
23
+ *
24
+ * An environment-agnostic Stack carries `unknown-region`, and takes its region
25
+ * from whoever deploys it instead.
26
+ */
27
+ export declare function cdkEnvironmentRegionName(environment: string | undefined): AwsRegionName | undefined;
28
+ export {};
29
+ //# sourceMappingURL=sim-cdk-assembly-manifest-file.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cdk-assembly-manifest-file.d.ts","sourceRoot":"","sources":["../../../../src/service/cloudformation/cdk/sim-cdk-assembly-manifest-file.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,yDAAyD;AACzD,eAAO,MAAM,+BAA+B,kBAAkB,CAAC;AAK/D,UAAU,sBAAsB;IAC9B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1C,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;IACtD,QAAQ,CAAC,UAAU,CAAC,EAChB;QACE,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAC3C,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;KACzC,GACD,SAAS,CAAC;CACf;AAED,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;AAM7E;;;;;GAKG;AACH,wBAAsB,wBAAwB,CAC5C,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,uBAAuB,CAAC,CAalC;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,WAAW,EAAE,MAAM,GAAG,SAAS,GAC9B,aAAa,GAAG,SAAS,CAM3B"}
@@ -0,0 +1,36 @@
1
+ import { readFile } from "node:fs/promises";
2
+ import { jsonParse } from "../../../util/type-guard/json.js";
3
+ /** The file a CDK cloud assembly describes itself in. */
4
+ export const CDK_ASSEMBLY_MANIFEST_FILE_NAME = "manifest.json";
5
+ /** What an environment-agnostic Stack carries in place of a region. */
6
+ const CDK_UNKNOWN_REGION = "unknown-region";
7
+ /**
8
+ * Read the artifacts a CDK cloud assembly's `manifest.json` holds.
9
+ *
10
+ * Reading it is what tells a caller that the directory they named is a cloud
11
+ * assembly at all, so the failure names the file rather than the directory.
12
+ */
13
+ export async function readCdkAssemblyArtifacts(manifestPath) {
14
+ try {
15
+ // oxlint-disable-next-line security/detect-non-literal-fs-filename
16
+ const body = await readFile(manifestPath, "utf8");
17
+ const manifest = jsonParse(body);
18
+ return manifest.artifacts ?? {};
19
+ }
20
+ catch (error) {
21
+ throw new Error(`Could not read the CDK cloud assembly manifest at ${manifestPath}. A cloud assembly is what \`cdk synth\` writes, and it holds a manifest naming every Stack in it.`, { cause: error });
22
+ }
23
+ }
24
+ /**
25
+ * Read the region out of a CDK environment such as `aws://111111111111/eu-west-2`.
26
+ *
27
+ * An environment-agnostic Stack carries `unknown-region`, and takes its region
28
+ * from whoever deploys it instead.
29
+ */
30
+ export function cdkEnvironmentRegionName(environment) {
31
+ const regionName = environment?.split("/").at(-1);
32
+ return regionName === CDK_UNKNOWN_REGION
33
+ ? undefined
34
+ : regionName;
35
+ }
36
+ //# sourceMappingURL=sim-cdk-assembly-manifest-file.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cdk-assembly-manifest-file.js","sourceRoot":"","sources":["../../../../src/service/cloudformation/cdk/sim-cdk-assembly-manifest-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAmB,MAAM,kCAAkC,CAAC;AAG9E,yDAAyD;AACzD,MAAM,CAAC,MAAM,+BAA+B,GAAG,eAAe,CAAC;AAE/D,uEAAuE;AACvE,MAAM,kBAAkB,GAAG,gBAAgB,CAAC;AAoB5C;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAC5C,YAAoB;IAEpB,IAAI,CAAC;QACH,mEAAmE;QACnE,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;QAClD,MAAM,QAAQ,GAAG,SAAS,CAAC,IAA0C,CAAC,CAAC;QAEvE,OAAO,QAAQ,CAAC,SAAS,IAAI,EAAE,CAAC;IAClC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CACb,qDAAqD,YAAY,oGAAoG,EACrK,EAAE,KAAK,EAAE,KAAK,EAAE,CACjB,CAAC;IACJ,CAAC;AACH,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,wBAAwB,CACtC,WAA+B;IAE/B,MAAM,UAAU,GAAG,WAAW,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IAElD,OAAO,UAAU,KAAK,kBAAkB;QACtC,CAAC,CAAC,SAAS;QACX,CAAC,CAAE,UAAwC,CAAC;AAChD,CAAC"}
@@ -0,0 +1,27 @@
1
+ import type { AwsRegionName } from "../../aws/sim-aws-region.js";
2
+ /**
3
+ * One CloudFormation Stack artifact in a CDK cloud assembly.
4
+ */
5
+ export interface SimCdkAssemblyStack {
6
+ /** The key the artifact is held under, which other artifacts depend on. */
7
+ readonly artifactId: string;
8
+ /** The name the Stack is deployed as. */
9
+ readonly stackName: string;
10
+ /** The absolute path to the synthesized template file. */
11
+ readonly templatePath: string;
12
+ /**
13
+ * The region the Stack's environment names, absent when it names none.
14
+ */
15
+ readonly regionName?: AwsRegionName | undefined;
16
+ /** The artifacts this one comes after, Stacks and assets alike. */
17
+ readonly dependencyArtifactIds: readonly string[];
18
+ }
19
+ /**
20
+ * Read the Stack artifacts a CDK cloud assembly holds.
21
+ *
22
+ * The manifest is the only file that knows about the set. Each Stack artifact
23
+ * carries the template file to deploy, the environment naming its region, and
24
+ * the artifacts it comes after.
25
+ */
26
+ export declare function loadCdkAssemblyStacks(directoryPath: string): Promise<readonly SimCdkAssemblyStack[]>;
27
+ //# sourceMappingURL=sim-cdk-assembly-manifest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cdk-assembly-manifest.d.ts","sourceRoot":"","sources":["../../../../src/service/cloudformation/cdk/sim-cdk-assembly-manifest.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AASjE;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,2EAA2E;IAC3E,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAE5B,yCAAyC;IACzC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAE3B,0DAA0D;IAC1D,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IAEhD,mEAAmE;IACnE,QAAQ,CAAC,qBAAqB,EAAE,SAAS,MAAM,EAAE,CAAC;CACnD;AAED;;;;;;GAMG;AACH,wBAAsB,qBAAqB,CACzC,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,SAAS,mBAAmB,EAAE,CAAC,CAkBzC"}