@kensio/yulin 1.5.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (348) hide show
  1. package/dist/service/acm/command/delete-certificate/delete-certificate-authorizer.d.ts +26 -0
  2. package/dist/service/acm/command/delete-certificate/delete-certificate-authorizer.d.ts.map +1 -0
  3. package/dist/service/acm/command/delete-certificate/delete-certificate-authorizer.js +36 -0
  4. package/dist/service/acm/command/delete-certificate/delete-certificate-authorizer.js.map +1 -0
  5. package/dist/service/acm/command/delete-certificate/delete-certificate.command.d.ts +22 -0
  6. package/dist/service/acm/command/delete-certificate/delete-certificate.command.d.ts.map +1 -0
  7. package/dist/service/acm/command/delete-certificate/delete-certificate.command.js +2 -0
  8. package/dist/service/acm/command/delete-certificate/delete-certificate.command.js.map +1 -0
  9. package/dist/service/acm/command/delete-certificate/delete-certificate.handler.d.ts +39 -0
  10. package/dist/service/acm/command/delete-certificate/delete-certificate.handler.d.ts.map +1 -0
  11. package/dist/service/acm/command/delete-certificate/delete-certificate.handler.js +43 -0
  12. package/dist/service/acm/command/delete-certificate/delete-certificate.handler.js.map +1 -0
  13. package/dist/service/acm/sdk/sim-acm-sdk-command-router.d.ts.map +1 -1
  14. package/dist/service/acm/sdk/sim-acm-sdk-command-router.js +4 -0
  15. package/dist/service/acm/sdk/sim-acm-sdk-command-router.js.map +1 -1
  16. package/dist/service/acm/sim-acm.d.ts +5 -0
  17. package/dist/service/acm/sim-acm.d.ts.map +1 -1
  18. package/dist/service/acm/sim-acm.js +12 -0
  19. package/dist/service/acm/sim-acm.js.map +1 -1
  20. package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-import-properties.js +1 -1
  21. package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-properties.js +2 -2
  22. package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-properties.js.map +1 -1
  23. package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-property-rules.d.ts +22 -7
  24. package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-property-rules.d.ts.map +1 -1
  25. package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-property-rules.js +37 -16
  26. package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-property-rules.js.map +1 -1
  27. package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-authorizer-properties.js +1 -1
  28. package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-authorizer-properties.js.map +1 -1
  29. package/dist/service/apigatewayv2/cfn/integration/sim-cfn-http-api-integration-properties.js +1 -1
  30. package/dist/service/apigatewayv2/cfn/integration/sim-cfn-http-api-integration-properties.js.map +1 -1
  31. package/dist/service/apigatewayv2/cfn/route/sim-cfn-http-api-route-properties.js +1 -1
  32. package/dist/service/apigatewayv2/cfn/route/sim-cfn-http-api-route-properties.js.map +1 -1
  33. package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-property-parser.d.ts +17 -12
  34. package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-property-parser.d.ts.map +1 -1
  35. package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-property-parser.js +21 -17
  36. package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-property-parser.js.map +1 -1
  37. package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-stage-properties.js +1 -1
  38. package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-stage-properties.js.map +1 -1
  39. package/dist/service/cloudformation/resource/ignore/sim-cfn-ignored-properties.d.ts +47 -0
  40. package/dist/service/cloudformation/resource/ignore/sim-cfn-ignored-properties.d.ts.map +1 -0
  41. package/dist/service/cloudformation/resource/ignore/sim-cfn-ignored-properties.js +55 -0
  42. package/dist/service/cloudformation/resource/ignore/sim-cfn-ignored-properties.js.map +1 -0
  43. package/dist/service/cloudformation/resource/ignore/sim-cfn-ignored-property.type.d.ts +33 -0
  44. package/dist/service/cloudformation/resource/ignore/sim-cfn-ignored-property.type.d.ts.map +1 -0
  45. package/dist/service/cloudformation/resource/ignore/sim-cfn-ignored-property.type.js +2 -0
  46. package/dist/service/cloudformation/resource/ignore/sim-cfn-ignored-property.type.js.map +1 -0
  47. package/dist/service/cloudformation/resource/sim-cfn-resource.d.ts +17 -36
  48. package/dist/service/cloudformation/resource/sim-cfn-resource.d.ts.map +1 -1
  49. package/dist/service/cloudformation/resource/sim-cfn-resource.js +20 -5
  50. package/dist/service/cloudformation/resource/sim-cfn-resource.js.map +1 -1
  51. package/dist/service/cloudformation/resource/sim-cfn-resource.type.d.ts +34 -0
  52. package/dist/service/cloudformation/resource/sim-cfn-resource.type.d.ts.map +1 -0
  53. package/dist/service/cloudformation/resource/sim-cfn-resource.type.js +2 -0
  54. package/dist/service/cloudformation/resource/sim-cfn-resource.type.js.map +1 -0
  55. package/dist/service/cloudformation/stack/sim-cfn-stack.d.ts +9 -0
  56. package/dist/service/cloudformation/stack/sim-cfn-stack.d.ts.map +1 -1
  57. package/dist/service/cloudformation/stack/sim-cfn-stack.js +13 -0
  58. package/dist/service/cloudformation/stack/sim-cfn-stack.js.map +1 -1
  59. package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.js +1 -1
  60. package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.js.map +1 -1
  61. package/dist/service/cognito/cfn/client/sim-cfn-cognito-token-validity-units.js +1 -1
  62. package/dist/service/cognito/cfn/client/sim-cfn-cognito-token-validity-units.js.map +1 -1
  63. package/dist/service/cognito/cfn/group/sim-cfn-cognito-group-properties.js +1 -1
  64. package/dist/service/cognito/cfn/group/sim-cfn-cognito-group-properties.js.map +1 -1
  65. package/dist/service/cognito/cfn/sim-cfn-cognito-property-parser.d.ts +22 -14
  66. package/dist/service/cognito/cfn/sim-cfn-cognito-property-parser.d.ts.map +1 -1
  67. package/dist/service/cognito/cfn/sim-cfn-cognito-property-parser.js +27 -20
  68. package/dist/service/cognito/cfn/sim-cfn-cognito-property-parser.js.map +1 -1
  69. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-password-policy.js +1 -1
  70. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-password-policy.js.map +1 -1
  71. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-policies.js +1 -1
  72. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-policies.js.map +1 -1
  73. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-sign-in-policy.js +1 -1
  74. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-sign-in-policy.js.map +1 -1
  75. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.d.ts +3 -3
  76. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js +6 -6
  77. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js.map +1 -1
  78. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-capacity.js +22 -2
  79. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-capacity.js.map +1 -1
  80. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-properties.d.ts +4 -4
  81. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-properties.d.ts.map +1 -1
  82. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-properties.js +13 -10
  83. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-properties.js.map +1 -1
  84. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-property-rules.d.ts +6 -5
  85. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-property-rules.d.ts.map +1 -1
  86. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-property-rules.js +12 -12
  87. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-property-rules.js.map +1 -1
  88. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replica-rules.d.ts +4 -3
  89. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replica-rules.d.ts.map +1 -1
  90. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replica-rules.js +8 -8
  91. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replica-rules.js.map +1 -1
  92. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replicas.d.ts +28 -20
  93. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replicas.d.ts.map +1 -1
  94. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replicas.js +49 -32
  95. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replicas.js.map +1 -1
  96. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-simulated.d.ts +6 -4
  97. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-simulated.d.ts.map +1 -1
  98. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-simulated.js +18 -17
  99. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-simulated.js.map +1 -1
  100. package/dist/service/dynamodb/cfn/property/sim-cfn-dynamodb-property-error.d.ts +6 -14
  101. package/dist/service/dynamodb/cfn/property/sim-cfn-dynamodb-property-error.d.ts.map +1 -1
  102. package/dist/service/dynamodb/cfn/property/sim-cfn-dynamodb-property-error.js +6 -19
  103. package/dist/service/dynamodb/cfn/property/sim-cfn-dynamodb-property-error.js.map +1 -1
  104. package/dist/service/dynamodb/cfn/property/sim-cfn-dynamodb-property-rules.d.ts +19 -16
  105. package/dist/service/dynamodb/cfn/property/sim-cfn-dynamodb-property-rules.d.ts.map +1 -1
  106. package/dist/service/dynamodb/cfn/property/sim-cfn-dynamodb-property-rules.js +25 -20
  107. package/dist/service/dynamodb/cfn/property/sim-cfn-dynamodb-property-rules.js.map +1 -1
  108. package/dist/service/dynamodb/cfn/property/sim-cfn-dynamodb-resource-scope.d.ts +14 -0
  109. package/dist/service/dynamodb/cfn/property/sim-cfn-dynamodb-resource-scope.d.ts.map +1 -0
  110. package/dist/service/dynamodb/cfn/property/sim-cfn-dynamodb-resource-scope.js +2 -0
  111. package/dist/service/dynamodb/cfn/property/sim-cfn-dynamodb-resource-scope.js.map +1 -0
  112. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-creator.js +1 -1
  113. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-creator.js.map +1 -1
  114. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-index-rules.d.ts +6 -4
  115. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-index-rules.d.ts.map +1 -1
  116. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-index-rules.js +7 -6
  117. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-index-rules.js.map +1 -1
  118. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-properties.d.ts +2 -2
  119. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-properties.d.ts.map +1 -1
  120. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-properties.js +7 -4
  121. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-properties.js.map +1 -1
  122. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-property-rules.d.ts +13 -13
  123. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-property-rules.d.ts.map +1 -1
  124. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-property-rules.js +22 -23
  125. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-property-rules.js.map +1 -1
  126. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-stream-rules.d.ts +6 -4
  127. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-stream-rules.d.ts.map +1 -1
  128. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-stream-rules.js +6 -5
  129. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-stream-rules.js.map +1 -1
  130. package/dist/service/iam/command/policy/delete-policy/delete-policy.command.d.ts +8 -0
  131. package/dist/service/iam/command/policy/delete-policy/delete-policy.command.d.ts.map +1 -0
  132. package/dist/service/iam/command/policy/delete-policy/delete-policy.command.js +2 -0
  133. package/dist/service/iam/command/policy/delete-policy/delete-policy.command.js.map +1 -0
  134. package/dist/service/iam/command/policy/delete-policy/delete-policy.handler.d.ts +38 -0
  135. package/dist/service/iam/command/policy/delete-policy/delete-policy.handler.d.ts.map +1 -0
  136. package/dist/service/iam/command/policy/delete-policy/delete-policy.handler.js +52 -0
  137. package/dist/service/iam/command/policy/delete-policy/delete-policy.handler.js.map +1 -0
  138. package/dist/service/iam/command/policy/delete-role-policy/delete-role-policy.command.d.ts +9 -0
  139. package/dist/service/iam/command/policy/delete-role-policy/delete-role-policy.command.d.ts.map +1 -0
  140. package/dist/service/iam/command/policy/delete-role-policy/delete-role-policy.command.js +2 -0
  141. package/dist/service/iam/command/policy/delete-role-policy/delete-role-policy.command.js.map +1 -0
  142. package/dist/service/iam/command/policy/delete-role-policy/delete-role-policy.handler.d.ts +28 -0
  143. package/dist/service/iam/command/policy/delete-role-policy/delete-role-policy.handler.d.ts.map +1 -0
  144. package/dist/service/iam/command/policy/delete-role-policy/delete-role-policy.handler.js +44 -0
  145. package/dist/service/iam/command/policy/delete-role-policy/delete-role-policy.handler.js.map +1 -0
  146. package/dist/service/iam/command/policy/sim-iam-policy-command-handlers.d.ts +8 -0
  147. package/dist/service/iam/command/policy/sim-iam-policy-command-handlers.d.ts.map +1 -1
  148. package/dist/service/iam/command/policy/sim-iam-policy-command-handlers.js +17 -1
  149. package/dist/service/iam/command/policy/sim-iam-policy-command-handlers.js.map +1 -1
  150. package/dist/service/iam/command/role/delete-role/delete-role.command.d.ts +19 -0
  151. package/dist/service/iam/command/role/delete-role/delete-role.command.d.ts.map +1 -0
  152. package/dist/service/iam/command/role/delete-role/delete-role.command.js +2 -0
  153. package/dist/service/iam/command/role/delete-role/delete-role.command.js.map +1 -0
  154. package/dist/service/iam/command/role/delete-role/delete-role.handler.d.ts +30 -0
  155. package/dist/service/iam/command/role/delete-role/delete-role.handler.d.ts.map +1 -0
  156. package/dist/service/iam/command/role/delete-role/delete-role.handler.js +47 -0
  157. package/dist/service/iam/command/role/delete-role/delete-role.handler.js.map +1 -0
  158. package/dist/service/iam/command/role/detach-role-policy/detach-role-policy.command.d.ts +20 -0
  159. package/dist/service/iam/command/role/detach-role-policy/detach-role-policy.command.d.ts.map +1 -0
  160. package/dist/service/iam/command/role/detach-role-policy/detach-role-policy.command.js +2 -0
  161. package/dist/service/iam/command/role/detach-role-policy/detach-role-policy.command.js.map +1 -0
  162. package/dist/service/iam/command/role/detach-role-policy/detach-role-policy.handler.d.ts +28 -0
  163. package/dist/service/iam/command/role/detach-role-policy/detach-role-policy.handler.d.ts.map +1 -0
  164. package/dist/service/iam/command/role/detach-role-policy/detach-role-policy.handler.js +44 -0
  165. package/dist/service/iam/command/role/detach-role-policy/detach-role-policy.handler.js.map +1 -0
  166. package/dist/service/iam/command/role/sim-iam-role-command-handlers.d.ts +15 -0
  167. package/dist/service/iam/command/role/sim-iam-role-command-handlers.d.ts.map +1 -1
  168. package/dist/service/iam/command/role/sim-iam-role-command-handlers.js +36 -0
  169. package/dist/service/iam/command/role/sim-iam-role-command-handlers.js.map +1 -1
  170. package/dist/service/iam/command/sim-iam-command-handlers.d.ts.map +1 -1
  171. package/dist/service/iam/command/sim-iam-command-handlers.js +1 -0
  172. package/dist/service/iam/command/sim-iam-command-handlers.js.map +1 -1
  173. package/dist/service/iam/command/sim-iam-command.types.d.ts +22 -0
  174. package/dist/service/iam/command/sim-iam-command.types.d.ts.map +1 -0
  175. package/dist/service/iam/command/sim-iam-command.types.js +8 -0
  176. package/dist/service/iam/command/sim-iam-command.types.js.map +1 -0
  177. package/dist/service/iam/error/sim-iam.error.d.ts +11 -0
  178. package/dist/service/iam/error/sim-iam.error.d.ts.map +1 -1
  179. package/dist/service/iam/error/sim-iam.error.js +13 -0
  180. package/dist/service/iam/error/sim-iam.error.js.map +1 -1
  181. package/dist/service/iam/sdk/sim-iam-sdk-command-router.d.ts.map +1 -1
  182. package/dist/service/iam/sdk/sim-iam-sdk-command-router.js +16 -0
  183. package/dist/service/iam/sdk/sim-iam-sdk-command-router.js.map +1 -1
  184. package/dist/service/iam/sim-iam.d.ts +28 -22
  185. package/dist/service/iam/sim-iam.d.ts.map +1 -1
  186. package/dist/service/iam/sim-iam.js +24 -0
  187. package/dist/service/iam/sim-iam.js.map +1 -1
  188. package/dist/service/kms/cfn/key/sim-cfn-kms-key-properties.js +1 -1
  189. package/dist/service/kms/cfn/key/sim-cfn-kms-key-properties.js.map +1 -1
  190. package/dist/service/kms/cfn/key/sim-cfn-kms-unsimulated-key-properties.d.ts +19 -16
  191. package/dist/service/kms/cfn/key/sim-cfn-kms-unsimulated-key-properties.d.ts.map +1 -1
  192. package/dist/service/kms/cfn/key/sim-cfn-kms-unsimulated-key-properties.js +30 -28
  193. package/dist/service/kms/cfn/key/sim-cfn-kms-unsimulated-key-properties.js.map +1 -1
  194. package/dist/service/kms/command/alias/alias.command.d.ts +14 -0
  195. package/dist/service/kms/command/alias/alias.command.d.ts.map +1 -1
  196. package/dist/service/kms/command/alias/sim-kms-alias-commands.d.ts +10 -1
  197. package/dist/service/kms/command/alias/sim-kms-alias-commands.d.ts.map +1 -1
  198. package/dist/service/kms/command/alias/sim-kms-alias-commands.js +27 -2
  199. package/dist/service/kms/command/alias/sim-kms-alias-commands.js.map +1 -1
  200. package/dist/service/kms/command/sim-kms-command.types.d.ts +1 -1
  201. package/dist/service/kms/command/sim-kms-command.types.d.ts.map +1 -1
  202. package/dist/service/kms/key/sim-kms-key-store.d.ts +7 -0
  203. package/dist/service/kms/key/sim-kms-key-store.d.ts.map +1 -1
  204. package/dist/service/kms/key/sim-kms-key-store.js +9 -0
  205. package/dist/service/kms/key/sim-kms-key-store.js.map +1 -1
  206. package/dist/service/kms/sdk/sim-kms-sdk-command-router.d.ts.map +1 -1
  207. package/dist/service/kms/sdk/sim-kms-sdk-command-router.js +4 -0
  208. package/dist/service/kms/sdk/sim-kms-sdk-command-router.js.map +1 -1
  209. package/dist/service/kms/sim-kms-commands.d.ts +40 -0
  210. package/dist/service/kms/sim-kms-commands.d.ts.map +1 -0
  211. package/dist/service/kms/sim-kms-commands.js +66 -0
  212. package/dist/service/kms/sim-kms-commands.js.map +1 -0
  213. package/dist/service/kms/sim-kms.d.ts +6 -18
  214. package/dist/service/kms/sim-kms.d.ts.map +1 -1
  215. package/dist/service/kms/sim-kms.js +40 -89
  216. package/dist/service/kms/sim-kms.js.map +1 -1
  217. package/dist/service/lambda/command/delete-function/delete-function-authorizer.d.ts +22 -0
  218. package/dist/service/lambda/command/delete-function/delete-function-authorizer.d.ts.map +1 -0
  219. package/dist/service/lambda/command/delete-function/delete-function-authorizer.js +32 -0
  220. package/dist/service/lambda/command/delete-function/delete-function-authorizer.js.map +1 -0
  221. package/dist/service/lambda/command/delete-function/delete-function.command.d.ts +23 -0
  222. package/dist/service/lambda/command/delete-function/delete-function.command.d.ts.map +1 -0
  223. package/dist/service/lambda/command/delete-function/delete-function.command.js +2 -0
  224. package/dist/service/lambda/command/delete-function/delete-function.command.js.map +1 -0
  225. package/dist/service/lambda/command/delete-function/delete-function.handler.d.ts +45 -0
  226. package/dist/service/lambda/command/delete-function/delete-function.handler.d.ts.map +1 -0
  227. package/dist/service/lambda/command/delete-function/delete-function.handler.js +53 -0
  228. package/dist/service/lambda/command/delete-function/delete-function.handler.js.map +1 -0
  229. package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts +7 -0
  230. package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts.map +1 -1
  231. package/dist/service/lambda/command/function/sim-lambda-function-commands.js +7 -0
  232. package/dist/service/lambda/command/function/sim-lambda-function-commands.js.map +1 -1
  233. package/dist/service/lambda/command/sim-lambda-command.types.d.ts +1 -0
  234. package/dist/service/lambda/command/sim-lambda-command.types.d.ts.map +1 -1
  235. package/dist/service/lambda/function/url/sim-lambda-function-url-store.d.ts +7 -0
  236. package/dist/service/lambda/function/url/sim-lambda-function-url-store.d.ts.map +1 -1
  237. package/dist/service/lambda/function/url/sim-lambda-function-url-store.js +11 -0
  238. package/dist/service/lambda/function/url/sim-lambda-function-url-store.js.map +1 -1
  239. package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.d.ts.map +1 -1
  240. package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.js +4 -0
  241. package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.js.map +1 -1
  242. package/dist/service/lambda/sim-lambda-commands.d.ts.map +1 -1
  243. package/dist/service/lambda/sim-lambda-commands.js +1 -0
  244. package/dist/service/lambda/sim-lambda-commands.js.map +1 -1
  245. package/dist/service/lambda/sim-lambda.d.ts +4 -0
  246. package/dist/service/lambda/sim-lambda.d.ts.map +1 -1
  247. package/dist/service/lambda/sim-lambda.js +6 -0
  248. package/dist/service/lambda/sim-lambda.js.map +1 -1
  249. package/dist/service/route53/command/delete-hosted-zone/delete-hosted-zone-authorizer.d.ts +26 -0
  250. package/dist/service/route53/command/delete-hosted-zone/delete-hosted-zone-authorizer.d.ts.map +1 -0
  251. package/dist/service/route53/command/delete-hosted-zone/delete-hosted-zone-authorizer.js +36 -0
  252. package/dist/service/route53/command/delete-hosted-zone/delete-hosted-zone-authorizer.js.map +1 -0
  253. package/dist/service/route53/command/delete-hosted-zone/delete-hosted-zone.command.d.ts +26 -0
  254. package/dist/service/route53/command/delete-hosted-zone/delete-hosted-zone.command.d.ts.map +1 -0
  255. package/dist/service/route53/command/delete-hosted-zone/delete-hosted-zone.command.js +2 -0
  256. package/dist/service/route53/command/delete-hosted-zone/delete-hosted-zone.command.js.map +1 -0
  257. package/dist/service/route53/command/delete-hosted-zone/delete-hosted-zone.handler.d.ts +44 -0
  258. package/dist/service/route53/command/delete-hosted-zone/delete-hosted-zone.handler.d.ts.map +1 -0
  259. package/dist/service/route53/command/delete-hosted-zone/delete-hosted-zone.handler.js +59 -0
  260. package/dist/service/route53/command/delete-hosted-zone/delete-hosted-zone.handler.js.map +1 -0
  261. package/dist/service/route53/error/sim-route53.error.d.ts +12 -0
  262. package/dist/service/route53/error/sim-route53.error.d.ts.map +1 -1
  263. package/dist/service/route53/error/sim-route53.error.js +14 -0
  264. package/dist/service/route53/error/sim-route53.error.js.map +1 -1
  265. package/dist/service/route53/hosted-zone/sim-route53-hosted-zone.d.ts +8 -0
  266. package/dist/service/route53/hosted-zone/sim-route53-hosted-zone.d.ts.map +1 -1
  267. package/dist/service/route53/hosted-zone/sim-route53-hosted-zone.js +14 -0
  268. package/dist/service/route53/hosted-zone/sim-route53-hosted-zone.js.map +1 -1
  269. package/dist/service/route53/local-name/sim-route53-local-name.d.ts +11 -0
  270. package/dist/service/route53/local-name/sim-route53-local-name.d.ts.map +1 -1
  271. package/dist/service/route53/local-name/sim-route53-local-name.js +18 -3
  272. package/dist/service/route53/local-name/sim-route53-local-name.js.map +1 -1
  273. package/dist/service/route53/registry/sim-route53-registry.d.ts +8 -0
  274. package/dist/service/route53/registry/sim-route53-registry.d.ts.map +1 -1
  275. package/dist/service/route53/registry/sim-route53-registry.js +11 -0
  276. package/dist/service/route53/registry/sim-route53-registry.js.map +1 -1
  277. package/dist/service/route53/resolve/sim-route53-resolver.d.ts +8 -2
  278. package/dist/service/route53/resolve/sim-route53-resolver.d.ts.map +1 -1
  279. package/dist/service/route53/resolve/sim-route53-resolver.js +10 -4
  280. package/dist/service/route53/resolve/sim-route53-resolver.js.map +1 -1
  281. package/dist/service/route53/sdk/sim-route53-sdk-command-router.d.ts.map +1 -1
  282. package/dist/service/route53/sdk/sim-route53-sdk-command-router.js +4 -0
  283. package/dist/service/route53/sdk/sim-route53-sdk-command-router.js.map +1 -1
  284. package/dist/service/route53/sim-route53.d.ts +5 -0
  285. package/dist/service/route53/sim-route53.d.ts.map +1 -1
  286. package/dist/service/route53/sim-route53.js +13 -0
  287. package/dist/service/route53/sim-route53.js.map +1 -1
  288. package/dist/service/s3/bucket/sim-s3-bucket-access.d.ts +37 -0
  289. package/dist/service/s3/bucket/sim-s3-bucket-access.d.ts.map +1 -0
  290. package/dist/service/s3/bucket/sim-s3-bucket-access.js +46 -0
  291. package/dist/service/s3/bucket/sim-s3-bucket-access.js.map +1 -0
  292. package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-creator.d.ts +4 -5
  293. package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-creator.d.ts.map +1 -1
  294. package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-creator.js +6 -6
  295. package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-creator.js.map +1 -1
  296. package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-property-names.d.ts +26 -0
  297. package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-property-names.d.ts.map +1 -0
  298. package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-property-names.js +77 -0
  299. package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-property-names.js.map +1 -0
  300. package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-property-rules.d.ts +18 -7
  301. package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-property-rules.d.ts.map +1 -1
  302. package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-property-rules.js +25 -65
  303. package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-property-rules.js.map +1 -1
  304. package/dist/service/s3/command/bucket/sim-s3-bucket-commands.d.ts +4 -0
  305. package/dist/service/s3/command/bucket/sim-s3-bucket-commands.d.ts.map +1 -1
  306. package/dist/service/s3/command/bucket/sim-s3-bucket-commands.js +7 -0
  307. package/dist/service/s3/command/bucket/sim-s3-bucket-commands.js.map +1 -1
  308. package/dist/service/s3/command/delete-bucket/delete-bucket-authorizer.d.ts +24 -0
  309. package/dist/service/s3/command/delete-bucket/delete-bucket-authorizer.d.ts.map +1 -0
  310. package/dist/service/s3/command/delete-bucket/delete-bucket-authorizer.js +37 -0
  311. package/dist/service/s3/command/delete-bucket/delete-bucket-authorizer.js.map +1 -0
  312. package/dist/service/s3/command/delete-bucket/delete-bucket.command.d.ts +23 -0
  313. package/dist/service/s3/command/delete-bucket/delete-bucket.command.d.ts.map +1 -0
  314. package/dist/service/s3/command/delete-bucket/delete-bucket.command.js +2 -0
  315. package/dist/service/s3/command/delete-bucket/delete-bucket.command.js.map +1 -0
  316. package/dist/service/s3/command/delete-bucket/delete-bucket.handler.d.ts +43 -0
  317. package/dist/service/s3/command/delete-bucket/delete-bucket.handler.d.ts.map +1 -0
  318. package/dist/service/s3/command/delete-bucket/delete-bucket.handler.js +55 -0
  319. package/dist/service/s3/command/delete-bucket/delete-bucket.handler.js.map +1 -0
  320. package/dist/service/s3/command/sim-s3-command.types.d.ts +1 -0
  321. package/dist/service/s3/command/sim-s3-command.types.d.ts.map +1 -1
  322. package/dist/service/s3/error/sim-s3.error.d.ts +10 -0
  323. package/dist/service/s3/error/sim-s3.error.d.ts.map +1 -1
  324. package/dist/service/s3/error/sim-s3.error.js +12 -0
  325. package/dist/service/s3/error/sim-s3.error.js.map +1 -1
  326. package/dist/service/s3/sdk/sim-s3-sdk-command-router.d.ts.map +1 -1
  327. package/dist/service/s3/sdk/sim-s3-sdk-command-router.js +4 -0
  328. package/dist/service/s3/sdk/sim-s3-sdk-command-router.js.map +1 -1
  329. package/dist/service/s3/sim-s3-global-registry.d.ts +7 -0
  330. package/dist/service/s3/sim-s3-global-registry.d.ts.map +1 -1
  331. package/dist/service/s3/sim-s3-global-registry.js +9 -0
  332. package/dist/service/s3/sim-s3-global-registry.js.map +1 -1
  333. package/dist/service/s3/sim-s3.d.ts +5 -0
  334. package/dist/service/s3/sim-s3.d.ts.map +1 -1
  335. package/dist/service/s3/sim-s3.js +16 -12
  336. package/dist/service/s3/sim-s3.js.map +1 -1
  337. package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-properties.d.ts.map +1 -1
  338. package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-properties.js +2 -1
  339. package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-properties.js.map +1 -1
  340. package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-property-names.d.ts +31 -0
  341. package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-property-names.d.ts.map +1 -0
  342. package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-property-names.js +63 -0
  343. package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-property-names.js.map +1 -0
  344. package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-property-rules.d.ts +27 -17
  345. package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-property-rules.d.ts.map +1 -1
  346. package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-property-rules.js +39 -73
  347. package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-property-rules.js.map +1 -1
  348. package/package.json +1 -1
@@ -81,8 +81,8 @@ const simulatedStreamPropertyNames = new Set([
81
81
  * A fixed `WriteCapacityUnits` is the capacity an ordinary table's
82
82
  * `ProvisionedThroughput` states, so it is carried across.
83
83
  * `WriteCapacityAutoScalingSettings` asks for capacity that changes with load,
84
- * which nothing here changes, so it skips the table rather than being read as
85
- * the capacity it starts at.
84
+ * which nothing here changes, so it is recorded and the table is created at the
85
+ * `MinCapacity` it names.
86
86
  */
87
87
  const simulatedWriteCapacityPropertyNames = new Set([
88
88
  "WriteCapacityUnits",
@@ -93,10 +93,10 @@ const unsimulatedWriteCapacityPropertyNames = new Set([
93
93
  /**
94
94
  * The rules the Resource's own properties are read under.
95
95
  */
96
- export function simCfnDynamoDbGlobalTableRules(logicalId) {
96
+ export function simCfnDynamoDbGlobalTableRules(scope) {
97
97
  return new SimCfnDynamoDbPropertyRules({
98
98
  resourceTypeName: dynamoDbGlobalTableResourceTypeName,
99
- logicalId,
99
+ scope,
100
100
  simulated: simulatedPropertyNames,
101
101
  unsimulated: unsimulatedPropertyNames,
102
102
  });
@@ -104,10 +104,10 @@ export function simCfnDynamoDbGlobalTableRules(logicalId) {
104
104
  /**
105
105
  * The rules a `GlobalSecondaryIndexes` entry on the table itself is read under.
106
106
  */
107
- export function simCfnDynamoDbGlobalTableIndexRules(logicalId) {
107
+ export function simCfnDynamoDbGlobalTableIndexRules(scope) {
108
108
  return new SimCfnDynamoDbPropertyRules({
109
109
  resourceTypeName: dynamoDbGlobalTableResourceTypeName,
110
- logicalId,
110
+ scope,
111
111
  kind: "GlobalSecondaryIndex",
112
112
  simulated: simulatedIndexPropertyNames,
113
113
  unsimulated: unsimulatedIndexPropertyNames,
@@ -116,10 +116,10 @@ export function simCfnDynamoDbGlobalTableIndexRules(logicalId) {
116
116
  /**
117
117
  * The rules a `LocalSecondaryIndexes` entry is read under.
118
118
  */
119
- export function simCfnDynamoDbGlobalTableLocalIndexRules(logicalId) {
119
+ export function simCfnDynamoDbGlobalTableLocalIndexRules(scope) {
120
120
  return new SimCfnDynamoDbPropertyRules({
121
121
  resourceTypeName: dynamoDbGlobalTableResourceTypeName,
122
- logicalId,
122
+ scope,
123
123
  kind: "LocalSecondaryIndex",
124
124
  simulated: simulatedLocalIndexPropertyNames,
125
125
  });
@@ -127,10 +127,10 @@ export function simCfnDynamoDbGlobalTableLocalIndexRules(logicalId) {
127
127
  /**
128
128
  * The rules the `StreamSpecification` is read under.
129
129
  */
130
- export function simCfnDynamoDbGlobalTableStreamRules(logicalId) {
130
+ export function simCfnDynamoDbGlobalTableStreamRules(scope) {
131
131
  return new SimCfnDynamoDbPropertyRules({
132
132
  resourceTypeName: dynamoDbGlobalTableResourceTypeName,
133
- logicalId,
133
+ scope,
134
134
  kind: "StreamSpecification",
135
135
  simulated: simulatedStreamPropertyNames,
136
136
  });
@@ -139,10 +139,10 @@ export function simCfnDynamoDbGlobalTableStreamRules(logicalId) {
139
139
  * The rules a `WriteProvisionedThroughputSettings` is read under, on the table
140
140
  * or on one of its global secondary indexes.
141
141
  */
142
- export function simCfnDynamoDbGlobalTableWriteCapacityRules(logicalId) {
142
+ export function simCfnDynamoDbGlobalTableWriteCapacityRules(scope) {
143
143
  return new SimCfnDynamoDbPropertyRules({
144
144
  resourceTypeName: dynamoDbGlobalTableResourceTypeName,
145
- logicalId,
145
+ scope,
146
146
  kind: "WriteProvisionedThroughputSettings",
147
147
  simulated: simulatedWriteCapacityPropertyNames,
148
148
  unsimulated: unsimulatedWriteCapacityPropertyNames,
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cfn-dynamodb-global-table-property-rules.js","sourceRoot":"","sources":["../../../../../src/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-property-rules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAC7F,OAAO,EAAE,mCAAmC,EAAE,MAAM,sCAAsC,CAAC;AAE3F;;;;;;GAMG;AACH,MAAM,sBAAsB,GAAwB,IAAI,GAAG,CAAC;IAC1D,sBAAsB;IACtB,aAAa;IACb,wBAAwB;IACxB,WAAW;IACX,uBAAuB;IACvB,UAAU;IACV,qBAAqB;IACrB,WAAW;IACX,yBAAyB;IACzB,oCAAoC;CACrC,CAAC,CAAC;AAEH;;;;;;GAMG;AACH,MAAM,wBAAwB,GAAwB,IAAI,GAAG,CAAC;IAC5D,wBAAwB;IACxB,kBAAkB;IAClB,gBAAgB;IAChB,iCAAiC;CAClC,CAAC,CAAC;AAEH;;;;;;GAMG;AACH,MAAM,2BAA2B,GAAwB,IAAI,GAAG,CAAC;IAC/D,WAAW;IACX,WAAW;IACX,YAAY;IACZ,oCAAoC;CACrC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,6BAA6B,GAAwB,IAAI,GAAG,CAAC;IACjE,gBAAgB;IAChB,iCAAiC;CAClC,CAAC,CAAC;AAEH;;;;;;GAMG;AACH,MA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H,MAAM,UAAU,2CAA2C,CACzD,SAAiB;IAEjB,OAAO,IAAI,2BAA2B,CAAC;QACrC,gBAAgB,EAAE,mCAAmC;QACrD,SAAS;QACT,IAAI,EAAE,oCAAoC;QAC1C,SAAS,EAAE,mCAAmC;QAC9C,WAAW,EAAE,qCAAqC;KACnD,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"sim-cfn-dynamodb-global-table-property-rules.js","sourceRoot":"","sources":["../../../../../src/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-property-rules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAE7F,OAAO,EAAE,mCAAmC,EAAE,MAAM,sCAAsC,CAAC;AAE3F;;;;;;GAMG;AACH,MAAM,sBAAsB,GAAwB,IAAI,GAAG,CAAC;IAC1D,sBAAsB;IACtB,aAAa;IACb,wBAAwB;IACxB,WAAW;IACX,uBAAuB;IACvB,UAAU;IACV,qBAAqB;IACrB,WAAW;IACX,yBAAyB;IACzB,oCAAoC;CACrC,CAAC,CAAC;AAEH;;;;;;GAMG;AACH,MAAM,wBAAwB,GAAwB,IAAI,GAAG,CAAC;IAC5D,wBAAwB;IACxB,kBAAkB;IAClB,gBAAgB;IAChB,iCAAiC;CAClC,CAAC,CAAC;AAEH;;;;;;GAMG;AACH,MAAM,2BAA2B,GAAwB,IAAI,GAAG,CAAC;IAC/D,WAAW;IACX,WAAW;IACX,YAAY;IACZ,oCAAoC;CACrC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,6BAA6B,GAAwB,IAAI,GAAG,CAAC;IACjE,gBAAgB;IAChB,iCAAiC;CAClC,CAAC,CAAC;AAEH;;;;;;GAMG;AACH,MAAM,gCAAgC,GAAwB,IAAI,GAAG,CAAC;IACpE,WAAW;IACX,WAAW;IACX,YAAY;CACb,CAAC,CAAC;AAEH;;;;;;GAMG;AACH,MAAM,4BAA4B,GAAwB,IAAI,GAAG,CAAC;IAChE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C;QAC9C,WAAW,EAAE,qCAAqC;KACnD,CAAC,CAAC;AACL,CAAC"}
@@ -1,15 +1,16 @@
1
1
  import { SimCfnDynamoDbPropertyRules } from "../property/sim-cfn-dynamodb-property-rules.js";
2
+ import type { SimCfnDynamoDbResourceScope } from "../property/sim-cfn-dynamodb-resource-scope.js";
2
3
  /**
3
4
  * The rules a `Replicas` entry is read under.
4
5
  */
5
- export declare function simCfnDynamoDbGlobalTableReplicaRules(logicalId: string): SimCfnDynamoDbPropertyRules;
6
+ export declare function simCfnDynamoDbGlobalTableReplicaRules(scope: SimCfnDynamoDbResourceScope): SimCfnDynamoDbPropertyRules;
6
7
  /**
7
8
  * The rules a replica's `GlobalSecondaryIndexes` entry is read under.
8
9
  */
9
- export declare function simCfnDynamoDbGlobalTableReplicaIndexRules(logicalId: string): SimCfnDynamoDbPropertyRules;
10
+ export declare function simCfnDynamoDbGlobalTableReplicaIndexRules(scope: SimCfnDynamoDbResourceScope): SimCfnDynamoDbPropertyRules;
10
11
  /**
11
12
  * The rules a `ReadProvisionedThroughputSettings` is read under, on the replica
12
13
  * or on one of its global secondary indexes.
13
14
  */
14
- export declare function simCfnDynamoDbGlobalTableReadCapacityRules(logicalId: string): SimCfnDynamoDbPropertyRules;
15
+ export declare function simCfnDynamoDbGlobalTableReadCapacityRules(scope: SimCfnDynamoDbResourceScope): SimCfnDynamoDbPropertyRules;
15
16
  //# sourceMappingURL=sim-cfn-dynamodb-global-table-replica-rules.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cfn-dynamodb-global-table-replica-rules.d.ts","sourceRoot":"","sources":["../../../../../src/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replica-rules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAmE7F;;GAEG;AACH,wBAAgB,qCAAqC,CACnD,SAAS,EAAE,MAAM,GAChB,2BAA2B,CAQ7B;AAED;;GAEG;AACH,wBAAgB,0CAA0C,CACxD,SAAS,EAAE,MAAM,GAChB,2BAA2B,CAQ7B;AAED;;;GAGG;AACH,wBAAgB,0CAA0C,CACxD,SAAS,EAAE,MAAM,GAChB,2BAA2B,CAQ7B"}
1
+ {"version":3,"file":"sim-cfn-dynamodb-global-table-replica-rules.d.ts","sourceRoot":"","sources":["../../../../../src/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replica-rules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAC7F,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAmElG;;GAEG;AACH,wBAAgB,qCAAqC,CACnD,KAAK,EAAE,2BAA2B,GACjC,2BAA2B,CAQ7B;AAED;;GAEG;AACH,wBAAgB,0CAA0C,CACxD,KAAK,EAAE,2BAA2B,GACjC,2BAA2B,CAQ7B;AAED;;;GAGG;AACH,wBAAgB,0CAA0C,CACxD,KAAK,EAAE,2BAA2B,GACjC,2BAA2B,CAQ7B"}
@@ -49,8 +49,8 @@ const unsimulatedReplicaIndexPropertyNames = new Set([
49
49
  *
50
50
  * A fixed `ReadCapacityUnits` is half of the capacity an ordinary table's
51
51
  * `ProvisionedThroughput` states. `ReadCapacityAutoScalingSettings` asks for
52
- * capacity that changes with load, which nothing here changes, so it skips the
53
- * table rather than being read as the capacity it starts at.
52
+ * capacity that changes with load, which nothing here changes, so it is
53
+ * recorded and the table is created at the `MinCapacity` it names.
54
54
  */
55
55
  const simulatedReadCapacityPropertyNames = new Set([
56
56
  "ReadCapacityUnits",
@@ -61,10 +61,10 @@ const unsimulatedReadCapacityPropertyNames = new Set([
61
61
  /**
62
62
  * The rules a `Replicas` entry is read under.
63
63
  */
64
- export function simCfnDynamoDbGlobalTableReplicaRules(logicalId) {
64
+ export function simCfnDynamoDbGlobalTableReplicaRules(scope) {
65
65
  return new SimCfnDynamoDbPropertyRules({
66
66
  resourceTypeName: dynamoDbGlobalTableResourceTypeName,
67
- logicalId,
67
+ scope,
68
68
  kind: "Replica",
69
69
  simulated: simulatedReplicaPropertyNames,
70
70
  unsimulated: unsimulatedReplicaPropertyNames,
@@ -73,10 +73,10 @@ export function simCfnDynamoDbGlobalTableReplicaRules(logicalId) {
73
73
  /**
74
74
  * The rules a replica's `GlobalSecondaryIndexes` entry is read under.
75
75
  */
76
- export function simCfnDynamoDbGlobalTableReplicaIndexRules(logicalId) {
76
+ export function simCfnDynamoDbGlobalTableReplicaIndexRules(scope) {
77
77
  return new SimCfnDynamoDbPropertyRules({
78
78
  resourceTypeName: dynamoDbGlobalTableResourceTypeName,
79
- logicalId,
79
+ scope,
80
80
  kind: "Replica GlobalSecondaryIndex",
81
81
  simulated: simulatedReplicaIndexPropertyNames,
82
82
  unsimulated: unsimulatedReplicaIndexPropertyNames,
@@ -86,10 +86,10 @@ export function simCfnDynamoDbGlobalTableReplicaIndexRules(logicalId) {
86
86
  * The rules a `ReadProvisionedThroughputSettings` is read under, on the replica
87
87
  * or on one of its global secondary indexes.
88
88
  */
89
- export function simCfnDynamoDbGlobalTableReadCapacityRules(logicalId) {
89
+ export function simCfnDynamoDbGlobalTableReadCapacityRules(scope) {
90
90
  return new SimCfnDynamoDbPropertyRules({
91
91
  resourceTypeName: dynamoDbGlobalTableResourceTypeName,
92
- logicalId,
92
+ scope,
93
93
  kind: "ReadProvisionedThroughputSettings",
94
94
  simulated: simulatedReadCapacityPropertyNames,
95
95
  unsimulated: unsimulatedReadCapacityPropertyNames,
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cfn-dynamodb-global-table-replica-rules.js","sourceRoot":"","sources":["../../../../../src/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replica-rules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAC7F,OAAO,EAAE,mCAAmC,EAAE,MAAM,sCAAsC,CAAC;AAE3F;;;;;;GAMG;AACH,MAAM,6BAA6B,GAAwB,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C;QACrD,SAAS;QACT,IAAI,EAAE,mCAAmC;QACzC,SAAS,EAAE,kCAAkC;QAC7C,WAAW,EAAE,oCAAoC;KAClD,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"sim-cfn-dynamodb-global-table-replica-rules.js","sourceRoot":"","sources":["../../../../../src/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replica-rules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAE7F,OAAO,EAAE,mCAAmC,EAAE,MAAM,sCAAsC,CAAC;AAE3F;;;;;;GAMG;AACH,MAAM,6BAA6B,GAAwB,IAAI,GAAG,CAAC;IACjE,2BAA2B;IAC3B,wBAAwB;IACxB,mCAAmC;IACnC,QAAQ;IACR,YAAY;IACZ,MAAM;CACP,CAAC,CAAC;AAEH;;;;;;GAMG;AACH,MAAM,+BAA+B,GAAwB,IAAI,GAAG,CAAC;IACnE,kCAAkC;IAClC,4BAA4B;IAC5B,kCAAkC;IAClC,gCAAgC;IAChC,gBAAgB;IAChB,kBAAkB;CACnB,CAAC,CAAC;AAEH;;;;;GAKG;AACH,MAAM,kCAAkC,GAAwB,IAAI,GAAG,CAAC;IACtE,WAAW;IACX,mCAAmC;CACpC,CAAC,CAAC;AAEH,MAAM,oCAAoC,GAAwB,IAAI,GAAG,CAAC;IACxE,kCAAkC;IAClC,gCAAgC;CACjC,CAAC,CAAC;AAEH;;;;;;;GAOG;AACH,MAAM,kCAAkC,GAAwB,IAAI,GAAG,CAAC;IACtE,mBAAmB;CACpB,CAAC,CAAC;AAEH,MAAM,oCAAoC,GAAwB,IAAI,GAAG,CAAC;IACxE,iCAAiC;CAClC,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,UAAU,qCAAqC,CACnD,KAAkC;IAElC,OAAO,IAAI,2BAA2B,CAAC;QACrC,gBAAgB,EAAE,mCAAmC;QACrD,KAAK;QACL,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,6BAA6B;QACxC,WAAW,EAAE,+BAA+B;KAC7C,CAAC,CAAC;AACL,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,0CAA0C,CACxD,KAAkC;IAElC,OAAO,IAAI,2BAA2B,CAAC;QACrC,gBAAgB,EAAE,mCAAmC;QACrD,KAAK;QACL,IAAI,EAAE,8BAA8B;QACpC,SAAS,EAAE,kCAAkC;QAC7C,WAAW,EAAE,oCAAoC;KAClD,CAAC,CAAC;AACL,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,0CAA0C,CACxD,KAAkC;IAElC,OAAO,IAAI,2BAA2B,CAAC;QACrC,gBAAgB,EAAE,mCAAmC;QACrD,KAAK;QACL,IAAI,EAAE,mCAAmC;QACzC,SAAS,EAAE,kCAAkC;QAC7C,WAAW,EAAE,oCAAoC;KAClD,CAAC,CAAC;AACL,CAAC"}
@@ -1,48 +1,56 @@
1
1
  import type { SimCfnDynamoDbPropertyValues } from "../property/sim-cfn-dynamodb-property-values.js";
2
+ import type { SimCfnDynamoDbResourceScope } from "../property/sim-cfn-dynamodb-resource-scope.js";
2
3
  interface SimCfnDynamoDbGlobalTableReplicasProperties {
3
- readonly logicalId: string;
4
+ readonly scope: SimCfnDynamoDbResourceScope;
4
5
  readonly regionName: string;
5
6
  readonly values: SimCfnDynamoDbPropertyValues;
6
7
  }
7
8
  /**
8
- * The one replica a global table this simulation can create is made of.
9
+ * The one replica a global table this simulation creates is made of.
9
10
  *
10
11
  * A global table naming one replica is an ordinary table in that region,
11
12
  * because with one replica that is what it is. CDK's `TableV2` synthesises one
12
13
  * for every table it makes, since `renderReplicaTables` always appends the
13
14
  * stack's own region, so a table with no `replicas` prop at all arrives here.
14
15
  *
15
- * Two or more replicas is a table that replicates, which is not simulated. That
16
- * skips the Resource with a reason naming the regions, so the rest of the stack
17
- * still deploys and the report says which table was left out and why. The line
18
- * is drawn at the replica count rather than at the Resource type because that
19
- * is where the behaviour actually differs.
16
+ * Two or more replicas is a table that replicates, which is not simulated. The
17
+ * table is still created, as the one in the region the stack is deploying
18
+ * into, and the replication nothing here performs is recorded against the
19
+ * Resource. That is more useful than no table at all: everything the table does
20
+ * within one region behaves as the template describes, and only the copying
21
+ * between regions is missing.
22
+ *
23
+ * A replica list with nothing in it, or with nothing in the stack's own region,
24
+ * is refused rather than recorded. Real CloudFormation refuses both, so there
25
+ * is no gap in this simulation to be best effort about.
20
26
  */
21
27
  export declare class SimCfnDynamoDbGlobalTableReplicas {
22
- private readonly logicalId;
28
+ private readonly scope;
23
29
  private readonly regionName;
24
30
  private readonly values;
25
31
  constructor(properties: SimCfnDynamoDbGlobalTableReplicasProperties);
26
32
  /**
27
- * The single replica this global table is, refusing every other count.
33
+ * The replica this global table is created as, recording the rest.
28
34
  */
29
35
  single(): SimCfnDynamoDbPropertyValues;
30
36
  /**
31
- * Refuse a replica somewhere other than where the stack is deploying.
37
+ * The single replica a template declared, which has to name the region the
38
+ * stack is deploying into.
32
39
  *
33
- * The Resource is created in the Account and Region the stack deploys into,
34
- * which is the only place a simulated table can appear. Real CloudFormation
35
- * requires the replica list to include the stack's own region, so a template
36
- * naming one region and deploying into another is one it refuses as well.
40
+ * Real CloudFormation requires the replica list to include the stack's own
41
+ * region, so a template naming one region and deploying into another is one
42
+ * it refuses as well.
37
43
  */
38
- private assertOwnRegion;
44
+ private onlyReplica;
39
45
  /**
40
- * The refusal that skips a global table which genuinely replicates.
41
- *
42
- * The "Unsupported sim ... CloudFormation" wording is what marks the Resource
43
- * as skipped rather than failing the stack.
46
+ * The replica in the stack's own region, out of the several a replicating
47
+ * table declares, recording the replication that will not happen.
48
+ */
49
+ private ownRegionReplica;
50
+ /**
51
+ * The regions a replica list names, for a message that says which they were.
44
52
  */
45
- private replicatedError;
53
+ private regionNames;
46
54
  }
47
55
  export {};
48
56
  //# sourceMappingURL=sim-cfn-dynamodb-global-table-replicas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cfn-dynamodb-global-table-replicas.d.ts","sourceRoot":"","sources":["../../../../../src/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replicas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,iDAAiD,CAAC;AAEpG,UAAU,2CAA2C;IACnD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,MAAM,EAAE,4BAA4B,CAAC;CAC/C;AAED;;;;;;;;;;;;;GAaG;AACH,qBAAa,iCAAiC;IAC5C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAS;IACpC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA+B;IAEtD,YAAY,UAAU,EAAE,2CAA2C,EAIlE;IAED;;OAEG;IACH,MAAM,IAAI,4BAA4B,CAoBrC;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,eAAe;IAgBvB;;;;;OAKG;IACH,OAAO,CAAC,eAAe;CAgBxB"}
1
+ {"version":3,"file":"sim-cfn-dynamodb-global-table-replicas.d.ts","sourceRoot":"","sources":["../../../../../src/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replicas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,iDAAiD,CAAC;AACpG,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAElG,UAAU,2CAA2C;IACnD,QAAQ,CAAC,KAAK,EAAE,2BAA2B,CAAC;IAC5C,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,MAAM,EAAE,4BAA4B,CAAC;CAC/C;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,iCAAiC;IAC5C,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA8B;IACpD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAS;IACpC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA+B;IAEtD,YAAY,UAAU,EAAE,2CAA2C,EAIlE;IAED;;OAEG;IACH,MAAM,IAAI,4BAA4B,CAiBrC;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,WAAW;IAoBnB;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IA0BxB;;OAEG;IACH,OAAO,CAAC,WAAW;CASpB"}
@@ -1,52 +1,56 @@
1
1
  /**
2
- * The one replica a global table this simulation can create is made of.
2
+ * The one replica a global table this simulation creates is made of.
3
3
  *
4
4
  * A global table naming one replica is an ordinary table in that region,
5
5
  * because with one replica that is what it is. CDK's `TableV2` synthesises one
6
6
  * for every table it makes, since `renderReplicaTables` always appends the
7
7
  * stack's own region, so a table with no `replicas` prop at all arrives here.
8
8
  *
9
- * Two or more replicas is a table that replicates, which is not simulated. That
10
- * skips the Resource with a reason naming the regions, so the rest of the stack
11
- * still deploys and the report says which table was left out and why. The line
12
- * is drawn at the replica count rather than at the Resource type because that
13
- * is where the behaviour actually differs.
9
+ * Two or more replicas is a table that replicates, which is not simulated. The
10
+ * table is still created, as the one in the region the stack is deploying
11
+ * into, and the replication nothing here performs is recorded against the
12
+ * Resource. That is more useful than no table at all: everything the table does
13
+ * within one region behaves as the template describes, and only the copying
14
+ * between regions is missing.
15
+ *
16
+ * A replica list with nothing in it, or with nothing in the stack's own region,
17
+ * is refused rather than recorded. Real CloudFormation refuses both, so there
18
+ * is no gap in this simulation to be best effort about.
14
19
  */
15
20
  export class SimCfnDynamoDbGlobalTableReplicas {
16
- logicalId;
21
+ scope;
17
22
  regionName;
18
23
  values;
19
24
  constructor(properties) {
20
- this.logicalId = properties.logicalId;
25
+ this.scope = properties.scope;
21
26
  this.regionName = properties.regionName;
22
27
  this.values = properties.values;
23
28
  }
24
29
  /**
25
- * The single replica this global table is, refusing every other count.
30
+ * The replica this global table is created as, recording the rest.
26
31
  */
27
32
  single() {
28
33
  const replicas = this.values.list("Replicas");
29
- if (replicas.length > 1) {
30
- throw this.replicatedError(replicas);
31
- }
32
- const replica = replicas.at(0);
33
- if (replica === undefined) {
34
+ const [only] = replicas;
35
+ if (only === undefined) {
34
36
  throw this.values.error("Replicas must name at least one region, since a global table with " +
35
37
  "no replica is a table in no region, and real CloudFormation " +
36
38
  "refuses that template too");
37
39
  }
38
- this.assertOwnRegion(replica);
39
- return replica;
40
+ if (replicas.length === 1) {
41
+ return this.onlyReplica(only);
42
+ }
43
+ return this.ownRegionReplica(replicas);
40
44
  }
41
45
  /**
42
- * Refuse a replica somewhere other than where the stack is deploying.
46
+ * The single replica a template declared, which has to name the region the
47
+ * stack is deploying into.
43
48
  *
44
- * The Resource is created in the Account and Region the stack deploys into,
45
- * which is the only place a simulated table can appear. Real CloudFormation
46
- * requires the replica list to include the stack's own region, so a template
47
- * naming one region and deploying into another is one it refuses as well.
49
+ * Real CloudFormation requires the replica list to include the stack's own
50
+ * region, so a template naming one region and deploying into another is one
51
+ * it refuses as well.
48
52
  */
49
- assertOwnRegion(replica) {
53
+ onlyReplica(replica) {
50
54
  const region = replica.string("Region");
51
55
  if (region === undefined) {
52
56
  throw this.values.error("Replicas.0.Region is required");
@@ -56,23 +60,36 @@ export class SimCfnDynamoDbGlobalTableReplicas {
56
60
  `${this.regionName}, so the replica list does not include the ` +
57
61
  `region the table would be created in`);
58
62
  }
63
+ return replica;
64
+ }
65
+ /**
66
+ * The replica in the stack's own region, out of the several a replicating
67
+ * table declares, recording the replication that will not happen.
68
+ */
69
+ ownRegionReplica(replicas) {
70
+ const own = replicas.find((replica) => {
71
+ return replica.string("Region") === this.regionName;
72
+ });
73
+ if (own === undefined) {
74
+ throw this.values.error(`Replicas names ${this.regionNames(replicas)}, and the stack is ` +
75
+ `deploying into ${this.regionName}, so the replica list does not ` +
76
+ `include the region the table would be created in`);
77
+ }
78
+ this.scope.ignorer.ignoreProperty("Replicas", `Replicas names ${this.regionNames(replicas)}, and replicating a table ` +
79
+ `between regions is not simulated, so the table is created as an ` +
80
+ `ordinary table in ${this.regionName} and nothing is copied to the ` +
81
+ `others`);
82
+ return own;
59
83
  }
60
84
  /**
61
- * The refusal that skips a global table which genuinely replicates.
62
- *
63
- * The "Unsupported sim ... CloudFormation" wording is what marks the Resource
64
- * as skipped rather than failing the stack.
85
+ * The regions a replica list names, for a message that says which they were.
65
86
  */
66
- replicatedError(replicas) {
67
- const regions = replicas
87
+ regionNames(replicas) {
88
+ return replicas
68
89
  .map((replica, index) => {
69
90
  return replica.string("Region") ?? `Replicas.${index.toString()}`;
70
91
  })
71
92
  .join(", ");
72
- return new Error(`Unsupported sim DynamoDB CloudFormation Resource ${this.logicalId}: ` +
73
- `Replicas names ${regions}, and replicating a table between regions ` +
74
- `is not simulated, so the global table is skipped rather than ` +
75
- `created as an ordinary table in one of them`);
76
93
  }
77
94
  }
78
95
  //# sourceMappingURL=sim-cfn-dynamodb-global-table-replicas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cfn-dynamodb-global-table-replicas.js","sourceRoot":"","sources":["../../../../../src/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replicas.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,iCAAiC;IAC3B,SAAS,CAAS;IAClB,UAAU,CAAS;IACnB,MAAM,CAA+B;IAEtD,YAAY,UAAuD;QACjE,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC;QACtC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;QACxC,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAClC,CAAC;IAED;;OAEG;IACH,MAAM;QACJ,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAE9C,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACxB,MAAM,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;QACvC,CAAC;QAED,MAA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wB,MAAM,oCAAoC;gBAChE,GAAG,IAAI,CAAC,UAAU,6CAA6C;gBAC/D,sCAAsC,CACzC,CAAC;QACJ,CAAC;QAED,OAAO,OAAO,CAAC;IACjB,CAAC;IAED;;;OAGG;IACK,gBAAgB,CACtB,QAAiD;QAEjD,MAAM,GAAG,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE;YACpC,OAAO,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,IAAI,CAAC,UAAU,CAAC;QACtD,CAAC,CAAC,CAAC;QAEH,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;YACtB,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CACrB,kBAAkB,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,qBAAqB;gBAC/D,kBAAkB,IAAI,CAAC,UAAU,iCAAiC;gBAClE,kDAAkD,CACrD,CAAC;QACJ,CAAC;QAED,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,cAAc,CAC/B,UAAU,EACV,kBAAkB,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,4BAA4B;YACtE,kEAAkE;YAClE,qBAAqB,IAAI,CAAC,UAAU,gCAAgC;YACpE,QAAQ,CACX,CAAC;QAEF,OAAO,GAAG,CAAC;IACb,CAAC;IAED;;OAEG;IACK,WAAW,CACjB,QAAiD;QAEjD,OAAO,QAAQ;aACZ,GAAG,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE;YACtB,OAAO,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,YAAY,KAAK,CAAC,QAAQ,EAAE,EAAE,CAAC;QACpE,CAAC,CAAC;aACD,IAAI,CAAC,IAAI,CAAC,CAAC;IAChB,CAAC;CACF"}
@@ -1,18 +1,20 @@
1
1
  import type { SimCfnDynamoDbPropertyValues } from "../property/sim-cfn-dynamodb-property-values.js";
2
+ import type { SimCfnDynamoDbResourceScope } from "../property/sim-cfn-dynamodb-resource-scope.js";
2
3
  interface SimCfnDynamoDbGlobalTableSimulatedProperties {
3
- readonly logicalId: string;
4
+ readonly scope: SimCfnDynamoDbResourceScope;
4
5
  readonly values: SimCfnDynamoDbPropertyValues;
5
6
  readonly replica: SimCfnDynamoDbPropertyValues;
6
7
  }
7
8
  /**
8
- * Refuse everything an AWS::DynamoDB::GlobalTable asks for and cannot get, at
9
+ * Record everything an AWS::DynamoDB::GlobalTable asks for and cannot get, at
9
10
  * every level a global table nests: the table, its indexes, its stream, the
10
11
  * replica, the replica's per-index settings, and the two halves of its
11
12
  * capacity.
12
13
  *
13
14
  * Each level is a set of property names rather than a rule of its own, so what
14
- * differs between them is which names belong where.
15
+ * differs between them is which names belong where. The table is created
16
+ * either way; the record is what says which of those levels was read past.
15
17
  */
16
- export declare function assertSimCfnDynamoDbGlobalTableSimulated(properties: SimCfnDynamoDbGlobalTableSimulatedProperties): void;
18
+ export declare function applySimCfnDynamoDbGlobalTableRules(properties: SimCfnDynamoDbGlobalTableSimulatedProperties): void;
17
19
  export {};
18
20
  //# sourceMappingURL=sim-cfn-dynamodb-global-table-simulated.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cfn-dynamodb-global-table-simulated.d.ts","sourceRoot":"","sources":["../../../../../src/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-simulated.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,iDAAiD,CAAC;AAcpG,UAAU,4CAA4C;IACpD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,4BAA4B,CAAC;IAC9C,QAAQ,CAAC,OAAO,EAAE,4BAA4B,CAAC;CAChD;AAED;;;;;;;;GAQG;AACH,wBAAgB,wCAAwC,CACtD,UAAU,EAAE,4CAA4C,GACvD,IAAI,CAuBN"}
1
+ {"version":3,"file":"sim-cfn-dynamodb-global-table-simulated.d.ts","sourceRoot":"","sources":["../../../../../src/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-simulated.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,iDAAiD,CAAC;AACpG,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAclG,UAAU,4CAA4C;IACpD,QAAQ,CAAC,KAAK,EAAE,2BAA2B,CAAC;IAC5C,QAAQ,CAAC,MAAM,EAAE,4BAA4B,CAAC;IAC9C,QAAQ,CAAC,OAAO,EAAE,4BAA4B,CAAC;CAChD;AAED;;;;;;;;;GASG;AACH,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,4CAA4C,GACvD,IAAI,CAiBN"}
@@ -1,41 +1,42 @@
1
1
  import { simCfnDynamoDbGlobalTableIndexRules, simCfnDynamoDbGlobalTableLocalIndexRules, simCfnDynamoDbGlobalTableRules, simCfnDynamoDbGlobalTableStreamRules, simCfnDynamoDbGlobalTableWriteCapacityRules, } from "./sim-cfn-dynamodb-global-table-property-rules.js";
2
2
  import { simCfnDynamoDbGlobalTableReadCapacityRules, simCfnDynamoDbGlobalTableReplicaIndexRules, simCfnDynamoDbGlobalTableReplicaRules, } from "./sim-cfn-dynamodb-global-table-replica-rules.js";
3
3
  /**
4
- * Refuse everything an AWS::DynamoDB::GlobalTable asks for and cannot get, at
4
+ * Record everything an AWS::DynamoDB::GlobalTable asks for and cannot get, at
5
5
  * every level a global table nests: the table, its indexes, its stream, the
6
6
  * replica, the replica's per-index settings, and the two halves of its
7
7
  * capacity.
8
8
  *
9
9
  * Each level is a set of property names rather than a rule of its own, so what
10
- * differs between them is which names belong where.
10
+ * differs between them is which names belong where. The table is created
11
+ * either way; the record is what says which of those levels was read past.
11
12
  */
12
- export function assertSimCfnDynamoDbGlobalTableSimulated(properties) {
13
- const { logicalId, values, replica } = properties;
13
+ export function applySimCfnDynamoDbGlobalTableRules(properties) {
14
+ const { scope, values, replica } = properties;
14
15
  const indexes = values.list("GlobalSecondaryIndexes");
15
16
  const replicaIndexes = replica.list("GlobalSecondaryIndexes");
16
- simCfnDynamoDbGlobalTableRules(logicalId).assertSimulated(values);
17
- simCfnDynamoDbGlobalTableIndexRules(logicalId).assertEachSimulated(indexes);
18
- simCfnDynamoDbGlobalTableLocalIndexRules(logicalId).assertEachSimulated(values.list("LocalSecondaryIndexes"));
19
- simCfnDynamoDbGlobalTableStreamRules(logicalId).assertSimulated(values.object("StreamSpecification"));
20
- simCfnDynamoDbGlobalTableReplicaRules(logicalId).assertSimulated(replica);
21
- simCfnDynamoDbGlobalTableReplicaIndexRules(logicalId).assertEachSimulated(replicaIndexes);
22
- assertSimulatedCapacity(logicalId, [values, ...indexes], [replica, ...replicaIndexes]);
17
+ simCfnDynamoDbGlobalTableRules(scope).apply(values);
18
+ simCfnDynamoDbGlobalTableIndexRules(scope).applyToEach(indexes);
19
+ simCfnDynamoDbGlobalTableLocalIndexRules(scope).applyToEach(values.list("LocalSecondaryIndexes"));
20
+ simCfnDynamoDbGlobalTableStreamRules(scope).apply(values.object("StreamSpecification"));
21
+ simCfnDynamoDbGlobalTableReplicaRules(scope).apply(replica);
22
+ simCfnDynamoDbGlobalTableReplicaIndexRules(scope).applyToEach(replicaIndexes);
23
+ applyCapacityRules(scope, [values, ...indexes], [replica, ...replicaIndexes]);
23
24
  }
24
25
  /**
25
- * Refuse a capacity that changes with load, wherever it was asked for.
26
+ * Record a capacity that changes with load, wherever it was asked for.
26
27
  *
27
28
  * The table and each of its indexes state the writing half, and the replica and
28
29
  * its per-index entries state the reading half, so both sets are held to the
29
30
  * same rule.
30
31
  */
31
- function assertSimulatedCapacity(logicalId, writing, reading) {
32
- const writeRules = simCfnDynamoDbGlobalTableWriteCapacityRules(logicalId);
33
- const readRules = simCfnDynamoDbGlobalTableReadCapacityRules(logicalId);
32
+ function applyCapacityRules(scope, writing, reading) {
33
+ const writeRules = simCfnDynamoDbGlobalTableWriteCapacityRules(scope);
34
+ const readRules = simCfnDynamoDbGlobalTableReadCapacityRules(scope);
34
35
  for (const values of writing) {
35
- writeRules.assertSimulated(values.object("WriteProvisionedThroughputSettings"));
36
+ writeRules.apply(values.object("WriteProvisionedThroughputSettings"));
36
37
  }
37
38
  for (const values of reading) {
38
- readRules.assertSimulated(values.object("ReadProvisionedThroughputSettings"));
39
+ readRules.apply(values.object("ReadProvisionedThroughputSettings"));
39
40
  }
40
41
  }
41
42
  //# sourceMappingURL=sim-cfn-dynamodb-global-table-simulated.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cfn-dynamodb-global-table-simulated.js","sourceRoot":"","sources":["../../../../../src/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-simulated.ts"],"names":[],"mappings":"AACA,OAAO,EACL,mCAAmC,EACnC,wCAAwC,EACxC,8BAA8B,EAC9B,oCAAoC,EACpC,2CAA2C,GAC5C,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EACL,0CAA0C,EAC1C,0CAA0C,EAC1C,qCAAqC,GACtC,MAAM,kDAAkD,CAAC;AAQ1D;;;;;;;;GAQG;AACH,MAAM,UAAU,wCAAwC,CACtD,UAAwD;IAExD,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC;IAClD,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;IACtD,MAAM,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;IAE9D,8BAA8B,CAAC,SAAS,CAAC,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;IAClE,mCAAmC,CAAC,SAAS,CAAC,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;IAC5E,wCAAwC,CAAC,SAAS,CAAC,CAAC,mBAAmB,CACrE,MAAM,CAAC,IAAI,CAAC,uBAAuB,CAAC,CACrC,CAAC;IACF,oCAAoC,CAAC,SAAS,CAAC,CAAC,eAAe,CAC7D,MAAM,CAAC,MAAM,CAAC,qBAAqB,CAAC,CACrC,CAAC;IACF,qCAAqC,CAAC,SAAS,CAAC,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;IAC1E,0CAA0C,CAAC,SAAS,CAAC,CAAC,mBAAmB,CACvE,cAAc,CACf,CAAC;IAEF,uBAAuB,CACrB,SAAS,EACT,CAAC,MAAM,EAAE,GAAG,OAAO,CAAC,EACpB,CAAC,OAAO,EAAE,GAAG,cAAc,CAAC,CAC7B,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,SAAS,uBAAuB,CAC9B,SAAiB,EACjB,OAAgD,EAChD,OAAgD;IAEhD,MAAM,UAAU,GAAG,2CAA2C,CAAC,SAAS,CAAC,CAAC;IAC1E,MAAM,SAAS,GAAG,0CAA0C,CAAC,SAAS,CAAC,CAAC;IAExE,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,UAAU,CAAC,eAAe,CACxB,MAAM,CAAC,MAAM,CAAC,oCAAoC,CAAC,CACpD,CAAC;IACJ,CAAC;IAED,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,SAAS,CAAC,eAAe,CACvB,MAAM,CAAC,MAAM,CAAC,mCAAmC,CAAC,CACnD,CAAC;IACJ,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"sim-cfn-dynamodb-global-table-simulated.js","sourceRoot":"","sources":["../../../../../src/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-simulated.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,mCAAmC,EACnC,wCAAwC,EACxC,8BAA8B,EAC9B,oCAAoC,EACpC,2CAA2C,GAC5C,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EACL,0CAA0C,EAC1C,0CAA0C,EAC1C,qCAAqC,GACtC,MAAM,kDAAkD,CAAC;AAQ1D;;;;;;;;;GASG;AACH,MAAM,UAAU,mCAAmC,CACjD,UAAwD;IAExD,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC;IAC9C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
@@ -1,11 +1,12 @@
1
1
  /**
2
2
  * Build the error a property of a simulated DynamoDB Resource is refused with.
3
3
  *
4
- * The wording matters. Sim CloudFormation skips a Resource whose error reads as
5
- * an unsupported Resource type, and skipping is the wrong answer for a table
6
- * the template described in a way it cannot be created: nothing is missing from
7
- * the simulation, the template is wrong, and the same template would fail on
8
- * real CloudFormation.
4
+ * Refusing is now the rarer answer. A property simulated DynamoDB cannot act on
5
+ * is recorded against the Resource and the table is created without it, so what
6
+ * is left here is the template that describes no table at all: a global table
7
+ * with no replica, a key schema that is not a list. Nothing is missing from
8
+ * this simulation in those cases, the template is wrong, and the same template
9
+ * would fail on real CloudFormation.
9
10
  *
10
11
  * The Resource type is named rather than assumed, since `AWS::DynamoDB::Table`
11
12
  * and `AWS::DynamoDB::GlobalTable` describe the same table in different
@@ -13,13 +14,4 @@
13
14
  * the wrong page of the documentation.
14
15
  */
15
16
  export declare function dynamoDbPropertyError(resourceTypeName: string, logicalId: string, reason: string): Error;
16
- /**
17
- * Build the error that skips a Resource over a property that is not simulated.
18
- *
19
- * The "Unsupported sim ... CloudFormation" wording is what marks the Resource
20
- * as skipped rather than failing the stack, so the rest of the template still
21
- * deploys and the skip reason names the property. The path is the whole way to
22
- * the property, so a setting on one index of several says which one it was on.
23
- */
24
- export declare function dynamoDbUnsimulatedPropertyError(resourceTypeName: string, logicalId: string, path: string): Error;
25
17
  //# sourceMappingURL=sim-cfn-dynamodb-property-error.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cfn-dynamodb-property-error.d.ts","sourceRoot":"","sources":["../../../../../src/service/dynamodb/cfn/property/sim-cfn-dynamodb-property-error.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,qBAAqB,CACnC,gBAAgB,EAAE,MAAM,EACxB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,GACb,KAAK,CAIP;AAED;;;;;;;GAOG;AACH,wBAAgB,gCAAgC,CAC9C,gBAAgB,EAAE,MAAM,EACxB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,GACX,KAAK,CAOP"}
1
+ {"version":3,"file":"sim-cfn-dynamodb-property-error.d.ts","sourceRoot":"","sources":["../../../../../src/service/dynamodb/cfn/property/sim-cfn-dynamodb-property-error.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,qBAAqB,CACnC,gBAAgB,EAAE,MAAM,EACxB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,GACb,KAAK,CAIP"}
@@ -1,11 +1,12 @@
1
1
  /**
2
2
  * Build the error a property of a simulated DynamoDB Resource is refused with.
3
3
  *
4
- * The wording matters. Sim CloudFormation skips a Resource whose error reads as
5
- * an unsupported Resource type, and skipping is the wrong answer for a table
6
- * the template described in a way it cannot be created: nothing is missing from
7
- * the simulation, the template is wrong, and the same template would fail on
8
- * real CloudFormation.
4
+ * Refusing is now the rarer answer. A property simulated DynamoDB cannot act on
5
+ * is recorded against the Resource and the table is created without it, so what
6
+ * is left here is the template that describes no table at all: a global table
7
+ * with no replica, a key schema that is not a list. Nothing is missing from
8
+ * this simulation in those cases, the template is wrong, and the same template
9
+ * would fail on real CloudFormation.
9
10
  *
10
11
  * The Resource type is named rather than assumed, since `AWS::DynamoDB::Table`
11
12
  * and `AWS::DynamoDB::GlobalTable` describe the same table in different
@@ -15,18 +16,4 @@
15
16
  export function dynamoDbPropertyError(resourceTypeName, logicalId, reason) {
16
17
  return new Error(`Invalid ${resourceTypeName} Resource ${logicalId}: ${reason}`);
17
18
  }
18
- /**
19
- * Build the error that skips a Resource over a property that is not simulated.
20
- *
21
- * The "Unsupported sim ... CloudFormation" wording is what marks the Resource
22
- * as skipped rather than failing the stack, so the rest of the template still
23
- * deploys and the skip reason names the property. The path is the whole way to
24
- * the property, so a setting on one index of several says which one it was on.
25
- */
26
- export function dynamoDbUnsimulatedPropertyError(resourceTypeName, logicalId, path) {
27
- return new Error(`Unsupported sim DynamoDB CloudFormation Resource ${logicalId}: ` +
28
- `${path} is a real ${resourceTypeName} property that simulated ` +
29
- `DynamoDB does not simulate, so the table is skipped rather than ` +
30
- `created without it`);
31
- }
32
19
  //# sourceMappingURL=sim-cfn-dynamodb-property-error.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cfn-dynamodb-property-error.js","sourceRoot":"","sources":["../../../../../src/service/dynamodb/cfn/property/sim-cfn-dynamodb-property-error.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,qBAAqB,CACnC,gBAAwB,EACxB,SAAiB,EACjB,MAAc;IAEd,OAAO,IAAI,KAAK,CACd,WAAW,gBAAgB,aAAa,SAAS,KAAK,MAAM,EAAE,CAC/D,CAAC;AACJ,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,gCAAgC,CAC9C,gBAAwB,EACxB,SAAiB,EACjB,IAAY;IAEZ,OAAO,IAAI,KAAK,CACd,oDAAoD,SAAS,IAAI;QAC/D,GAAG,IAAI,cAAc,gBAAgB,2BAA2B;QAChE,kEAAkE;QAClE,oBAAoB,CACvB,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"sim-cfn-dynamodb-property-error.js","sourceRoot":"","sources":["../../../../../src/service/dynamodb/cfn/property/sim-cfn-dynamodb-property-error.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,qBAAqB,CACnC,gBAAwB,EACxB,SAAiB,EACjB,MAAc;IAEd,OAAO,IAAI,KAAK,CACd,WAAW,gBAAgB,aAAa,SAAS,KAAK,MAAM,EAAE,CAC/D,CAAC;AACJ,CAAC"}