@kensio/yulin 1.17.0 → 1.17.2

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 (830) hide show
  1. package/README.md +1 -0
  2. package/dist/serve/http/local-server/sim-aws-local-location.d.ts +55 -0
  3. package/dist/serve/http/local-server/sim-aws-local-location.d.ts.map +1 -0
  4. package/dist/serve/http/local-server/sim-aws-local-location.js +80 -0
  5. package/dist/serve/http/local-server/sim-aws-local-location.js.map +1 -0
  6. package/dist/serve/http/local-server/sim-aws-local-request-handler.d.ts +7 -0
  7. package/dist/serve/http/local-server/sim-aws-local-request-handler.d.ts.map +1 -1
  8. package/dist/serve/http/local-server/sim-aws-local-request-handler.js +10 -3
  9. package/dist/serve/http/local-server/sim-aws-local-request-handler.js.map +1 -1
  10. package/dist/serve/http/local-server/sim-aws-local-server.d.ts.map +1 -1
  11. package/dist/serve/http/local-server/sim-aws-local-server.js +5 -0
  12. package/dist/serve/http/local-server/sim-aws-local-server.js.map +1 -1
  13. package/dist/serve/http/node-fetch-http-adapter.d.ts +9 -0
  14. package/dist/serve/http/node-fetch-http-adapter.d.ts.map +1 -1
  15. package/dist/serve/http/node-fetch-http-adapter.js +17 -1
  16. package/dist/serve/http/node-fetch-http-adapter.js.map +1 -1
  17. package/dist/service/acm/certificate/register-sim-acm-certificate.d.ts +41 -0
  18. package/dist/service/acm/certificate/register-sim-acm-certificate.d.ts.map +1 -0
  19. package/dist/service/acm/certificate/register-sim-acm-certificate.js +60 -0
  20. package/dist/service/acm/certificate/register-sim-acm-certificate.js.map +1 -0
  21. package/dist/service/acm/command/request-certificate/request-certificate.handler.d.ts +9 -0
  22. package/dist/service/acm/command/request-certificate/request-certificate.handler.d.ts.map +1 -1
  23. package/dist/service/acm/command/request-certificate/request-certificate.handler.js +18 -1
  24. package/dist/service/acm/command/request-certificate/request-certificate.handler.js.map +1 -1
  25. package/dist/service/acm/sim-acm.d.ts +15 -0
  26. package/dist/service/acm/sim-acm.d.ts.map +1 -1
  27. package/dist/service/acm/sim-acm.js +21 -0
  28. package/dist/service/acm/sim-acm.js.map +1 -1
  29. package/dist/service/apigatewayv2/api/integration/sim-http-api-lambda-uri.d.ts +23 -4
  30. package/dist/service/apigatewayv2/api/integration/sim-http-api-lambda-uri.d.ts.map +1 -1
  31. package/dist/service/apigatewayv2/api/integration/sim-http-api-lambda-uri.js +56 -14
  32. package/dist/service/apigatewayv2/api/integration/sim-http-api-lambda-uri.js.map +1 -1
  33. package/dist/service/apigatewayv2/serve/auth/sim-http-api-authorizer-invocation.d.ts +1 -1
  34. package/dist/service/apigatewayv2/serve/auth/sim-http-api-authorizer-invocation.d.ts.map +1 -1
  35. package/dist/service/apigatewayv2/serve/auth/sim-http-api-invoke-authorizer.d.ts +7 -3
  36. package/dist/service/apigatewayv2/serve/auth/sim-http-api-invoke-authorizer.d.ts.map +1 -1
  37. package/dist/service/apigatewayv2/serve/auth/sim-http-api-invoke-authorizer.js +6 -2
  38. package/dist/service/apigatewayv2/serve/auth/sim-http-api-invoke-authorizer.js.map +1 -1
  39. package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-router.d.ts +11 -12
  40. package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-router.d.ts.map +1 -1
  41. package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-router.js +15 -7
  42. package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-router.js.map +1 -1
  43. package/dist/service/apigatewayv2/serve/sim-http-api-function-target.d.ts +17 -0
  44. package/dist/service/apigatewayv2/serve/sim-http-api-function-target.d.ts.map +1 -0
  45. package/dist/service/apigatewayv2/serve/sim-http-api-function-target.js +2 -0
  46. package/dist/service/apigatewayv2/serve/sim-http-api-function-target.js.map +1 -0
  47. package/dist/service/apigatewayv2/serve/sim-http-api-integration-invocation.d.ts.map +1 -1
  48. package/dist/service/apigatewayv2/serve/sim-http-api-integration-invocation.js +1 -1
  49. package/dist/service/apigatewayv2/serve/sim-http-api-integration-invocation.js.map +1 -1
  50. package/dist/service/cloudformation/bind/validate/sim-cfn-exec-binding-matcher.js +1 -1
  51. package/dist/service/cloudformation/bind/validate/sim-cfn-exec-binding-matcher.js.map +1 -1
  52. package/dist/service/cloudformation/cdk/sim-cdk-assembly-selection.d.ts +4 -0
  53. package/dist/service/cloudformation/cdk/sim-cdk-assembly-selection.d.ts.map +1 -1
  54. package/dist/service/cloudformation/cdk/sim-cdk-assembly-selection.js +7 -2
  55. package/dist/service/cloudformation/cdk/sim-cdk-assembly-selection.js.map +1 -1
  56. package/dist/service/cloudformation/command/create-stack/create-stack.handler.d.ts.map +1 -1
  57. package/dist/service/cloudformation/command/create-stack/create-stack.handler.js +2 -2
  58. package/dist/service/cloudformation/command/create-stack/create-stack.handler.js.map +1 -1
  59. package/dist/service/cloudformation/command/update-stack/update-stack.handler.d.ts.map +1 -1
  60. package/dist/service/cloudformation/command/update-stack/update-stack.handler.js +2 -2
  61. package/dist/service/cloudformation/command/update-stack/update-stack.handler.js.map +1 -1
  62. package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-deployer.d.ts +1 -1
  63. package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-deployer.d.ts.map +1 -1
  64. package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-deployer.js +6 -4
  65. package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-deployer.js.map +1 -1
  66. package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-plan.d.ts +4 -0
  67. package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-plan.d.ts.map +1 -1
  68. package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-plan.js.map +1 -1
  69. package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-stack-options.d.ts +25 -2
  70. package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-stack-options.d.ts.map +1 -1
  71. package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-stack-options.js +13 -0
  72. package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-stack-options.js.map +1 -1
  73. package/dist/service/cloudformation/deploy/sim-cfn-template-file-loader.d.ts.map +1 -1
  74. package/dist/service/cloudformation/deploy/sim-cfn-template-file-loader.js +3 -3
  75. package/dist/service/cloudformation/deploy/sim-cfn-template-file-loader.js.map +1 -1
  76. package/dist/service/cloudformation/deploy/sim-cfn-template-file-parse.d.ts +10 -0
  77. package/dist/service/cloudformation/deploy/sim-cfn-template-file-parse.d.ts.map +1 -0
  78. package/dist/service/cloudformation/deploy/sim-cfn-template-file-parse.js +30 -0
  79. package/dist/service/cloudformation/deploy/sim-cfn-template-file-parse.js.map +1 -0
  80. package/dist/service/cloudformation/deploy/sim-cfn-template-file-read.d.ts +2 -4
  81. package/dist/service/cloudformation/deploy/sim-cfn-template-file-read.d.ts.map +1 -1
  82. package/dist/service/cloudformation/deploy/sim-cfn-template-file-read.js +2 -3
  83. package/dist/service/cloudformation/deploy/sim-cfn-template-file-read.js.map +1 -1
  84. package/dist/service/cloudformation/index.d.ts +1 -1
  85. package/dist/service/cloudformation/index.d.ts.map +1 -1
  86. package/dist/service/cloudformation/resource/cfn/iam/sim-iam-cfn-value-adapter.d.ts.map +1 -1
  87. package/dist/service/cloudformation/resource/cfn/iam/sim-iam-cfn-value-adapter.js +4 -0
  88. package/dist/service/cloudformation/resource/cfn/iam/sim-iam-cfn-value-adapter.js.map +1 -1
  89. package/dist/service/cloudformation/resource/cfn/iam/sim-iam-user-cfn.d.ts +28 -0
  90. package/dist/service/cloudformation/resource/cfn/iam/sim-iam-user-cfn.d.ts.map +1 -0
  91. package/dist/service/cloudformation/resource/cfn/iam/sim-iam-user-cfn.js +33 -0
  92. package/dist/service/cloudformation/resource/cfn/iam/sim-iam-user-cfn.js.map +1 -0
  93. package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-cfn-value-adapter.d.ts.map +1 -1
  94. package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-cfn-value-adapter.js +11 -0
  95. package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-cfn-value-adapter.js.map +1 -1
  96. package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-function-alias-cfn.d.ts +29 -0
  97. package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-function-alias-cfn.d.ts.map +1 -0
  98. package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-function-alias-cfn.js +31 -0
  99. package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-function-alias-cfn.js.map +1 -0
  100. package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-function-version-cfn.d.ts +35 -0
  101. package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-function-version-cfn.d.ts.map +1 -0
  102. package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-function-version-cfn.js +40 -0
  103. package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-function-version-cfn.js.map +1 -0
  104. package/dist/service/cloudformation/resource/resolve/property/sim-cfn-resource-property-resolver.d.ts +6 -0
  105. package/dist/service/cloudformation/resource/resolve/property/sim-cfn-resource-property-resolver.d.ts.map +1 -1
  106. package/dist/service/cloudformation/resource/resolve/property/sim-cfn-resource-property-resolver.js +3 -0
  107. package/dist/service/cloudformation/resource/resolve/property/sim-cfn-resource-property-resolver.js.map +1 -1
  108. package/dist/service/cloudformation/resource/sim-cfn-resource-record.d.ts.map +1 -1
  109. package/dist/service/cloudformation/resource/sim-cfn-resource-record.js +1 -0
  110. package/dist/service/cloudformation/resource/sim-cfn-resource-record.js.map +1 -1
  111. package/dist/service/cloudformation/sam/api/sim-cfn-sam-http-api-stage.d.ts +20 -0
  112. package/dist/service/cloudformation/sam/api/sim-cfn-sam-http-api-stage.d.ts.map +1 -0
  113. package/dist/service/cloudformation/sam/api/sim-cfn-sam-http-api-stage.js +80 -0
  114. package/dist/service/cloudformation/sam/api/sim-cfn-sam-http-api-stage.js.map +1 -0
  115. package/dist/service/cloudformation/sam/api/sim-cfn-sam-http-api-template.factory.d.ts +46 -0
  116. package/dist/service/cloudformation/sam/api/sim-cfn-sam-http-api-template.factory.d.ts.map +1 -0
  117. package/dist/service/cloudformation/sam/api/sim-cfn-sam-http-api-template.factory.js +103 -0
  118. package/dist/service/cloudformation/sam/api/sim-cfn-sam-http-api-template.factory.js.map +1 -0
  119. package/dist/service/cloudformation/sam/api/sim-cfn-sam-http-api.d.ts +28 -0
  120. package/dist/service/cloudformation/sam/api/sim-cfn-sam-http-api.d.ts.map +1 -0
  121. package/dist/service/cloudformation/sam/api/sim-cfn-sam-http-api.js +81 -0
  122. package/dist/service/cloudformation/sam/api/sim-cfn-sam-http-api.js.map +1 -0
  123. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-declared-event.d.ts +52 -0
  124. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-declared-event.d.ts.map +1 -0
  125. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-declared-event.js +38 -0
  126. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-declared-event.js.map +1 -0
  127. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-bridge-rule-event.d.ts +16 -0
  128. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-bridge-rule-event.d.ts.map +1 -0
  129. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-bridge-rule-event.js +21 -0
  130. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-bridge-rule-event.js.map +1 -0
  131. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-rule.d.ts +26 -0
  132. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-rule.d.ts.map +1 -0
  133. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-rule.js +84 -0
  134. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-rule.js.map +1 -0
  135. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source-kind.d.ts +24 -0
  136. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source-kind.d.ts.map +1 -0
  137. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source-kind.js +41 -0
  138. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source-kind.js.map +1 -0
  139. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source-mapping-event.d.ts +20 -0
  140. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source-mapping-event.d.ts.map +1 -0
  141. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source-mapping-event.js +56 -0
  142. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source-mapping-event.js.map +1 -0
  143. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source-role.d.ts +11 -0
  144. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source-role.d.ts.map +1 -0
  145. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source-role.js +57 -0
  146. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source-role.js.map +1 -0
  147. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source.resources.d.ts +25 -0
  148. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source.resources.d.ts.map +1 -0
  149. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source.resources.js +42 -0
  150. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source.resources.js.map +1 -0
  151. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-state.d.ts +17 -0
  152. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-state.d.ts.map +1 -0
  153. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-state.js +26 -0
  154. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-state.js.map +1 -0
  155. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-function-events.d.ts +32 -0
  156. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-function-events.d.ts.map +1 -0
  157. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-function-events.js +70 -0
  158. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-function-events.js.map +1 -0
  159. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-event.d.ts +20 -0
  160. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-event.d.ts.map +1 -0
  161. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-event.js +71 -0
  162. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-event.js.map +1 -0
  163. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-permission.d.ts +14 -0
  164. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-permission.d.ts.map +1 -0
  165. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-permission.js +38 -0
  166. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-permission.js.map +1 -0
  167. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-route.d.ts +18 -0
  168. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-route.d.ts.map +1 -0
  169. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-route.js +56 -0
  170. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-route.js.map +1 -0
  171. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-implicit-http-api.d.ts +20 -0
  172. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-implicit-http-api.d.ts.map +1 -0
  173. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-implicit-http-api.js +41 -0
  174. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-implicit-http-api.js.map +1 -0
  175. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-resource-edit.d.ts +29 -0
  176. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-resource-edit.d.ts.map +1 -0
  177. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-resource-edit.js +23 -0
  178. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-resource-edit.js.map +1 -0
  179. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-s3-event.d.ts +33 -0
  180. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-s3-event.d.ts.map +1 -0
  181. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-s3-event.js +103 -0
  182. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-s3-event.js.map +1 -0
  183. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-s3-notified-bucket.d.ts +22 -0
  184. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-s3-notified-bucket.d.ts.map +1 -0
  185. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-s3-notified-bucket.js +76 -0
  186. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-s3-notified-bucket.js.map +1 -0
  187. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-schedule-event.d.ts +17 -0
  188. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-schedule-event.d.ts.map +1 -0
  189. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-schedule-event.js +22 -0
  190. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-schedule-event.js.map +1 -0
  191. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-schedule-v2-event.d.ts +15 -0
  192. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-schedule-v2-event.d.ts.map +1 -0
  193. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-schedule-v2-event.js +97 -0
  194. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-schedule-v2-event.js.map +1 -0
  195. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-sns-event.d.ts +23 -0
  196. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-sns-event.d.ts.map +1 -0
  197. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-sns-event.js +60 -0
  198. package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-sns-event.js.map +1 -0
  199. package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-policies.d.ts +31 -0
  200. package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-policies.d.ts.map +1 -0
  201. package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-policies.js +74 -0
  202. package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-policies.js.map +1 -0
  203. package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-properties.d.ts +24 -0
  204. package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-properties.d.ts.map +1 -0
  205. package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-properties.js +67 -0
  206. package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-properties.js.map +1 -0
  207. package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-role.d.ts +18 -0
  208. package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-role.d.ts.map +1 -0
  209. package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-role.js +35 -0
  210. package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-role.js.map +1 -0
  211. package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-template.factory.d.ts +45 -0
  212. package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-template.factory.d.ts.map +1 -0
  213. package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-template.factory.js +50 -0
  214. package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-template.factory.js.map +1 -0
  215. package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-url.d.ts +19 -0
  216. package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-url.d.ts.map +1 -0
  217. package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-url.js +37 -0
  218. package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-url.js.map +1 -0
  219. package/dist/service/cloudformation/sam/function/sim-cfn-sam-function.d.ts +44 -0
  220. package/dist/service/cloudformation/sam/function/sim-cfn-sam-function.d.ts.map +1 -0
  221. package/dist/service/cloudformation/sam/function/sim-cfn-sam-function.js +74 -0
  222. package/dist/service/cloudformation/sam/function/sim-cfn-sam-function.js.map +1 -0
  223. package/dist/service/cloudformation/sam/sim-cfn-sam-expansion.d.ts +18 -0
  224. package/dist/service/cloudformation/sam/sim-cfn-sam-expansion.d.ts.map +1 -0
  225. package/dist/service/cloudformation/sam/sim-cfn-sam-expansion.js +83 -0
  226. package/dist/service/cloudformation/sam/sim-cfn-sam-expansion.js.map +1 -0
  227. package/dist/service/cloudformation/sam/sim-cfn-sam-globals.d.ts +36 -0
  228. package/dist/service/cloudformation/sam/sim-cfn-sam-globals.d.ts.map +1 -0
  229. package/dist/service/cloudformation/sam/sim-cfn-sam-globals.js +76 -0
  230. package/dist/service/cloudformation/sam/sim-cfn-sam-globals.js.map +1 -0
  231. package/dist/service/cloudformation/sam/sim-cfn-sam-picked.d.ts +10 -0
  232. package/dist/service/cloudformation/sam/sim-cfn-sam-picked.d.ts.map +1 -0
  233. package/dist/service/cloudformation/sam/sim-cfn-sam-picked.js +11 -0
  234. package/dist/service/cloudformation/sam/sim-cfn-sam-picked.js.map +1 -0
  235. package/dist/service/cloudformation/sam/sim-cfn-sam-record.d.ts +40 -0
  236. package/dist/service/cloudformation/sam/sim-cfn-sam-record.d.ts.map +1 -0
  237. package/dist/service/cloudformation/sam/sim-cfn-sam-record.js +50 -0
  238. package/dist/service/cloudformation/sam/sim-cfn-sam-record.js.map +1 -0
  239. package/dist/service/cloudformation/sam/sim-cfn-sam-transform.d.ts +23 -0
  240. package/dist/service/cloudformation/sam/sim-cfn-sam-transform.d.ts.map +1 -0
  241. package/dist/service/cloudformation/sam/sim-cfn-sam-transform.js +48 -0
  242. package/dist/service/cloudformation/sam/sim-cfn-sam-transform.js.map +1 -0
  243. package/dist/service/cloudformation/sam/table/sim-cfn-sam-simple-table-key.d.ts +18 -0
  244. package/dist/service/cloudformation/sam/table/sim-cfn-sam-simple-table-key.d.ts.map +1 -0
  245. package/dist/service/cloudformation/sam/table/sim-cfn-sam-simple-table-key.js +52 -0
  246. package/dist/service/cloudformation/sam/table/sim-cfn-sam-simple-table-key.js.map +1 -0
  247. package/dist/service/cloudformation/sam/table/sim-cfn-sam-simple-table-template.factory.d.ts +40 -0
  248. package/dist/service/cloudformation/sam/table/sim-cfn-sam-simple-table-template.factory.d.ts.map +1 -0
  249. package/dist/service/cloudformation/sam/table/sim-cfn-sam-simple-table-template.factory.js +47 -0
  250. package/dist/service/cloudformation/sam/table/sim-cfn-sam-simple-table-template.factory.js.map +1 -0
  251. package/dist/service/cloudformation/sam/table/sim-cfn-sam-simple-table.d.ts +25 -0
  252. package/dist/service/cloudformation/sam/table/sim-cfn-sam-simple-table.d.ts.map +1 -0
  253. package/dist/service/cloudformation/sam/table/sim-cfn-sam-simple-table.js +77 -0
  254. package/dist/service/cloudformation/sam/table/sim-cfn-sam-simple-table.js.map +1 -0
  255. package/dist/service/cloudformation/template/dynamic/make-sim-cfn-dynamic-references.d.ts +1 -0
  256. package/dist/service/cloudformation/template/dynamic/make-sim-cfn-dynamic-references.d.ts.map +1 -1
  257. package/dist/service/cloudformation/template/dynamic/make-sim-cfn-dynamic-references.js +2 -1
  258. package/dist/service/cloudformation/template/dynamic/make-sim-cfn-dynamic-references.js.map +1 -1
  259. package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-resolvers.d.ts.map +1 -1
  260. package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-resolvers.js +4 -0
  261. package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-resolvers.js.map +1 -1
  262. package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference.type.d.ts +19 -1
  263. package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference.type.d.ts.map +1 -1
  264. package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-references.d.ts +6 -0
  265. package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-references.d.ts.map +1 -1
  266. package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-references.js +9 -3
  267. package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-references.js.map +1 -1
  268. package/dist/service/cloudformation/template/sim-cfn-template-body-parse.d.ts +19 -0
  269. package/dist/service/cloudformation/template/sim-cfn-template-body-parse.d.ts.map +1 -0
  270. package/dist/service/cloudformation/template/sim-cfn-template-body-parse.js +36 -0
  271. package/dist/service/cloudformation/template/sim-cfn-template-body-parse.js.map +1 -0
  272. package/dist/service/cloudformation/template/sim-cfn-template.d.ts +11 -4
  273. package/dist/service/cloudformation/template/sim-cfn-template.d.ts.map +1 -1
  274. package/dist/service/cloudformation/template/sim-cfn-template.js +16 -13
  275. package/dist/service/cloudformation/template/sim-cfn-template.js.map +1 -1
  276. package/dist/service/cloudformation/template/yaml/sim-cfn-template-yaml.d.ts +11 -0
  277. package/dist/service/cloudformation/template/yaml/sim-cfn-template-yaml.d.ts.map +1 -0
  278. package/dist/service/cloudformation/template/yaml/sim-cfn-template-yaml.js +41 -0
  279. package/dist/service/cloudformation/template/yaml/sim-cfn-template-yaml.js.map +1 -0
  280. package/dist/service/cloudformation/template/yaml/sim-cfn-yaml-short-forms.d.ts +17 -0
  281. package/dist/service/cloudformation/template/yaml/sim-cfn-yaml-short-forms.d.ts.map +1 -0
  282. package/dist/service/cloudformation/template/yaml/sim-cfn-yaml-short-forms.js +70 -0
  283. package/dist/service/cloudformation/template/yaml/sim-cfn-yaml-short-forms.js.map +1 -0
  284. package/dist/service/cloudfront/cff/adapter/sim-cff-request-metadata-adapter.d.ts +23 -0
  285. package/dist/service/cloudfront/cff/adapter/sim-cff-request-metadata-adapter.d.ts.map +1 -1
  286. package/dist/service/cloudfront/cff/adapter/sim-cff-request-metadata-adapter.js +64 -22
  287. package/dist/service/cloudfront/cff/adapter/sim-cff-request-metadata-adapter.js.map +1 -1
  288. package/dist/service/cloudfront/command/create-function/create-function-code-size.d.ts +23 -0
  289. package/dist/service/cloudfront/command/create-function/create-function-code-size.d.ts.map +1 -0
  290. package/dist/service/cloudfront/command/create-function/create-function-code-size.js +33 -0
  291. package/dist/service/cloudfront/command/create-function/create-function-code-size.js.map +1 -0
  292. package/dist/service/cloudfront/command/create-function/create-function.handler.d.ts.map +1 -1
  293. package/dist/service/cloudfront/command/create-function/create-function.handler.js +2 -0
  294. package/dist/service/cloudfront/command/create-function/create-function.handler.js.map +1 -1
  295. package/dist/service/cloudfront/error/sim-cloudfront.error.d.ts +11 -0
  296. package/dist/service/cloudfront/error/sim-cloudfront.error.d.ts.map +1 -1
  297. package/dist/service/cloudfront/error/sim-cloudfront.error.js +13 -0
  298. package/dist/service/cloudfront/error/sim-cloudfront.error.js.map +1 -1
  299. package/dist/service/cloudfront/index.d.ts +1 -1
  300. package/dist/service/cloudfront/index.d.ts.map +1 -1
  301. package/dist/service/cloudfront/index.js +1 -1
  302. package/dist/service/cloudfront/index.js.map +1 -1
  303. package/dist/service/cloudfront/typings/cloudfront-functions.namespace.d.ts +1 -1
  304. package/dist/service/cloudfront/typings/cloudfront-functions.namespace.d.ts.map +1 -1
  305. package/dist/service/cognito/command/sim-cognito-commands.d.ts +6 -0
  306. package/dist/service/cognito/command/sim-cognito-commands.d.ts.map +1 -1
  307. package/dist/service/cognito/command/sim-cognito-commands.js +22 -6
  308. package/dist/service/cognito/command/sim-cognito-commands.js.map +1 -1
  309. package/dist/service/cognito/error/sim-cognito.error.d.ts +22 -0
  310. package/dist/service/cognito/error/sim-cognito.error.d.ts.map +1 -1
  311. package/dist/service/cognito/error/sim-cognito.error.js +26 -0
  312. package/dist/service/cognito/error/sim-cognito.error.js.map +1 -1
  313. package/dist/service/cognito/index.d.ts +2 -1
  314. package/dist/service/cognito/index.d.ts.map +1 -1
  315. package/dist/service/cognito/index.js +1 -1
  316. package/dist/service/cognito/index.js.map +1 -1
  317. package/dist/service/cognito/sim-cognito-identity-provider.d.ts +24 -0
  318. package/dist/service/cognito/sim-cognito-identity-provider.d.ts.map +1 -1
  319. package/dist/service/cognito/sim-cognito-identity-provider.js +26 -0
  320. package/dist/service/cognito/sim-cognito-identity-provider.js.map +1 -1
  321. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.d.ts +9 -0
  322. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.d.ts.map +1 -1
  323. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.js +2 -2
  324. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.js.map +1 -1
  325. package/dist/service/cognito/user-pool/register-sim-cognito-user-pool-client.d.ts +22 -0
  326. package/dist/service/cognito/user-pool/register-sim-cognito-user-pool-client.d.ts.map +1 -0
  327. package/dist/service/cognito/user-pool/register-sim-cognito-user-pool-client.js +36 -0
  328. package/dist/service/cognito/user-pool/register-sim-cognito-user-pool-client.js.map +1 -0
  329. package/dist/service/cognito/user-pool/register-sim-cognito-user-pool.d.ts +25 -0
  330. package/dist/service/cognito/user-pool/register-sim-cognito-user-pool.d.ts.map +1 -0
  331. package/dist/service/cognito/user-pool/register-sim-cognito-user-pool.js +30 -0
  332. package/dist/service/cognito/user-pool/register-sim-cognito-user-pool.js.map +1 -0
  333. package/dist/service/cognito/user-pool/sim-cognito-registration.types.d.ts +40 -0
  334. package/dist/service/cognito/user-pool/sim-cognito-registration.types.d.ts.map +1 -0
  335. package/dist/service/cognito/user-pool/sim-cognito-registration.types.js +2 -0
  336. package/dist/service/cognito/user-pool/sim-cognito-registration.types.js.map +1 -0
  337. package/dist/service/cognito/user-pool/sim-cognito-registrations.d.ts +34 -0
  338. package/dist/service/cognito/user-pool/sim-cognito-registrations.d.ts.map +1 -0
  339. package/dist/service/cognito/user-pool/sim-cognito-registrations.js +28 -0
  340. package/dist/service/cognito/user-pool/sim-cognito-registrations.js.map +1 -0
  341. package/dist/service/cognito/user-pool/sim-cognito-user-pool-factory.d.ts +9 -0
  342. package/dist/service/cognito/user-pool/sim-cognito-user-pool-factory.d.ts.map +1 -1
  343. package/dist/service/cognito/user-pool/sim-cognito-user-pool-factory.js +3 -2
  344. package/dist/service/cognito/user-pool/sim-cognito-user-pool-factory.js.map +1 -1
  345. package/dist/service/cognito/user-pool/sim-cognito-user-pool-id.d.ts +9 -0
  346. package/dist/service/cognito/user-pool/sim-cognito-user-pool-id.d.ts.map +1 -1
  347. package/dist/service/cognito/user-pool/sim-cognito-user-pool-id.js +18 -0
  348. package/dist/service/cognito/user-pool/sim-cognito-user-pool-id.js.map +1 -1
  349. package/dist/service/cognito/user-pool/sim-cognito-user-pool-store.d.ts +8 -0
  350. package/dist/service/cognito/user-pool/sim-cognito-user-pool-store.d.ts.map +1 -1
  351. package/dist/service/cognito/user-pool/sim-cognito-user-pool-store.js +15 -1
  352. package/dist/service/cognito/user-pool/sim-cognito-user-pool-store.js.map +1 -1
  353. package/dist/service/cognito/user-pool/trigger/sim-aws-cognito-trigger-functions.d.ts +1 -1
  354. package/dist/service/cognito/user-pool/trigger/sim-aws-cognito-trigger-functions.d.ts.map +1 -1
  355. package/dist/service/cognito/user-pool/trigger/sim-aws-cognito-trigger-functions.js +26 -19
  356. package/dist/service/cognito/user-pool/trigger/sim-aws-cognito-trigger-functions.js.map +1 -1
  357. package/dist/service/elbv2/serve/sim-elbv2-invoke-authorizer.js +1 -1
  358. package/dist/service/elbv2/serve/sim-elbv2-invoke-authorizer.js.map +1 -1
  359. package/dist/service/eventbridge/delivery/sim-event-bridge-delivery-function.d.ts +5 -3
  360. package/dist/service/eventbridge/delivery/sim-event-bridge-delivery-function.d.ts.map +1 -1
  361. package/dist/service/eventbridge/delivery/sim-event-bridge-delivery-function.js +14 -9
  362. package/dist/service/eventbridge/delivery/sim-event-bridge-delivery-function.js.map +1 -1
  363. package/dist/service/eventbridge/target/sim-event-target-arn.d.ts +13 -6
  364. package/dist/service/eventbridge/target/sim-event-target-arn.d.ts.map +1 -1
  365. package/dist/service/eventbridge/target/sim-event-target-arn.js +17 -7
  366. package/dist/service/eventbridge/target/sim-event-target-arn.js.map +1 -1
  367. package/dist/service/iam/cfn/managed-policy/sim-cfn-iam-managed-policy-attacher.d.ts +40 -0
  368. package/dist/service/iam/cfn/managed-policy/sim-cfn-iam-managed-policy-attacher.d.ts.map +1 -0
  369. package/dist/service/iam/cfn/managed-policy/sim-cfn-iam-managed-policy-attacher.js +65 -0
  370. package/dist/service/iam/cfn/managed-policy/sim-cfn-iam-managed-policy-attacher.js.map +1 -0
  371. package/dist/service/iam/cfn/managed-policy/sim-cfn-iam-managed-policy-creator.d.ts +1 -0
  372. package/dist/service/iam/cfn/managed-policy/sim-cfn-iam-managed-policy-creator.d.ts.map +1 -1
  373. package/dist/service/iam/cfn/managed-policy/sim-cfn-iam-managed-policy-creator.js +5 -0
  374. package/dist/service/iam/cfn/managed-policy/sim-cfn-iam-managed-policy-creator.js.map +1 -1
  375. package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-creator.d.ts +11 -20
  376. package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-creator.d.ts.map +1 -1
  377. package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-creator.js +29 -61
  378. package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-creator.js.map +1 -1
  379. package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-properties-parser.d.ts +38 -0
  380. package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-properties-parser.d.ts.map +1 -0
  381. package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-properties-parser.js +79 -0
  382. package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-properties-parser.js.map +1 -0
  383. package/dist/service/iam/cfn/role/sim-cfn-iam-role-properties-parser.d.ts +2 -2
  384. package/dist/service/iam/cfn/role/sim-cfn-iam-role-properties-parser.d.ts.map +1 -1
  385. package/dist/service/iam/cfn/role/sim-cfn-iam-role-properties-parser.js +4 -2
  386. package/dist/service/iam/cfn/role/sim-cfn-iam-role-properties-parser.js.map +1 -1
  387. package/dist/service/iam/cfn/sim-cfn-iam-policies-parser.d.ts +35 -0
  388. package/dist/service/iam/cfn/sim-cfn-iam-policies-parser.d.ts.map +1 -0
  389. package/dist/service/iam/cfn/{role/sim-cfn-iam-role-policies-parser.js → sim-cfn-iam-policies-parser.js} +17 -12
  390. package/dist/service/iam/cfn/sim-cfn-iam-policies-parser.js.map +1 -0
  391. package/dist/service/iam/cfn/sim-cfn-iam-resource-deleter.d.ts +11 -0
  392. package/dist/service/iam/cfn/sim-cfn-iam-resource-deleter.d.ts.map +1 -1
  393. package/dist/service/iam/cfn/sim-cfn-iam-resource-deleter.js +25 -0
  394. package/dist/service/iam/cfn/sim-cfn-iam-resource-deleter.js.map +1 -1
  395. package/dist/service/iam/cfn/sim-cfn-iam-resource-factory.d.ts +1 -0
  396. package/dist/service/iam/cfn/sim-cfn-iam-resource-factory.d.ts.map +1 -1
  397. package/dist/service/iam/cfn/sim-cfn-iam-resource-factory.js +6 -0
  398. package/dist/service/iam/cfn/sim-cfn-iam-resource-factory.js.map +1 -1
  399. package/dist/service/iam/cfn/user/sim-cfn-iam-user-creator.d.ts +28 -0
  400. package/dist/service/iam/cfn/user/sim-cfn-iam-user-creator.d.ts.map +1 -0
  401. package/dist/service/iam/cfn/user/sim-cfn-iam-user-creator.js +67 -0
  402. package/dist/service/iam/cfn/user/sim-cfn-iam-user-creator.js.map +1 -0
  403. package/dist/service/iam/cfn/user/sim-cfn-iam-user-deleter.d.ts +26 -0
  404. package/dist/service/iam/cfn/user/sim-cfn-iam-user-deleter.d.ts.map +1 -0
  405. package/dist/service/iam/cfn/user/sim-cfn-iam-user-deleter.js +29 -0
  406. package/dist/service/iam/cfn/user/sim-cfn-iam-user-deleter.js.map +1 -0
  407. package/dist/service/iam/cfn/user/sim-cfn-iam-user-properties-parser.d.ts +38 -0
  408. package/dist/service/iam/cfn/user/sim-cfn-iam-user-properties-parser.d.ts.map +1 -0
  409. package/dist/service/iam/cfn/user/sim-cfn-iam-user-properties-parser.js +80 -0
  410. package/dist/service/iam/cfn/user/sim-cfn-iam-user-properties-parser.js.map +1 -0
  411. package/dist/service/iam/command/sim-iam-command.types.d.ts +3 -0
  412. package/dist/service/iam/command/sim-iam-command.types.d.ts.map +1 -1
  413. package/dist/service/iam/command/user/attach-user-policy/attach-user-policy.command.d.ts +9 -0
  414. package/dist/service/iam/command/user/attach-user-policy/attach-user-policy.command.d.ts.map +1 -0
  415. package/dist/service/iam/command/user/attach-user-policy/attach-user-policy.command.js +2 -0
  416. package/dist/service/iam/command/user/attach-user-policy/attach-user-policy.command.js.map +1 -0
  417. package/dist/service/iam/command/user/attach-user-policy/attach-user-policy.handler.d.ts +30 -0
  418. package/dist/service/iam/command/user/attach-user-policy/attach-user-policy.handler.d.ts.map +1 -0
  419. package/dist/service/iam/command/user/attach-user-policy/attach-user-policy.handler.js +44 -0
  420. package/dist/service/iam/command/user/attach-user-policy/attach-user-policy.handler.js.map +1 -0
  421. package/dist/service/iam/command/user/create-login-profile/create-login-profile.command.d.ts +16 -0
  422. package/dist/service/iam/command/user/create-login-profile/create-login-profile.command.d.ts.map +1 -0
  423. package/dist/service/iam/command/user/create-login-profile/create-login-profile.command.js +2 -0
  424. package/dist/service/iam/command/user/create-login-profile/create-login-profile.command.js.map +1 -0
  425. package/dist/service/iam/command/user/create-login-profile/create-login-profile.handler.d.ts +32 -0
  426. package/dist/service/iam/command/user/create-login-profile/create-login-profile.handler.d.ts.map +1 -0
  427. package/dist/service/iam/command/user/create-login-profile/create-login-profile.handler.js +59 -0
  428. package/dist/service/iam/command/user/create-login-profile/create-login-profile.handler.js.map +1 -0
  429. package/dist/service/iam/command/user/create-user/create-user-record-factory.d.ts.map +1 -1
  430. package/dist/service/iam/command/user/create-user/create-user-record-factory.js +1 -0
  431. package/dist/service/iam/command/user/create-user/create-user-record-factory.js.map +1 -1
  432. package/dist/service/iam/command/user/delete-user/delete-user.command.d.ts +19 -0
  433. package/dist/service/iam/command/user/delete-user/delete-user.command.d.ts.map +1 -0
  434. package/dist/service/iam/command/user/delete-user/delete-user.command.js +2 -0
  435. package/dist/service/iam/command/user/delete-user/delete-user.command.js.map +1 -0
  436. package/dist/service/iam/command/user/delete-user/delete-user.handler.d.ts +34 -0
  437. package/dist/service/iam/command/user/delete-user/delete-user.handler.d.ts.map +1 -0
  438. package/dist/service/iam/command/user/delete-user/delete-user.handler.js +51 -0
  439. package/dist/service/iam/command/user/delete-user/delete-user.handler.js.map +1 -0
  440. package/dist/service/iam/command/user/sim-iam-user-command-handlers.d.ts +15 -0
  441. package/dist/service/iam/command/user/sim-iam-user-command-handlers.d.ts.map +1 -1
  442. package/dist/service/iam/command/user/sim-iam-user-command-handlers.js +36 -0
  443. package/dist/service/iam/command/user/sim-iam-user-command-handlers.js.map +1 -1
  444. package/dist/service/iam/sdk/sim-iam-sdk-command-router.d.ts.map +1 -1
  445. package/dist/service/iam/sdk/sim-iam-sdk-command-router.js +12 -0
  446. package/dist/service/iam/sdk/sim-iam-sdk-command-router.js.map +1 -1
  447. package/dist/service/iam/sim-iam.d.ts +12 -0
  448. package/dist/service/iam/sim-iam.d.ts.map +1 -1
  449. package/dist/service/iam/sim-iam.js +18 -0
  450. package/dist/service/iam/sim-iam.js.map +1 -1
  451. package/dist/service/iam/user/sim-iam-user-login-profile.d.ts +14 -0
  452. package/dist/service/iam/user/sim-iam-user-login-profile.d.ts.map +1 -0
  453. package/dist/service/iam/user/sim-iam-user-login-profile.js +2 -0
  454. package/dist/service/iam/user/sim-iam-user-login-profile.js.map +1 -0
  455. package/dist/service/iam/user/sim-iam-user.d.ts +8 -0
  456. package/dist/service/iam/user/sim-iam-user.d.ts.map +1 -1
  457. package/dist/service/lambda/cfn/alias/sim-cfn-lambda-alias-creator.d.ts +30 -0
  458. package/dist/service/lambda/cfn/alias/sim-cfn-lambda-alias-creator.d.ts.map +1 -0
  459. package/dist/service/lambda/cfn/alias/sim-cfn-lambda-alias-creator.js +41 -0
  460. package/dist/service/lambda/cfn/alias/sim-cfn-lambda-alias-creator.js.map +1 -0
  461. package/dist/service/lambda/cfn/function/sim-cfn-lambda-code-input.js +1 -1
  462. package/dist/service/lambda/cfn/function/sim-cfn-lambda-code-input.js.map +1 -1
  463. package/dist/service/lambda/cfn/function/sim-cfn-lambda-target-function.d.ts +12 -1
  464. package/dist/service/lambda/cfn/function/sim-cfn-lambda-target-function.d.ts.map +1 -1
  465. package/dist/service/lambda/cfn/function/sim-cfn-lambda-target-function.js +15 -3
  466. package/dist/service/lambda/cfn/function/sim-cfn-lambda-target-function.js.map +1 -1
  467. package/dist/service/lambda/cfn/permission/sim-cfn-lambda-permission-creator.d.ts +6 -1
  468. package/dist/service/lambda/cfn/permission/sim-cfn-lambda-permission-creator.d.ts.map +1 -1
  469. package/dist/service/lambda/cfn/permission/sim-cfn-lambda-permission-creator.js +11 -5
  470. package/dist/service/lambda/cfn/permission/sim-cfn-lambda-permission-creator.js.map +1 -1
  471. package/dist/service/lambda/cfn/permission/sim-cfn-lambda-permission-revoker.d.ts +12 -0
  472. package/dist/service/lambda/cfn/permission/sim-cfn-lambda-permission-revoker.d.ts.map +1 -0
  473. package/dist/service/lambda/cfn/permission/sim-cfn-lambda-permission-revoker.js +22 -0
  474. package/dist/service/lambda/cfn/permission/sim-cfn-lambda-permission-revoker.js.map +1 -0
  475. package/dist/service/lambda/cfn/sim-cfn-lambda-created-resource.d.ts +10 -0
  476. package/dist/service/lambda/cfn/sim-cfn-lambda-created-resource.d.ts.map +1 -0
  477. package/dist/service/lambda/cfn/sim-cfn-lambda-created-resource.js +14 -0
  478. package/dist/service/lambda/cfn/sim-cfn-lambda-created-resource.js.map +1 -0
  479. package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.d.ts +2 -6
  480. package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.d.ts.map +1 -1
  481. package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.js +24 -19
  482. package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.js.map +1 -1
  483. package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.d.ts +2 -0
  484. package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.d.ts.map +1 -1
  485. package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.js +12 -0
  486. package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.js.map +1 -1
  487. package/dist/service/lambda/cfn/version/sim-cfn-lambda-version-creator.d.ts +31 -0
  488. package/dist/service/lambda/cfn/version/sim-cfn-lambda-version-creator.d.ts.map +1 -0
  489. package/dist/service/lambda/cfn/version/sim-cfn-lambda-version-creator.js +40 -0
  490. package/dist/service/lambda/cfn/version/sim-cfn-lambda-version-creator.js.map +1 -0
  491. package/dist/service/lambda/command/add-permission/add-permission.command.d.ts +1 -0
  492. package/dist/service/lambda/command/add-permission/add-permission.command.d.ts.map +1 -1
  493. package/dist/service/lambda/command/add-permission/add-permission.handler.d.ts +8 -1
  494. package/dist/service/lambda/command/add-permission/add-permission.handler.d.ts.map +1 -1
  495. package/dist/service/lambda/command/add-permission/add-permission.handler.js +13 -6
  496. package/dist/service/lambda/command/add-permission/add-permission.handler.js.map +1 -1
  497. package/dist/service/lambda/command/alias/alias-input.d.ts +21 -0
  498. package/dist/service/lambda/command/alias/alias-input.d.ts.map +1 -0
  499. package/dist/service/lambda/command/alias/alias-input.js +30 -0
  500. package/dist/service/lambda/command/alias/alias-input.js.map +1 -0
  501. package/dist/service/lambda/command/alias/sim-lambda-alias-commands.d.ts +52 -0
  502. package/dist/service/lambda/command/alias/sim-lambda-alias-commands.d.ts.map +1 -0
  503. package/dist/service/lambda/command/alias/sim-lambda-alias-commands.js +49 -0
  504. package/dist/service/lambda/command/alias/sim-lambda-alias-commands.js.map +1 -0
  505. package/dist/service/lambda/command/authorize/sim-lambda-resource-policies.d.ts +9 -7
  506. package/dist/service/lambda/command/authorize/sim-lambda-resource-policies.d.ts.map +1 -1
  507. package/dist/service/lambda/command/authorize/sim-lambda-resource-policies.js +11 -9
  508. package/dist/service/lambda/command/authorize/sim-lambda-resource-policies.js.map +1 -1
  509. package/dist/service/lambda/command/authorize/sim-lambda-service-invoke-authorizer.d.ts +10 -2
  510. package/dist/service/lambda/command/authorize/sim-lambda-service-invoke-authorizer.d.ts.map +1 -1
  511. package/dist/service/lambda/command/authorize/sim-lambda-service-invoke-authorizer.js +2 -2
  512. package/dist/service/lambda/command/authorize/sim-lambda-service-invoke-authorizer.js.map +1 -1
  513. package/dist/service/lambda/command/create-alias/create-alias.command.d.ts +31 -0
  514. package/dist/service/lambda/command/create-alias/create-alias.command.d.ts.map +1 -0
  515. package/dist/service/lambda/command/create-alias/create-alias.command.js +5 -0
  516. package/dist/service/lambda/command/create-alias/create-alias.command.js.map +1 -0
  517. package/dist/service/lambda/command/create-alias/create-alias.handler.d.ts +35 -0
  518. package/dist/service/lambda/command/create-alias/create-alias.handler.d.ts.map +1 -0
  519. package/dist/service/lambda/command/create-alias/create-alias.handler.js +52 -0
  520. package/dist/service/lambda/command/create-alias/create-alias.handler.js.map +1 -0
  521. package/dist/service/lambda/command/create-function/create-function.command.d.ts +1 -1
  522. package/dist/service/lambda/command/create-function/create-function.command.d.ts.map +1 -1
  523. package/dist/service/lambda/command/create-function/create-function.handler.d.ts.map +1 -1
  524. package/dist/service/lambda/command/create-function/create-function.handler.js +2 -1
  525. package/dist/service/lambda/command/create-function/create-function.handler.js.map +1 -1
  526. package/dist/service/lambda/command/delete-alias/delete-alias.command.d.ts +24 -0
  527. package/dist/service/lambda/command/delete-alias/delete-alias.command.d.ts.map +1 -0
  528. package/dist/service/lambda/command/delete-alias/delete-alias.command.js +5 -0
  529. package/dist/service/lambda/command/delete-alias/delete-alias.command.js.map +1 -0
  530. package/dist/service/lambda/command/delete-alias/delete-alias.handler.d.ts +37 -0
  531. package/dist/service/lambda/command/delete-alias/delete-alias.handler.d.ts.map +1 -0
  532. package/dist/service/lambda/command/delete-alias/delete-alias.handler.js +44 -0
  533. package/dist/service/lambda/command/delete-alias/delete-alias.handler.js.map +1 -0
  534. package/dist/service/lambda/command/delete-function/delete-function.handler.d.ts +6 -2
  535. package/dist/service/lambda/command/delete-function/delete-function.handler.d.ts.map +1 -1
  536. package/dist/service/lambda/command/delete-function/delete-function.handler.js +7 -3
  537. package/dist/service/lambda/command/delete-function/delete-function.handler.js.map +1 -1
  538. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.d.ts +8 -0
  539. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.d.ts.map +1 -1
  540. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.js +11 -2
  541. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.js.map +1 -1
  542. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping.handler.d.ts.map +1 -1
  543. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping.handler.js +13 -6
  544. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping.handler.js.map +1 -1
  545. package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts +3 -1
  546. package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts.map +1 -1
  547. package/dist/service/lambda/command/function/sim-lambda-function-commands.js +1 -1
  548. package/dist/service/lambda/command/function/sim-lambda-function-commands.js.map +1 -1
  549. package/dist/service/lambda/command/get-alias/get-alias.command.d.ts +25 -0
  550. package/dist/service/lambda/command/get-alias/get-alias.command.d.ts.map +1 -0
  551. package/dist/service/lambda/command/get-alias/get-alias.command.js +5 -0
  552. package/dist/service/lambda/command/get-alias/get-alias.command.js.map +1 -0
  553. package/dist/service/lambda/command/get-alias/get-alias.handler.d.ts +34 -0
  554. package/dist/service/lambda/command/get-alias/get-alias.handler.d.ts.map +1 -0
  555. package/dist/service/lambda/command/get-alias/get-alias.handler.js +38 -0
  556. package/dist/service/lambda/command/get-alias/get-alias.handler.js.map +1 -0
  557. package/dist/service/lambda/command/get-function/get-function.command.d.ts +2 -1
  558. package/dist/service/lambda/command/get-function/get-function.command.d.ts.map +1 -1
  559. package/dist/service/lambda/command/get-function/get-function.handler.d.ts +6 -2
  560. package/dist/service/lambda/command/get-function/get-function.handler.d.ts.map +1 -1
  561. package/dist/service/lambda/command/get-function/get-function.handler.js +13 -6
  562. package/dist/service/lambda/command/get-function/get-function.handler.js.map +1 -1
  563. package/dist/service/lambda/command/get-policy/get-policy.command.d.ts +1 -0
  564. package/dist/service/lambda/command/get-policy/get-policy.command.d.ts.map +1 -1
  565. package/dist/service/lambda/command/get-policy/get-policy.handler.d.ts +8 -3
  566. package/dist/service/lambda/command/get-policy/get-policy.handler.d.ts.map +1 -1
  567. package/dist/service/lambda/command/get-policy/get-policy.handler.js +11 -6
  568. package/dist/service/lambda/command/get-policy/get-policy.handler.js.map +1 -1
  569. package/dist/service/lambda/command/invoke/invoke-authorizer.d.ts +11 -8
  570. package/dist/service/lambda/command/invoke/invoke-authorizer.d.ts.map +1 -1
  571. package/dist/service/lambda/command/invoke/invoke-authorizer.js +11 -8
  572. package/dist/service/lambda/command/invoke/invoke-authorizer.js.map +1 -1
  573. package/dist/service/lambda/command/invoke/invoke-dispatcher.d.ts +3 -0
  574. package/dist/service/lambda/command/invoke/invoke-dispatcher.d.ts.map +1 -1
  575. package/dist/service/lambda/command/invoke/invoke-dispatcher.js +5 -2
  576. package/dist/service/lambda/command/invoke/invoke-dispatcher.js.map +1 -1
  577. package/dist/service/lambda/command/invoke/invoke.handler.d.ts +9 -2
  578. package/dist/service/lambda/command/invoke/invoke.handler.d.ts.map +1 -1
  579. package/dist/service/lambda/command/invoke/invoke.handler.js +20 -10
  580. package/dist/service/lambda/command/invoke/invoke.handler.js.map +1 -1
  581. package/dist/service/lambda/command/list-aliases/list-aliases.command.d.ts +30 -0
  582. package/dist/service/lambda/command/list-aliases/list-aliases.command.d.ts.map +1 -0
  583. package/dist/service/lambda/command/list-aliases/list-aliases.command.js +5 -0
  584. package/dist/service/lambda/command/list-aliases/list-aliases.command.js.map +1 -0
  585. package/dist/service/lambda/command/list-aliases/list-aliases.handler.d.ts +35 -0
  586. package/dist/service/lambda/command/list-aliases/list-aliases.handler.d.ts.map +1 -0
  587. package/dist/service/lambda/command/list-aliases/list-aliases.handler.js +44 -0
  588. package/dist/service/lambda/command/list-aliases/list-aliases.handler.js.map +1 -0
  589. package/dist/service/lambda/command/list-versions-by-function/list-versions-by-function.command.d.ts +28 -0
  590. package/dist/service/lambda/command/list-versions-by-function/list-versions-by-function.command.d.ts.map +1 -0
  591. package/dist/service/lambda/command/list-versions-by-function/list-versions-by-function.command.js +5 -0
  592. package/dist/service/lambda/command/list-versions-by-function/list-versions-by-function.command.js.map +1 -0
  593. package/dist/service/lambda/command/list-versions-by-function/list-versions-by-function.handler.d.ts +35 -0
  594. package/dist/service/lambda/command/list-versions-by-function/list-versions-by-function.handler.d.ts.map +1 -0
  595. package/dist/service/lambda/command/list-versions-by-function/list-versions-by-function.handler.js +43 -0
  596. package/dist/service/lambda/command/list-versions-by-function/list-versions-by-function.handler.js.map +1 -0
  597. package/dist/service/lambda/command/permission/sim-lambda-permission-commands.d.ts +8 -3
  598. package/dist/service/lambda/command/permission/sim-lambda-permission-commands.d.ts.map +1 -1
  599. package/dist/service/lambda/command/permission/sim-lambda-permission-commands.js +6 -3
  600. package/dist/service/lambda/command/permission/sim-lambda-permission-commands.js.map +1 -1
  601. package/dist/service/lambda/command/publish-version/publish-version.command.d.ts +34 -0
  602. package/dist/service/lambda/command/publish-version/publish-version.command.d.ts.map +1 -0
  603. package/dist/service/lambda/command/publish-version/publish-version.command.js +5 -0
  604. package/dist/service/lambda/command/publish-version/publish-version.command.js.map +1 -0
  605. package/dist/service/lambda/command/publish-version/publish-version.handler.d.ts +37 -0
  606. package/dist/service/lambda/command/publish-version/publish-version.handler.d.ts.map +1 -0
  607. package/dist/service/lambda/command/publish-version/publish-version.handler.js +42 -0
  608. package/dist/service/lambda/command/publish-version/publish-version.handler.js.map +1 -0
  609. package/dist/service/lambda/command/remove-permission/remove-permission.command.d.ts +1 -0
  610. package/dist/service/lambda/command/remove-permission/remove-permission.command.d.ts.map +1 -1
  611. package/dist/service/lambda/command/remove-permission/remove-permission.handler.d.ts +8 -1
  612. package/dist/service/lambda/command/remove-permission/remove-permission.handler.d.ts.map +1 -1
  613. package/dist/service/lambda/command/remove-permission/remove-permission.handler.js +12 -5
  614. package/dist/service/lambda/command/remove-permission/remove-permission.handler.js.map +1 -1
  615. package/dist/service/lambda/command/sim-lambda-command.types.d.ts +7 -0
  616. package/dist/service/lambda/command/sim-lambda-command.types.d.ts.map +1 -1
  617. package/dist/service/lambda/command/update-alias/update-alias.command.d.ts +31 -0
  618. package/dist/service/lambda/command/update-alias/update-alias.command.d.ts.map +1 -0
  619. package/dist/service/lambda/command/update-alias/update-alias.command.js +5 -0
  620. package/dist/service/lambda/command/update-alias/update-alias.command.js.map +1 -0
  621. package/dist/service/lambda/command/update-alias/update-alias.handler.d.ts +35 -0
  622. package/dist/service/lambda/command/update-alias/update-alias.handler.d.ts.map +1 -0
  623. package/dist/service/lambda/command/update-alias/update-alias.handler.js +48 -0
  624. package/dist/service/lambda/command/update-alias/update-alias.handler.js.map +1 -0
  625. package/dist/service/lambda/command/version/sim-lambda-version-commands.d.ts +37 -0
  626. package/dist/service/lambda/command/version/sim-lambda-version-commands.d.ts.map +1 -0
  627. package/dist/service/lambda/command/version/sim-lambda-version-commands.js +28 -0
  628. package/dist/service/lambda/command/version/sim-lambda-version-commands.js.map +1 -0
  629. package/dist/service/lambda/command/version/version-authorizer.d.ts +29 -0
  630. package/dist/service/lambda/command/version/version-authorizer.d.ts.map +1 -0
  631. package/dist/service/lambda/command/version/version-authorizer.js +39 -0
  632. package/dist/service/lambda/command/version/version-authorizer.js.map +1 -0
  633. package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-event-source-poller.d.ts.map +1 -1
  634. package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-event-source-poller.js +2 -1
  635. package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-event-source-poller.js.map +1 -1
  636. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-function.d.ts +13 -0
  637. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-function.d.ts.map +1 -0
  638. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-function.js +13 -0
  639. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-function.js.map +1 -0
  640. package/dist/service/lambda/event-source/poll/sim-lambda-sqs-event-source-consumer.d.ts.map +1 -1
  641. package/dist/service/lambda/event-source/poll/sim-lambda-sqs-event-source-consumer.js +2 -1
  642. package/dist/service/lambda/event-source/poll/sim-lambda-sqs-event-source-consumer.js.map +1 -1
  643. package/dist/service/lambda/event-source/sim-lambda-event-source-mapping.d.ts +9 -1
  644. package/dist/service/lambda/event-source/sim-lambda-event-source-mapping.d.ts.map +1 -1
  645. package/dist/service/lambda/event-source/sim-lambda-event-source-mapping.js +8 -0
  646. package/dist/service/lambda/event-source/sim-lambda-event-source-mapping.js.map +1 -1
  647. package/dist/service/lambda/function/code/sim-lambda-executable-code.d.ts +6 -5
  648. package/dist/service/lambda/function/code/sim-lambda-executable-code.d.ts.map +1 -1
  649. package/dist/service/lambda/function/code/sim-lambda-executable-code.js +7 -6
  650. package/dist/service/lambda/function/code/sim-lambda-executable-code.js.map +1 -1
  651. package/dist/service/lambda/function/invoke/sim-lambda-host-scope.d.ts +11 -3
  652. package/dist/service/lambda/function/invoke/sim-lambda-host-scope.d.ts.map +1 -1
  653. package/dist/service/lambda/function/invoke/sim-lambda-host-scope.js +13 -7
  654. package/dist/service/lambda/function/invoke/sim-lambda-host-scope.js.map +1 -1
  655. package/dist/service/lambda/function/invoke/sim-lambda-invoke-context-builder.d.ts +2 -0
  656. package/dist/service/lambda/function/invoke/sim-lambda-invoke-context-builder.d.ts.map +1 -1
  657. package/dist/service/lambda/function/invoke/sim-lambda-invoke-context-builder.js +2 -2
  658. package/dist/service/lambda/function/invoke/sim-lambda-invoke-context-builder.js.map +1 -1
  659. package/dist/service/lambda/function/invoke/sim-lambda-process-output.d.ts +104 -0
  660. package/dist/service/lambda/function/invoke/sim-lambda-process-output.d.ts.map +1 -0
  661. package/dist/service/lambda/function/invoke/sim-lambda-process-output.js +133 -0
  662. package/dist/service/lambda/function/invoke/sim-lambda-process-output.js.map +1 -0
  663. package/dist/service/lambda/function/logging/sim-lambda-function-logging.d.ts +10 -0
  664. package/dist/service/lambda/function/logging/sim-lambda-function-logging.d.ts.map +1 -1
  665. package/dist/service/lambda/function/logging/sim-lambda-function-logging.js +11 -0
  666. package/dist/service/lambda/function/logging/sim-lambda-function-logging.js.map +1 -1
  667. package/dist/service/lambda/function/policy/sim-lambda-policy-resource.d.ts +17 -0
  668. package/dist/service/lambda/function/policy/sim-lambda-policy-resource.d.ts.map +1 -0
  669. package/dist/service/lambda/function/policy/sim-lambda-policy-resource.js +2 -0
  670. package/dist/service/lambda/function/policy/sim-lambda-policy-resource.js.map +1 -0
  671. package/dist/service/lambda/function/sim-lambda-function-arn-parts.d.ts +3 -3
  672. package/dist/service/lambda/function/sim-lambda-function-configuration.d.ts +43 -0
  673. package/dist/service/lambda/function/sim-lambda-function-configuration.d.ts.map +1 -0
  674. package/dist/service/lambda/function/sim-lambda-function-configuration.js +22 -0
  675. package/dist/service/lambda/function/sim-lambda-function-configuration.js.map +1 -0
  676. package/dist/service/lambda/function/sim-lambda-function-name.d.ts +3 -1
  677. package/dist/service/lambda/function/sim-lambda-function-name.d.ts.map +1 -1
  678. package/dist/service/lambda/function/sim-lambda-function-name.js +3 -1
  679. package/dist/service/lambda/function/sim-lambda-function-name.js.map +1 -1
  680. package/dist/service/lambda/function/sim-lambda-function-reference.d.ts +36 -0
  681. package/dist/service/lambda/function/sim-lambda-function-reference.d.ts.map +1 -0
  682. package/dist/service/lambda/function/sim-lambda-function-reference.js +56 -0
  683. package/dist/service/lambda/function/sim-lambda-function-reference.js.map +1 -0
  684. package/dist/service/lambda/function/sim-lambda-function.d.ts +19 -32
  685. package/dist/service/lambda/function/sim-lambda-function.d.ts.map +1 -1
  686. package/dist/service/lambda/function/sim-lambda-function.js +33 -14
  687. package/dist/service/lambda/function/sim-lambda-function.js.map +1 -1
  688. package/dist/service/lambda/function/url/sim-lambda-function-lookup.d.ts +22 -3
  689. package/dist/service/lambda/function/url/sim-lambda-function-lookup.d.ts.map +1 -1
  690. package/dist/service/lambda/function/url/sim-lambda-function-lookup.js +24 -4
  691. package/dist/service/lambda/function/url/sim-lambda-function-lookup.js.map +1 -1
  692. package/dist/service/lambda/function/version/sim-lambda-function-alias-store.d.ts +55 -0
  693. package/dist/service/lambda/function/version/sim-lambda-function-alias-store.d.ts.map +1 -0
  694. package/dist/service/lambda/function/version/sim-lambda-function-alias-store.js +80 -0
  695. package/dist/service/lambda/function/version/sim-lambda-function-alias-store.js.map +1 -0
  696. package/dist/service/lambda/function/version/sim-lambda-function-alias.d.ts +60 -0
  697. package/dist/service/lambda/function/version/sim-lambda-function-alias.d.ts.map +1 -0
  698. package/dist/service/lambda/function/version/sim-lambda-function-alias.js +57 -0
  699. package/dist/service/lambda/function/version/sim-lambda-function-alias.js.map +1 -0
  700. package/dist/service/lambda/function/version/sim-lambda-function-target.d.ts +16 -0
  701. package/dist/service/lambda/function/version/sim-lambda-function-target.d.ts.map +1 -0
  702. package/dist/service/lambda/function/version/sim-lambda-function-target.js +2 -0
  703. package/dist/service/lambda/function/version/sim-lambda-function-target.js.map +1 -0
  704. package/dist/service/lambda/function/version/sim-lambda-function-version-store.d.ts +80 -0
  705. package/dist/service/lambda/function/version/sim-lambda-function-version-store.d.ts.map +1 -0
  706. package/dist/service/lambda/function/version/sim-lambda-function-version-store.js +114 -0
  707. package/dist/service/lambda/function/version/sim-lambda-function-version-store.js.map +1 -0
  708. package/dist/service/lambda/function/version/sim-lambda-function-versions.d.ts +61 -0
  709. package/dist/service/lambda/function/version/sim-lambda-function-versions.d.ts.map +1 -0
  710. package/dist/service/lambda/function/version/sim-lambda-function-versions.js +96 -0
  711. package/dist/service/lambda/function/version/sim-lambda-function-versions.js.map +1 -0
  712. package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.d.ts.map +1 -1
  713. package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.js +28 -0
  714. package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.js.map +1 -1
  715. package/dist/service/lambda/serve/api/sim-lambda-api-routes.d.ts +2 -1
  716. package/dist/service/lambda/serve/api/sim-lambda-api-routes.d.ts.map +1 -1
  717. package/dist/service/lambda/serve/api/sim-lambda-api-routes.js +2 -1
  718. package/dist/service/lambda/serve/api/sim-lambda-api-routes.js.map +1 -1
  719. package/dist/service/lambda/sim-lambda-commands.d.ts +8 -0
  720. package/dist/service/lambda/sim-lambda-commands.d.ts.map +1 -1
  721. package/dist/service/lambda/sim-lambda-commands.js +25 -0
  722. package/dist/service/lambda/sim-lambda-commands.js.map +1 -1
  723. package/dist/service/lambda/sim-lambda-inspection.d.ts +43 -0
  724. package/dist/service/lambda/sim-lambda-inspection.d.ts.map +1 -0
  725. package/dist/service/lambda/sim-lambda-inspection.js +50 -0
  726. package/dist/service/lambda/sim-lambda-inspection.js.map +1 -0
  727. package/dist/service/lambda/sim-lambda.d.ts +44 -80
  728. package/dist/service/lambda/sim-lambda.d.ts.map +1 -1
  729. package/dist/service/lambda/sim-lambda.js +55 -82
  730. package/dist/service/lambda/sim-lambda.js.map +1 -1
  731. package/dist/service/logs/subscription/lambda/sim-aws-logs-subscription-functions.d.ts.map +1 -1
  732. package/dist/service/logs/subscription/lambda/sim-aws-logs-subscription-functions.js +2 -2
  733. package/dist/service/logs/subscription/lambda/sim-aws-logs-subscription-functions.js.map +1 -1
  734. package/dist/service/logs/subscription/lambda/sim-logs-destination-permission.d.ts +7 -5
  735. package/dist/service/logs/subscription/lambda/sim-logs-destination-permission.d.ts.map +1 -1
  736. package/dist/service/logs/subscription/lambda/sim-logs-destination-permission.js +15 -9
  737. package/dist/service/logs/subscription/lambda/sim-logs-destination-permission.js.map +1 -1
  738. package/dist/service/logs/subscription/lambda/sim-logs-subscription-function-arn.d.ts +9 -0
  739. package/dist/service/logs/subscription/lambda/sim-logs-subscription-function-arn.d.ts.map +1 -1
  740. package/dist/service/logs/subscription/lambda/sim-logs-subscription-function-arn.js +11 -5
  741. package/dist/service/logs/subscription/lambda/sim-logs-subscription-function-arn.js.map +1 -1
  742. package/dist/service/s3/command/get-object/get-object-loader.d.ts +5 -3
  743. package/dist/service/s3/command/get-object/get-object-loader.d.ts.map +1 -1
  744. package/dist/service/s3/command/get-object/get-object-loader.js +19 -4
  745. package/dist/service/s3/command/get-object/get-object-loader.js.map +1 -1
  746. package/dist/service/s3/command/get-object/get-object.command.d.ts +13 -0
  747. package/dist/service/s3/command/get-object/get-object.command.d.ts.map +1 -1
  748. package/dist/service/s3/command/get-object/get-object.handler.d.ts +3 -0
  749. package/dist/service/s3/command/get-object/get-object.handler.d.ts.map +1 -1
  750. package/dist/service/s3/command/get-object/get-object.handler.js +4 -1
  751. package/dist/service/s3/command/get-object/get-object.handler.js.map +1 -1
  752. package/dist/service/s3/error/sim-s3.error.d.ts +13 -0
  753. package/dist/service/s3/error/sim-s3.error.d.ts.map +1 -1
  754. package/dist/service/s3/error/sim-s3.error.js +15 -0
  755. package/dist/service/s3/error/sim-s3.error.js.map +1 -1
  756. package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.d.ts +1 -1
  757. package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.d.ts.map +1 -1
  758. package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.js +23 -10
  759. package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.js.map +1 -1
  760. package/dist/service/s3/notification/destination/lambda/sim-s3-notification-function-arn.d.ts +8 -4
  761. package/dist/service/s3/notification/destination/lambda/sim-s3-notification-function-arn.d.ts.map +1 -1
  762. package/dist/service/s3/notification/destination/lambda/sim-s3-notification-function-arn.js +12 -12
  763. package/dist/service/s3/notification/destination/lambda/sim-s3-notification-function-arn.js.map +1 -1
  764. package/dist/service/s3/object/s3-object-range.d.ts +26 -0
  765. package/dist/service/s3/object/s3-object-range.d.ts.map +1 -0
  766. package/dist/service/s3/object/s3-object-range.js +89 -0
  767. package/dist/service/s3/object/s3-object-range.js.map +1 -0
  768. package/dist/service/s3/object/s3-object-response-headers.d.ts +7 -1
  769. package/dist/service/s3/object/s3-object-response-headers.d.ts.map +1 -1
  770. package/dist/service/s3/object/s3-object-response-headers.js +5 -1
  771. package/dist/service/s3/object/s3-object-response-headers.js.map +1 -1
  772. package/dist/service/s3/serve/api/sim-s3-api-input.d.ts +0 -14
  773. package/dist/service/s3/serve/api/sim-s3-api-input.d.ts.map +1 -1
  774. package/dist/service/s3/serve/api/sim-s3-api-input.js +0 -29
  775. package/dist/service/s3/serve/api/sim-s3-api-input.js.map +1 -1
  776. package/dist/service/s3/serve/api/sim-s3-api-object-input.d.ts +27 -0
  777. package/dist/service/s3/serve/api/sim-s3-api-object-input.d.ts.map +1 -0
  778. package/dist/service/s3/serve/api/sim-s3-api-object-input.js +47 -0
  779. package/dist/service/s3/serve/api/sim-s3-api-object-input.js.map +1 -0
  780. package/dist/service/s3/serve/api/sim-s3-api-object-output.d.ts +5 -0
  781. package/dist/service/s3/serve/api/sim-s3-api-object-output.d.ts.map +1 -1
  782. package/dist/service/s3/serve/api/sim-s3-api-object-output.js +8 -1
  783. package/dist/service/s3/serve/api/sim-s3-api-object-output.js.map +1 -1
  784. package/dist/service/s3/serve/api/sim-s3-api-object-routes.d.ts.map +1 -1
  785. package/dist/service/s3/serve/api/sim-s3-api-object-routes.js +2 -2
  786. package/dist/service/s3/serve/api/sim-s3-api-object-routes.js.map +1 -1
  787. package/dist/service/s3/serve/sim-s3-rest-object-reader.d.ts +5 -0
  788. package/dist/service/s3/serve/sim-s3-rest-object-reader.d.ts.map +1 -1
  789. package/dist/service/s3/serve/sim-s3-rest-object-reader.js +20 -3
  790. package/dist/service/s3/serve/sim-s3-rest-object-reader.js.map +1 -1
  791. package/dist/service/sns/delivery/lambda/sim-sns-delivery-function.d.ts +5 -4
  792. package/dist/service/sns/delivery/lambda/sim-sns-delivery-function.d.ts.map +1 -1
  793. package/dist/service/sns/delivery/lambda/sim-sns-delivery-function.js +16 -11
  794. package/dist/service/sns/delivery/lambda/sim-sns-delivery-function.js.map +1 -1
  795. package/dist/service/sns/subscription/sim-sns-function-endpoint-arn.d.ts +8 -4
  796. package/dist/service/sns/subscription/sim-sns-function-endpoint-arn.d.ts.map +1 -1
  797. package/dist/service/sns/subscription/sim-sns-function-endpoint-arn.js +11 -10
  798. package/dist/service/sns/subscription/sim-sns-function-endpoint-arn.js.map +1 -1
  799. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-dynamic-reference-resolver.d.ts +0 -7
  800. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-dynamic-reference-resolver.d.ts.map +1 -1
  801. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-dynamic-reference-resolver.js +7 -41
  802. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-dynamic-reference-resolver.js.map +1 -1
  803. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-reference-body.d.ts +14 -0
  804. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-reference-body.d.ts.map +1 -0
  805. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-reference-body.js +26 -0
  806. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-reference-body.js.map +1 -0
  807. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-reference-stand-in.d.ts +11 -0
  808. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-reference-stand-in.d.ts.map +1 -0
  809. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-reference-stand-in.js +16 -0
  810. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-reference-stand-in.js.map +1 -0
  811. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-dynamic-reference-resolver.d.ts +40 -0
  812. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-dynamic-reference-resolver.d.ts.map +1 -0
  813. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-dynamic-reference-resolver.js +67 -0
  814. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-dynamic-reference-resolver.js.map +1 -0
  815. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-reference-properties.d.ts +8 -0
  816. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-reference-properties.d.ts.map +1 -0
  817. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-reference-properties.js +61 -0
  818. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-reference-properties.js.map +1 -0
  819. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-refusals.d.ts +19 -0
  820. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-refusals.d.ts.map +1 -0
  821. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-refusals.js +37 -0
  822. package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-refusals.js.map +1 -0
  823. package/dist/service/ssm/sim-ssm.d.ts +5 -0
  824. package/dist/service/ssm/sim-ssm.d.ts.map +1 -1
  825. package/dist/service/ssm/sim-ssm.js +7 -0
  826. package/dist/service/ssm/sim-ssm.js.map +1 -1
  827. package/package.json +4 -2
  828. package/dist/service/iam/cfn/role/sim-cfn-iam-role-policies-parser.d.ts +0 -25
  829. package/dist/service/iam/cfn/role/sim-cfn-iam-role-policies-parser.d.ts.map +0 -1
  830. package/dist/service/iam/cfn/role/sim-cfn-iam-role-policies-parser.js.map +0 -1
package/README.md CHANGED
@@ -46,6 +46,7 @@ npm i -D @kensio/yulin
46
46
 
47
47
  ## Feature specific docs
48
48
 
49
+ - [AI skill](./docs/ai-skill "Yulin AI skill docs")
49
50
  - [The AWS CLI](./docs/cli "The AWS CLI against simulated AWS docs")
50
51
  - [AWS SDK interception](./docs/sdk "Simulated AWS SDK docs")
51
52
  - [Serving on localhost](./docs/serve "Serving simulated AWS on localhost docs")
@@ -0,0 +1,55 @@
1
+ import type { SimAws } from "../../../service/aws/sim-aws.js";
2
+ interface SimAwsLocalLocationProperties {
3
+ readonly simAws: SimAws;
4
+ /**
5
+ * Where the port this server took is read from, since a response is
6
+ * localised long after the server was built.
7
+ */
8
+ readonly port: () => string;
9
+ }
10
+ /**
11
+ * Puts a `Location` header naming a simulated hostname into the localhost form
12
+ * a browser can follow.
13
+ *
14
+ * A simulated service redirects to the hostname it would use against real AWS.
15
+ * A browser handed that hostname leaves the simulation and goes to the public
16
+ * internet. The localhost form is the address the same environment answers on,
17
+ * and it is what `srv.localUrl` gives a caller holding a simulated URL. Both
18
+ * ends of a redirect now agree.
19
+ *
20
+ * A hostname this simulation resolves is rewritten, and everything else is
21
+ * passed on as the service wrote it, including a redirect to a real address.
22
+ * The hostname is read the way an arriving request's is read. A redirect to
23
+ * `www.example.com` and a request for `www.example.com` reach the same place.
24
+ *
25
+ * The scheme goes with the host, because the local form is served over HTTP.
26
+ *
27
+ * Only the local server does this. `SimAwsHttp` answers in the process that
28
+ * built the environment and reaches every simulated hostname by its own name.
29
+ * A test using it sees the hostname the service issued.
30
+ */
31
+ export declare class SimAwsLocalLocation {
32
+ private readonly simAws;
33
+ private readonly port;
34
+ constructor(properties: SimAwsLocalLocationProperties);
35
+ /**
36
+ * Return the response a client should get, with its `Location` header
37
+ * localised where that header names a simulated hostname.
38
+ */
39
+ localise(response: Response): Response;
40
+ /**
41
+ * The local address a `Location` header points at, where the simulation
42
+ * serves what it named.
43
+ *
44
+ * A relative location is left alone. It is already relative to a hostname
45
+ * the client reached this server by.
46
+ */
47
+ private localUrl;
48
+ /**
49
+ * Whether simulated Route53 resolves a hostname to a service of this
50
+ * simulation.
51
+ */
52
+ private resolves;
53
+ }
54
+ export {};
55
+ //# sourceMappingURL=sim-aws-local-location.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-aws-local-location.d.ts","sourceRoot":"","sources":["../../../../src/serve/http/local-server/sim-aws-local-location.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAG9D,UAAU,6BAA6B;IACrC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,MAAM,CAAC;CAC7B;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAe;IAEpC,YAAY,UAAU,EAAE,6BAA6B,EAGpD;IAED;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,QAAQ,GAAG,QAAQ,CAqBrC;IAED;;;;;;OAMG;IACH,OAAO,CAAC,QAAQ;IAmBhB;;;OAGG;IACH,OAAO,CAAC,QAAQ;CAGjB"}
@@ -0,0 +1,80 @@
1
+ import { SimAwsLocalUrl } from "../url/sim-aws-local-url.js";
2
+ /**
3
+ * Puts a `Location` header naming a simulated hostname into the localhost form
4
+ * a browser can follow.
5
+ *
6
+ * A simulated service redirects to the hostname it would use against real AWS.
7
+ * A browser handed that hostname leaves the simulation and goes to the public
8
+ * internet. The localhost form is the address the same environment answers on,
9
+ * and it is what `srv.localUrl` gives a caller holding a simulated URL. Both
10
+ * ends of a redirect now agree.
11
+ *
12
+ * A hostname this simulation resolves is rewritten, and everything else is
13
+ * passed on as the service wrote it, including a redirect to a real address.
14
+ * The hostname is read the way an arriving request's is read. A redirect to
15
+ * `www.example.com` and a request for `www.example.com` reach the same place.
16
+ *
17
+ * The scheme goes with the host, because the local form is served over HTTP.
18
+ *
19
+ * Only the local server does this. `SimAwsHttp` answers in the process that
20
+ * built the environment and reaches every simulated hostname by its own name.
21
+ * A test using it sees the hostname the service issued.
22
+ */
23
+ export class SimAwsLocalLocation {
24
+ simAws;
25
+ port;
26
+ constructor(properties) {
27
+ this.simAws = properties.simAws;
28
+ this.port = properties.port;
29
+ }
30
+ /**
31
+ * Return the response a client should get, with its `Location` header
32
+ * localised where that header names a simulated hostname.
33
+ */
34
+ localise(response) {
35
+ const location = response.headers.get("location");
36
+ if (location === null) {
37
+ return response;
38
+ }
39
+ const localUrl = this.localUrl(location);
40
+ if (localUrl === undefined) {
41
+ return response;
42
+ }
43
+ const headers = new Headers(response.headers);
44
+ headers.set("location", localUrl.href);
45
+ return new Response(response.body, {
46
+ status: response.status,
47
+ statusText: response.statusText,
48
+ headers,
49
+ });
50
+ }
51
+ /**
52
+ * The local address a `Location` header points at, where the simulation
53
+ * serves what it named.
54
+ *
55
+ * A relative location is left alone. It is already relative to a hostname
56
+ * the client reached this server by.
57
+ */
58
+ localUrl(location) {
59
+ const url = URL.parse(location);
60
+ if (url === null) {
61
+ return undefined;
62
+ }
63
+ const localUrl = new SimAwsLocalUrl({
64
+ input: url,
65
+ port: this.port(),
66
+ }).toURL();
67
+ if (this.resolves(url.hostname) || this.resolves(localUrl.hostname)) {
68
+ return localUrl;
69
+ }
70
+ return undefined;
71
+ }
72
+ /**
73
+ * Whether simulated Route53 resolves a hostname to a service of this
74
+ * simulation.
75
+ */
76
+ resolves(hostname) {
77
+ return this.simAws.route53().resolveHttpHost(hostname) !== undefined;
78
+ }
79
+ }
80
+ //# sourceMappingURL=sim-aws-local-location.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-aws-local-location.js","sourceRoot":"","sources":["../../../../src/serve/http/local-server/sim-aws-local-location.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAY7D;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,OAAO,mBAAmB;IACb,MAAM,CAAS;IACf,IAAI,CAAe;IAEpC,YAAY,UAAyC;QACnD,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;QAChC,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;IAC9B,CAAC;IAED;;;OAGG;IACH,QAAQ,CAAC,QAAkB;QACzB,MAAM,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QAElD,IAAI,QAAQ,KAAK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+1,10 @@
1
1
  import type { IncomingMessage, ServerResponse } from "node:http";
2
2
  import type { SimAwsHttp } from "../sim-aws-http.js";
3
3
  import type { SimLiveReload } from "../live-reload/sim-live-reload.js";
4
+ import type { SimAwsLocalLocation } from "./sim-aws-local-location.js";
4
5
  interface SimAwsLocalRequestHandlerProperties {
5
6
  readonly simAwsHttp: SimAwsHttp;
7
+ readonly location: SimAwsLocalLocation;
6
8
  readonly liveReload?: SimLiveReload;
7
9
  }
8
10
  /**
@@ -17,9 +19,14 @@ interface SimAwsLocalRequestHandlerProperties {
17
19
  * interface is also the SDK interception path and the in-process test path, so
18
20
  * keeping the reload channel and the injected script out here means only a real
19
21
  * browser talking to the local server ever sees either of them.
22
+ *
23
+ * A `Location` header is localised out here for the same reason. Only a client
24
+ * that reached the simulation over a socket needs an address it can open
25
+ * another one to.
20
26
  */
21
27
  export declare class SimAwsLocalRequestHandler {
22
28
  private readonly simAwsHttp;
29
+ private readonly location;
23
30
  private readonly liveReload;
24
31
  private readonly nodeFetchHttpAdapter;
25
32
  constructor(properties: SimAwsLocalRequestHandlerProperties);
@@ -1 +1 @@
1
- {"version":3,"file":"sim-aws-local-request-handler.d.ts","sourceRoot":"","sources":["../../../../src/serve/http/local-server/sim-aws-local-request-handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAEvE,UAAU,mCAAmC;IAC3C,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAChC,QAAQ,CAAC,UAAU,CAAC,EAAE,aAAa,CAAC;CACrC;AAED;;;;;;;;;;;;GAYG;AACH,qBAAa,yBAAyB;IACpC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAa;IACxC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA4B;IACvD,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAA8B;IAEnE,YAAY,UAAU,EAAE,mCAAmC,EAI1D;IAED;;;OAGG;IACH,MAAM,CAAC,WAAW,EAAE,eAAe,EAAE,YAAY,EAAE,cAAc,GAAG,IAAI,CAUvE;YAEa,OAAO;YAcP,MAAM;IAWpB,OAAO,CAAC,gBAAgB;CAgBzB"}
1
+ {"version":3,"file":"sim-aws-local-request-handler.d.ts","sourceRoot":"","sources":["../../../../src/serve/http/local-server/sim-aws-local-request-handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAEvE,UAAU,mCAAmC;IAC3C,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAChC,QAAQ,CAAC,QAAQ,EAAE,mBAAmB,CAAC;IACvC,QAAQ,CAAC,UAAU,CAAC,EAAE,aAAa,CAAC;CACrC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,yBAAyB;IACpC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAa;IACxC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAsB;IAC/C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA4B;IACvD,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAA8B;IAEnE,YAAY,UAAU,EAAE,mCAAmC,EAK1D;IAED;;;OAGG;IACH,MAAM,CAAC,WAAW,EAAE,eAAe,EAAE,YAAY,EAAE,cAAc,GAAG,IAAI,CAUvE;YAEa,OAAO;YAcP,MAAM;IAapB,OAAO,CAAC,gBAAgB;CAgBzB"}
@@ -11,14 +11,20 @@ import { NodeFetchHttpAdapter } from "../node-fetch-http-adapter.js";
11
11
  * interface is also the SDK interception path and the in-process test path, so
12
12
  * keeping the reload channel and the injected script out here means only a real
13
13
  * browser talking to the local server ever sees either of them.
14
+ *
15
+ * A `Location` header is localised out here for the same reason. Only a client
16
+ * that reached the simulation over a socket needs an address it can open
17
+ * another one to.
14
18
  */
15
19
  export class SimAwsLocalRequestHandler {
16
20
  simAwsHttp;
21
+ location;
17
22
  liveReload;
18
23
  nodeFetchHttpAdapter = new NodeFetchHttpAdapter();
19
24
  constructor(properties) {
20
- const { simAwsHttp, liveReload } = properties;
25
+ const { simAwsHttp, location, liveReload } = properties;
21
26
  this.simAwsHttp = simAwsHttp;
27
+ this.location = location;
22
28
  this.liveReload = liveReload;
23
29
  }
24
30
  /**
@@ -41,10 +47,11 @@ export class SimAwsLocalRequestHandler {
41
47
  await this.nodeFetchHttpAdapter.sendFetchResponse(nodeResponse, await this.served(request, response));
42
48
  }
43
49
  async served(request, response) {
50
+ const located = this.location.localise(response);
44
51
  if (this.liveReload === undefined) {
45
- return response;
52
+ return located;
46
53
  }
47
- return this.liveReload.injectInto(request, response);
54
+ return this.liveReload.injectInto(request, located);
48
55
  }
49
56
  respondWithError(error, nodeResponse) {
50
57
  /* v8 ignore if */
@@ -1 +1 @@
1
- {"version":3,"file":"sim-aws-local-request-handler.js","sourceRoot":"","sources":["../../../../src/serve/http/local-server/sim-aws-local-request-handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AASrE;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,yBAAyB;IACnB,UAAU,CAAa;IACvB,UAAU,CAA4B;IACtC,oBAAoB,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAEnE,YAAY,UAA+C;QACzD,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC;QAC9C,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/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GAAG,GAAG,CAAC;YAC9B,YAAY,CAAC,SAAS,CAAC,cAAc,EAAE,2BAA2B,CAAC,CAAC;QACtE,CAAC;QAED,MAAM,OAAO,GACX,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,gCAAgC,CAAC;QAE5E,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAC5B,CAAC;CACF"}
1
+ {"version":3,"file":"sim-aws-local-request-handler.js","sourceRoot":"","sources":["../../../../src/serve/http/local-server/sim-aws-local-request-handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAWrE;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,OAAO,yBAAyB;IACnB,UAAU,CAAa;IACvB,QAAQ,CAAsB;IAC9B,UAAU,CAA4B;IACtC,oBAAoB,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAEnE,YAAY,UAA+C;QACzD,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC;QACxD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,WAA4B,EAAE,YAA4B;QAC/D,IAAI,IAAI,CAAC,UAAU,EAAE,gBAAgB,CAAC,WAAW,CAAC,KAAK,IAAI,EAAE,CAAC;YAC5D,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;YACtC,OAAO;QACT,CAAC;QAED,mDAAmD;QACnD,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;YAC/D,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;QAC7C,CA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;;;;;;;;;;;;;;;OAyBG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAQ3B;IAED;;;;;;;;;;;;;;;OAeG;IACH,aAAa,CAAC,OAAO,GAAE,uBAA4B,GAAG,MAAM,IAAI,CAI/D;IAED;;;;;;OAMG;IACH,MAAM,IAAI,IAAI,CAEb;IAED;;;;;;OAMG;IACH,WAAW,IAAI,IAAI,CAElB;IAED;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,GAAG,GAAG,CAGjC;CACF;AAED,UAAU,qBAAqB;IAC7B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED;;GAEG;AACH,wBAAsB,WAAW,CAC/B,UAAU,GAAE,qBAA0B,GACrC,OAAO,CAAC,iBAAiB,CAAC,CAQ5B"}
@@ -5,6 +5,7 @@ import { SimAwsHttp } from "../sim-aws-http.js";
5
5
  import { SimAwsLocalUrl } from "../url/sim-aws-local-url.js";
6
6
  import { NodeServerPortBinder } from "./node-server-port-binder.js";
7
7
  import { nodeServerPort } from "./node-server-port.js";
8
+ import { SimAwsLocalLocation } from "./sim-aws-local-location.js";
8
9
  import { SimAwsLocalRequestHandler } from "./sim-aws-local-request-handler.js";
9
10
  import { SimAwsDnsServer } from "../../dns/sim-aws-dns-server.js";
10
11
  import { SimLocalLiveReload } from "../live-reload/sim-local-live-reload.js";
@@ -27,6 +28,10 @@ export class SimAwsLocalServer {
27
28
  const channel = this.liveReload.channel();
28
29
  this.requestHandler = new SimAwsLocalRequestHandler({
29
30
  simAwsHttp: new SimAwsHttp({ simAws }),
31
+ location: new SimAwsLocalLocation({
32
+ simAws,
33
+ port: () => this.port,
34
+ }),
30
35
  ...(channel !== undefined && { liveReload: channel }),
31
36
  });
32
37
  this.dnsServer = new SimAwsDnsServer({ simAws });
@@ -1 +1 @@
1
- {"version":3,"file":"sim-aws-local-server.js","sourceRoot":"","sources":["../../../../src/serve/http/local-server/sim-aws-local-server.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAe,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EACL,aAAa,GAEd,MAAM,0CAA0C,CAAC;AAOlD;;;GAGG;AACH,MAAM,OAAO,iBAAiB;IACX,MAAM,CAAS;IACf,cAAc,CAA4B;IAC1C,MAAM,CAAS;IACf,UAAU,CAAuB;IACjC,SAAS,CAAkB;IAC3B,UAAU,CAAqB;IAEhD,YAAY,UAAU,GAAgC,EAAE;QACtD,MAAM,EAAE,MAAM,GAAG,IAAI,MAAM,EAAE,EAAE,UAAU,GAAG,KAAK,EAAE,GAAG,UAAU,CAAC;QACjE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,UAAU,GAAG,IAAI,kBAAkB,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,CAAC;QAClE,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC;QAC1C,IAAI,CAAC,cAAc,GAAG,IAAI,yBAAyB,CAAC;YAClD,UAAU,EAA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,EAAE,CAAC,CAAC;IAC7D,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC7B,CAAC"}
@@ -11,6 +11,15 @@ export declare class NodeFetchHttpAdapter {
11
11
  * Send a Fetch API Response through a Node HTTP response.
12
12
  */
13
13
  sendFetchResponse(nodeResponse: ServerResponse, response: Response): Promise<void>;
14
+ /**
15
+ * Convert response headers to the shape Node sends.
16
+ *
17
+ * `Headers.entries()` yields one entry per `Set-Cookie` header, and
18
+ * collecting them into an object keeps only the last. Node takes an array for
19
+ * a header sent more than once. A response establishing one cookie and
20
+ * clearing another reaches the client whole.
21
+ */
22
+ private outgoingHeaders;
14
23
  private nodeRequestHeaders;
15
24
  private nodeRequestBody;
16
25
  private nodeRequestDuplex;
@@ -1 +1 @@
1
- {"version":3,"file":"node-fetch-http-adapter.d.ts","sourceRoot":"","sources":["../../../src/serve/http/node-fetch-http-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAGjE;;GAEG;AACH,qBAAa,oBAAoB;IAC/B;;OAEG;IACH,yBAAyB,CAAC,WAAW,EAAE,eAAe,GAAG,OAAO,CAW/D;IAED;;OAEG;IACG,iBAAiB,CACrB,YAAY,EAAE,cAAc,EAC5B,QAAQ,EAAE,QAAQ,GACjB,OAAO,CAAC,IAAI,CAAC,CAaf;IAED,OAAO,CAAC,kBAAkB;IAsB1B,OAAO,CAAC,eAAe;IAUvB,OAAO,CAAC,iBAAiB;IAQzB,OAAO,CAAC,sBAAsB;CAG/B"}
1
+ {"version":3,"file":"node-fetch-http-adapter.d.ts","sourceRoot":"","sources":["../../../src/serve/http/node-fetch-http-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EAEf,cAAc,EACf,MAAM,WAAW,CAAC;AAGnB;;GAEG;AACH,qBAAa,oBAAoB;IAC/B;;OAEG;IACH,yBAAyB,CAAC,WAAW,EAAE,eAAe,GAAG,OAAO,CAW/D;IAED;;OAEG;IACG,iBAAiB,CACrB,YAAY,EAAE,cAAc,EAC5B,QAAQ,EAAE,QAAQ,GACjB,OAAO,CAAC,IAAI,CAAC,CAUf;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,eAAe;IAavB,OAAO,CAAC,kBAAkB;IAsB1B,OAAO,CAAC,eAAe;IAUvB,OAAO,CAAC,iBAAiB;IAQzB,OAAO,CAAC,sBAAsB;CAG/B"}
@@ -21,7 +21,7 @@ export class NodeFetchHttpAdapter {
21
21
  * Send a Fetch API Response through a Node HTTP response.
22
22
  */
23
23
  async sendFetchResponse(nodeResponse, response) {
24
- nodeResponse.writeHead(response.status, Object.fromEntries(response.headers.entries()));
24
+ nodeResponse.writeHead(response.status, this.outgoingHeaders(response));
25
25
  if (response.body === null) {
26
26
  nodeResponse.end();
27
27
  return;
@@ -29,6 +29,22 @@ export class NodeFetchHttpAdapter {
29
29
  const body = Buffer.from(await response.arrayBuffer());
30
30
  nodeResponse.end(body);
31
31
  }
32
+ /**
33
+ * Convert response headers to the shape Node sends.
34
+ *
35
+ * `Headers.entries()` yields one entry per `Set-Cookie` header, and
36
+ * collecting them into an object keeps only the last. Node takes an array for
37
+ * a header sent more than once. A response establishing one cookie and
38
+ * clearing another reaches the client whole.
39
+ */
40
+ outgoingHeaders(response) {
41
+ const outgoing = Object.fromEntries(response.headers.entries());
42
+ const setCookies = response.headers.getSetCookie();
43
+ if (setCookies.length > 0) {
44
+ outgoing["set-cookie"] = setCookies;
45
+ }
46
+ return outgoing;
47
+ }
32
48
  nodeRequestHeaders(nodeRequest) {
33
49
  const headers = new Headers();
34
50
  for (const [name, value] of Object.entries(nodeRequest.headers)) {
@@ -1 +1 @@
1
- {"version":3,"file":"node-fetch-http-adapter.js","sourceRoot":"","sources":["../../../src/serve/http/node-fetch-http-adapter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEjE;;GAEG;AACH,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;YACjD,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;gBACxB,SAAS;YACX,CAAC;YAED,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;gBACzB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;oBACzB,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;gBAC7B,CAAC;gBACD,SAAS;YACX,CAAC;YAED,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QAC3B,CAAC;QAED,OAAO,OAAO,CAAC;IACjB,CAAC;IAEO,eAAe,CACrB,WAA4B;QAE5B,IAAI,IAAI,CAAC,sBAAsB,CAAC,WAAW,CAAC,EAAE,CAAC;YAC7C,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO,WAAW,CAAC;IACrB,CAAC;IAEO,iBAAiB,CAAC,WAA4B;QACpD,IAAI,IAAI,CAAC,sBAAsB,CAAC,WAAW,CAAC,EAAE,CAAC;YAC7C,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;IAEO,sBAAsB,CAAC,WAA4B;QACzD,OAAO,WAAW,CAAC,MAAM,KAAK,KAAK,IAAI,WAAW,CAAC,MAAM,KAAK,MAAM,CAAC;IACvE,CAAC;CACF"}
1
+ {"version":3,"file":"node-fetch-http-adapter.js","sourceRoot":"","sources":["../../../src/serve/http/node-fetch-http-adapter.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEjE;;GAEG;AACH,MAAM,OAAO,oBAAoB;IAC/B;;OAEG;IACH,yBAAyB,CAAC,WAA4B;QACpD,MAAM,IAAI,GAAG,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC;QACtC,aAAa,CAAC,IAAI,EAAE,oDAAoD,CAAC,CAAC;QAC1E,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,WAAW,CAAC,GAAG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AI,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,CAAC;YAChE,iDAAiD;YACjD,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;gBACxB,SAAS;YACX,CAAC;YAED,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;gBACzB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;oBACzB,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;gBAC7B,CAAC;gBACD,SAAS;YACX,CAAC;YAED,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QAC3B,CAAC;QAED,OAAO,OAAO,CAAC;IACjB,CAAC;IAEO,eAAe,CACrB,WAA4B;QAE5B,IAAI,IAAI,CAAC,sBAAsB,CAAC,WAAW,CAAC,EAAE,CAAC;YAC7C,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO,WAAW,CAAC;IACrB,CAAC;IAEO,iBAAiB,CAAC,WAA4B;QACpD,IAAI,IAAI,CAAC,sBAAsB,CAAC,WAAW,CAAC,EAAE,CAAC;YAC7C,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;IAEO,sBAAsB,CAAC,WAA4B;QACzD,OAAO,WAAW,CAAC,MAAM,KAAK,KAAK,IAAI,WAAW,CAAC,MAAM,KAAK,MAAM,CAAC;IACvE,CAAC;CACF"}
@@ -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,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AAC;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":"AA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ACzD,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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AAC,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,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,GA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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,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,kDAAkD,CAAC;AAE1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAG3F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAE5E,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC;CAChC;AAED,UAAU,gBAAgB;IACxB,QAAQ,CAAC,kBAAkB,CAAC,EAAE,wBAAwB,CAAC;IACvD,QAAQ,CAAC,GAAG,CAAC,EAAE,uBAAuB,CAA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;;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
  */