@kensio/yulin 1.4.1 → 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 (430) hide show
  1. package/dist/serve/http/url/sim-aws-request-hostname.d.ts +13 -0
  2. package/dist/serve/http/url/sim-aws-request-hostname.d.ts.map +1 -0
  3. package/dist/serve/http/url/sim-aws-request-hostname.js +19 -0
  4. package/dist/serve/http/url/sim-aws-request-hostname.js.map +1 -0
  5. package/dist/service/acm/command/delete-certificate/delete-certificate-authorizer.d.ts +26 -0
  6. package/dist/service/acm/command/delete-certificate/delete-certificate-authorizer.d.ts.map +1 -0
  7. package/dist/service/acm/command/delete-certificate/delete-certificate-authorizer.js +36 -0
  8. package/dist/service/acm/command/delete-certificate/delete-certificate-authorizer.js.map +1 -0
  9. package/dist/service/acm/command/delete-certificate/delete-certificate.command.d.ts +22 -0
  10. package/dist/service/acm/command/delete-certificate/delete-certificate.command.d.ts.map +1 -0
  11. package/dist/service/acm/command/delete-certificate/delete-certificate.command.js +2 -0
  12. package/dist/service/acm/command/delete-certificate/delete-certificate.command.js.map +1 -0
  13. package/dist/service/acm/command/delete-certificate/delete-certificate.handler.d.ts +39 -0
  14. package/dist/service/acm/command/delete-certificate/delete-certificate.handler.d.ts.map +1 -0
  15. package/dist/service/acm/command/delete-certificate/delete-certificate.handler.js +43 -0
  16. package/dist/service/acm/command/delete-certificate/delete-certificate.handler.js.map +1 -0
  17. package/dist/service/acm/sdk/sim-acm-sdk-command-router.d.ts.map +1 -1
  18. package/dist/service/acm/sdk/sim-acm-sdk-command-router.js +4 -0
  19. package/dist/service/acm/sdk/sim-acm-sdk-command-router.js.map +1 -1
  20. package/dist/service/acm/sim-acm.d.ts +5 -0
  21. package/dist/service/acm/sim-acm.d.ts.map +1 -1
  22. package/dist/service/acm/sim-acm.js +12 -0
  23. package/dist/service/acm/sim-acm.js.map +1 -1
  24. package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-import-properties.js +1 -1
  25. package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-properties.js +2 -2
  26. package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-properties.js.map +1 -1
  27. package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-property-rules.d.ts +22 -7
  28. package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-property-rules.d.ts.map +1 -1
  29. package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-property-rules.js +37 -16
  30. package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-property-rules.js.map +1 -1
  31. package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-authorizer-properties.js +1 -1
  32. package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-authorizer-properties.js.map +1 -1
  33. package/dist/service/apigatewayv2/cfn/integration/sim-cfn-http-api-integration-properties.js +1 -1
  34. package/dist/service/apigatewayv2/cfn/integration/sim-cfn-http-api-integration-properties.js.map +1 -1
  35. package/dist/service/apigatewayv2/cfn/route/sim-cfn-http-api-route-properties.js +1 -1
  36. package/dist/service/apigatewayv2/cfn/route/sim-cfn-http-api-route-properties.js.map +1 -1
  37. package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-property-parser.d.ts +17 -12
  38. package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-property-parser.d.ts.map +1 -1
  39. package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-property-parser.js +21 -17
  40. package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-property-parser.js.map +1 -1
  41. package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-stage-properties.js +1 -1
  42. package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-stage-properties.js.map +1 -1
  43. package/dist/service/aws/sim-aws-properties.d.ts +6 -1
  44. package/dist/service/aws/sim-aws-properties.d.ts.map +1 -1
  45. package/dist/service/aws/sim-aws.js.map +1 -1
  46. package/dist/service/cloudformation/deploy/sim-cfn-template-deployer.d.ts +9 -0
  47. package/dist/service/cloudformation/deploy/sim-cfn-template-deployer.d.ts.map +1 -1
  48. package/dist/service/cloudformation/deploy/sim-cfn-template-deployer.js +12 -0
  49. package/dist/service/cloudformation/deploy/sim-cfn-template-deployer.js.map +1 -1
  50. package/dist/service/cloudformation/resource/ignore/sim-cfn-ignored-properties.d.ts +47 -0
  51. package/dist/service/cloudformation/resource/ignore/sim-cfn-ignored-properties.d.ts.map +1 -0
  52. package/dist/service/cloudformation/resource/ignore/sim-cfn-ignored-properties.js +55 -0
  53. package/dist/service/cloudformation/resource/ignore/sim-cfn-ignored-properties.js.map +1 -0
  54. package/dist/service/cloudformation/resource/ignore/sim-cfn-ignored-property.type.d.ts +33 -0
  55. package/dist/service/cloudformation/resource/ignore/sim-cfn-ignored-property.type.d.ts.map +1 -0
  56. package/dist/service/cloudformation/resource/ignore/sim-cfn-ignored-property.type.js +2 -0
  57. package/dist/service/cloudformation/resource/ignore/sim-cfn-ignored-property.type.js.map +1 -0
  58. package/dist/service/cloudformation/resource/sim-cfn-resource.d.ts +17 -36
  59. package/dist/service/cloudformation/resource/sim-cfn-resource.d.ts.map +1 -1
  60. package/dist/service/cloudformation/resource/sim-cfn-resource.js +20 -5
  61. package/dist/service/cloudformation/resource/sim-cfn-resource.js.map +1 -1
  62. package/dist/service/cloudformation/resource/sim-cfn-resource.type.d.ts +34 -0
  63. package/dist/service/cloudformation/resource/sim-cfn-resource.type.d.ts.map +1 -0
  64. package/dist/service/cloudformation/resource/sim-cfn-resource.type.js +2 -0
  65. package/dist/service/cloudformation/resource/sim-cfn-resource.type.js.map +1 -0
  66. package/dist/service/cloudformation/stack/sim-cfn-stack.d.ts +9 -0
  67. package/dist/service/cloudformation/stack/sim-cfn-stack.d.ts.map +1 -1
  68. package/dist/service/cloudformation/stack/sim-cfn-stack.js +13 -0
  69. package/dist/service/cloudformation/stack/sim-cfn-stack.js.map +1 -1
  70. package/dist/service/cloudfront/cff/adapter/sim-cff-request-response-adapter.d.ts +19 -0
  71. package/dist/service/cloudfront/cff/adapter/sim-cff-request-response-adapter.d.ts.map +1 -1
  72. package/dist/service/cloudfront/cff/adapter/sim-cff-request-response-adapter.js +35 -2
  73. package/dist/service/cloudfront/cff/adapter/sim-cff-request-response-adapter.js.map +1 -1
  74. package/dist/service/cloudfront/command/create-distribution/create-distribution.command.d.ts +16 -0
  75. package/dist/service/cloudfront/command/create-distribution/create-distribution.command.d.ts.map +1 -1
  76. package/dist/service/cloudfront/command/create-distribution/sim-cf-distro-config-normalizer.d.ts.map +1 -1
  77. package/dist/service/cloudfront/command/create-distribution/sim-cf-distro-config-normalizer.js +1 -0
  78. package/dist/service/cloudfront/command/create-distribution/sim-cf-distro-config-normalizer.js.map +1 -1
  79. package/dist/service/cloudfront/controller/dependency/sim-cf-controller-dependency.d.ts +3 -0
  80. package/dist/service/cloudfront/controller/dependency/sim-cf-controller-dependency.d.ts.map +1 -1
  81. package/dist/service/cloudfront/controller/dependency/sim-cf-controller-dependency.js +11 -3
  82. package/dist/service/cloudfront/controller/dependency/sim-cf-controller-dependency.js.map +1 -1
  83. package/dist/service/cloudfront/controller/error/sim-cf-custom-error-responder.d.ts +29 -0
  84. package/dist/service/cloudfront/controller/error/sim-cf-custom-error-responder.d.ts.map +1 -0
  85. package/dist/service/cloudfront/controller/error/sim-cf-custom-error-responder.js +58 -0
  86. package/dist/service/cloudfront/controller/error/sim-cf-custom-error-responder.js.map +1 -0
  87. package/dist/service/cloudfront/controller/root-object/sim-cf-default-root-object-request.d.ts +17 -0
  88. package/dist/service/cloudfront/controller/root-object/sim-cf-default-root-object-request.d.ts.map +1 -0
  89. package/dist/service/cloudfront/controller/root-object/sim-cf-default-root-object-request.js +35 -0
  90. package/dist/service/cloudfront/controller/root-object/sim-cf-default-root-object-request.js.map +1 -0
  91. package/dist/service/cloudfront/controller/sim-cloudfront-request-pipeline.d.ts +5 -2
  92. package/dist/service/cloudfront/controller/sim-cloudfront-request-pipeline.d.ts.map +1 -1
  93. package/dist/service/cloudfront/controller/sim-cloudfront-request-pipeline.js +13 -3
  94. package/dist/service/cloudfront/controller/sim-cloudfront-request-pipeline.js.map +1 -1
  95. package/dist/service/cloudfront/custom-error/sim-cloudfront-custom-error-response.d.ts +24 -0
  96. package/dist/service/cloudfront/custom-error/sim-cloudfront-custom-error-response.d.ts.map +1 -0
  97. package/dist/service/cloudfront/custom-error/sim-cloudfront-custom-error-response.js +14 -0
  98. package/dist/service/cloudfront/custom-error/sim-cloudfront-custom-error-response.js.map +1 -0
  99. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-custom-error-configurator.d.ts +19 -0
  100. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-custom-error-configurator.d.ts.map +1 -0
  101. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-custom-error-configurator.js +53 -0
  102. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-custom-error-configurator.js.map +1 -0
  103. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-distribution-configurator.d.ts +11 -1
  104. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-distribution-configurator.d.ts.map +1 -1
  105. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-distribution-configurator.js +26 -1
  106. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-distribution-configurator.js.map +1 -1
  107. package/dist/service/cloudfront/distribution/sim-cloudfront-distribution.d.ts +14 -0
  108. package/dist/service/cloudfront/distribution/sim-cloudfront-distribution.d.ts.map +1 -1
  109. package/dist/service/cloudfront/distribution/sim-cloudfront-distribution.js +20 -0
  110. package/dist/service/cloudfront/distribution/sim-cloudfront-distribution.js.map +1 -1
  111. package/dist/service/cloudfront/error/sim-cloudfront.error.d.ts +31 -0
  112. package/dist/service/cloudfront/error/sim-cloudfront.error.d.ts.map +1 -1
  113. package/dist/service/cloudfront/error/sim-cloudfront.error.js +39 -0
  114. package/dist/service/cloudfront/error/sim-cloudfront.error.js.map +1 -1
  115. package/dist/service/cloudfront/router/sim-cloud-front-distro-router.d.ts.map +1 -1
  116. package/dist/service/cloudfront/router/sim-cloud-front-distro-router.js +2 -7
  117. package/dist/service/cloudfront/router/sim-cloud-front-distro-router.js.map +1 -1
  118. package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.js +1 -1
  119. package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.js.map +1 -1
  120. package/dist/service/cognito/cfn/client/sim-cfn-cognito-token-validity-units.js +1 -1
  121. package/dist/service/cognito/cfn/client/sim-cfn-cognito-token-validity-units.js.map +1 -1
  122. package/dist/service/cognito/cfn/group/sim-cfn-cognito-group-properties.js +1 -1
  123. package/dist/service/cognito/cfn/group/sim-cfn-cognito-group-properties.js.map +1 -1
  124. package/dist/service/cognito/cfn/sim-cfn-cognito-property-parser.d.ts +22 -14
  125. package/dist/service/cognito/cfn/sim-cfn-cognito-property-parser.d.ts.map +1 -1
  126. package/dist/service/cognito/cfn/sim-cfn-cognito-property-parser.js +27 -20
  127. package/dist/service/cognito/cfn/sim-cfn-cognito-property-parser.js.map +1 -1
  128. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-password-policy.js +1 -1
  129. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-password-policy.js.map +1 -1
  130. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-policies.js +1 -1
  131. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-policies.js.map +1 -1
  132. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-sign-in-policy.js +1 -1
  133. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-sign-in-policy.js.map +1 -1
  134. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.d.ts +3 -3
  135. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js +6 -6
  136. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js.map +1 -1
  137. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-capacity.js +22 -2
  138. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-capacity.js.map +1 -1
  139. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-properties.d.ts +4 -4
  140. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-properties.d.ts.map +1 -1
  141. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-properties.js +13 -10
  142. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-properties.js.map +1 -1
  143. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-property-rules.d.ts +6 -5
  144. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-property-rules.d.ts.map +1 -1
  145. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-property-rules.js +12 -12
  146. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-property-rules.js.map +1 -1
  147. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replica-rules.d.ts +4 -3
  148. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replica-rules.d.ts.map +1 -1
  149. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replica-rules.js +8 -8
  150. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replica-rules.js.map +1 -1
  151. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replicas.d.ts +28 -20
  152. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replicas.d.ts.map +1 -1
  153. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replicas.js +49 -32
  154. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replicas.js.map +1 -1
  155. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-simulated.d.ts +6 -4
  156. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-simulated.d.ts.map +1 -1
  157. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-simulated.js +18 -17
  158. package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-simulated.js.map +1 -1
  159. package/dist/service/dynamodb/cfn/property/sim-cfn-dynamodb-property-error.d.ts +6 -14
  160. package/dist/service/dynamodb/cfn/property/sim-cfn-dynamodb-property-error.d.ts.map +1 -1
  161. package/dist/service/dynamodb/cfn/property/sim-cfn-dynamodb-property-error.js +6 -19
  162. package/dist/service/dynamodb/cfn/property/sim-cfn-dynamodb-property-error.js.map +1 -1
  163. package/dist/service/dynamodb/cfn/property/sim-cfn-dynamodb-property-rules.d.ts +19 -16
  164. package/dist/service/dynamodb/cfn/property/sim-cfn-dynamodb-property-rules.d.ts.map +1 -1
  165. package/dist/service/dynamodb/cfn/property/sim-cfn-dynamodb-property-rules.js +25 -20
  166. package/dist/service/dynamodb/cfn/property/sim-cfn-dynamodb-property-rules.js.map +1 -1
  167. package/dist/service/dynamodb/cfn/property/sim-cfn-dynamodb-resource-scope.d.ts +14 -0
  168. package/dist/service/dynamodb/cfn/property/sim-cfn-dynamodb-resource-scope.d.ts.map +1 -0
  169. package/dist/service/dynamodb/cfn/property/sim-cfn-dynamodb-resource-scope.js +2 -0
  170. package/dist/service/dynamodb/cfn/property/sim-cfn-dynamodb-resource-scope.js.map +1 -0
  171. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-creator.js +1 -1
  172. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-creator.js.map +1 -1
  173. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-index-rules.d.ts +6 -4
  174. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-index-rules.d.ts.map +1 -1
  175. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-index-rules.js +7 -6
  176. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-index-rules.js.map +1 -1
  177. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-properties.d.ts +2 -2
  178. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-properties.d.ts.map +1 -1
  179. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-properties.js +7 -4
  180. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-properties.js.map +1 -1
  181. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-property-rules.d.ts +13 -13
  182. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-property-rules.d.ts.map +1 -1
  183. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-property-rules.js +22 -23
  184. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-property-rules.js.map +1 -1
  185. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-stream-rules.d.ts +6 -4
  186. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-stream-rules.d.ts.map +1 -1
  187. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-stream-rules.js +6 -5
  188. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-stream-rules.js.map +1 -1
  189. package/dist/service/dynamodb/document/sim-dynamodb-document-command-paths.d.ts +12 -3
  190. package/dist/service/dynamodb/document/sim-dynamodb-document-command-paths.d.ts.map +1 -1
  191. package/dist/service/dynamodb/document/sim-dynamodb-document-command-paths.js +28 -3
  192. package/dist/service/dynamodb/document/sim-dynamodb-document-command-paths.js.map +1 -1
  193. package/dist/service/dynamodb/document/sim-dynamodb-document-command.d.ts +2 -8
  194. package/dist/service/dynamodb/document/sim-dynamodb-document-command.d.ts.map +1 -1
  195. package/dist/service/dynamodb/document/sim-dynamodb-document-command.js +3 -20
  196. package/dist/service/dynamodb/document/sim-dynamodb-document-command.js.map +1 -1
  197. package/dist/service/dynamodb/document/sim-dynamodb-document-routes.d.ts +22 -6
  198. package/dist/service/dynamodb/document/sim-dynamodb-document-routes.d.ts.map +1 -1
  199. package/dist/service/dynamodb/document/sim-dynamodb-document-routes.js +43 -22
  200. package/dist/service/dynamodb/document/sim-dynamodb-document-routes.js.map +1 -1
  201. package/dist/service/dynamodb/document/sim-dynamodb-document-shared-name-route.d.ts +26 -0
  202. package/dist/service/dynamodb/document/sim-dynamodb-document-shared-name-route.d.ts.map +1 -0
  203. package/dist/service/dynamodb/document/sim-dynamodb-document-shared-name-route.js +31 -0
  204. package/dist/service/dynamodb/document/sim-dynamodb-document-shared-name-route.js.map +1 -0
  205. package/dist/service/dynamodb/sdk/sim-dynamodb-sdk-command-router.d.ts.map +1 -1
  206. package/dist/service/dynamodb/sdk/sim-dynamodb-sdk-command-router.js +13 -14
  207. package/dist/service/dynamodb/sdk/sim-dynamodb-sdk-command-router.js.map +1 -1
  208. package/dist/service/iam/command/policy/delete-policy/delete-policy.command.d.ts +8 -0
  209. package/dist/service/iam/command/policy/delete-policy/delete-policy.command.d.ts.map +1 -0
  210. package/dist/service/iam/command/policy/delete-policy/delete-policy.command.js +2 -0
  211. package/dist/service/iam/command/policy/delete-policy/delete-policy.command.js.map +1 -0
  212. package/dist/service/iam/command/policy/delete-policy/delete-policy.handler.d.ts +38 -0
  213. package/dist/service/iam/command/policy/delete-policy/delete-policy.handler.d.ts.map +1 -0
  214. package/dist/service/iam/command/policy/delete-policy/delete-policy.handler.js +52 -0
  215. package/dist/service/iam/command/policy/delete-policy/delete-policy.handler.js.map +1 -0
  216. package/dist/service/iam/command/policy/delete-role-policy/delete-role-policy.command.d.ts +9 -0
  217. package/dist/service/iam/command/policy/delete-role-policy/delete-role-policy.command.d.ts.map +1 -0
  218. package/dist/service/iam/command/policy/delete-role-policy/delete-role-policy.command.js +2 -0
  219. package/dist/service/iam/command/policy/delete-role-policy/delete-role-policy.command.js.map +1 -0
  220. package/dist/service/iam/command/policy/delete-role-policy/delete-role-policy.handler.d.ts +28 -0
  221. package/dist/service/iam/command/policy/delete-role-policy/delete-role-policy.handler.d.ts.map +1 -0
  222. package/dist/service/iam/command/policy/delete-role-policy/delete-role-policy.handler.js +44 -0
  223. package/dist/service/iam/command/policy/delete-role-policy/delete-role-policy.handler.js.map +1 -0
  224. package/dist/service/iam/command/policy/sim-iam-policy-command-handlers.d.ts +8 -0
  225. package/dist/service/iam/command/policy/sim-iam-policy-command-handlers.d.ts.map +1 -1
  226. package/dist/service/iam/command/policy/sim-iam-policy-command-handlers.js +17 -1
  227. package/dist/service/iam/command/policy/sim-iam-policy-command-handlers.js.map +1 -1
  228. package/dist/service/iam/command/role/delete-role/delete-role.command.d.ts +19 -0
  229. package/dist/service/iam/command/role/delete-role/delete-role.command.d.ts.map +1 -0
  230. package/dist/service/iam/command/role/delete-role/delete-role.command.js +2 -0
  231. package/dist/service/iam/command/role/delete-role/delete-role.command.js.map +1 -0
  232. package/dist/service/iam/command/role/delete-role/delete-role.handler.d.ts +30 -0
  233. package/dist/service/iam/command/role/delete-role/delete-role.handler.d.ts.map +1 -0
  234. package/dist/service/iam/command/role/delete-role/delete-role.handler.js +47 -0
  235. package/dist/service/iam/command/role/delete-role/delete-role.handler.js.map +1 -0
  236. package/dist/service/iam/command/role/detach-role-policy/detach-role-policy.command.d.ts +20 -0
  237. package/dist/service/iam/command/role/detach-role-policy/detach-role-policy.command.d.ts.map +1 -0
  238. package/dist/service/iam/command/role/detach-role-policy/detach-role-policy.command.js +2 -0
  239. package/dist/service/iam/command/role/detach-role-policy/detach-role-policy.command.js.map +1 -0
  240. package/dist/service/iam/command/role/detach-role-policy/detach-role-policy.handler.d.ts +28 -0
  241. package/dist/service/iam/command/role/detach-role-policy/detach-role-policy.handler.d.ts.map +1 -0
  242. package/dist/service/iam/command/role/detach-role-policy/detach-role-policy.handler.js +44 -0
  243. package/dist/service/iam/command/role/detach-role-policy/detach-role-policy.handler.js.map +1 -0
  244. package/dist/service/iam/command/role/sim-iam-role-command-handlers.d.ts +15 -0
  245. package/dist/service/iam/command/role/sim-iam-role-command-handlers.d.ts.map +1 -1
  246. package/dist/service/iam/command/role/sim-iam-role-command-handlers.js +36 -0
  247. package/dist/service/iam/command/role/sim-iam-role-command-handlers.js.map +1 -1
  248. package/dist/service/iam/command/sim-iam-command-handlers.d.ts.map +1 -1
  249. package/dist/service/iam/command/sim-iam-command-handlers.js +1 -0
  250. package/dist/service/iam/command/sim-iam-command-handlers.js.map +1 -1
  251. package/dist/service/iam/command/sim-iam-command.types.d.ts +22 -0
  252. package/dist/service/iam/command/sim-iam-command.types.d.ts.map +1 -0
  253. package/dist/service/iam/command/sim-iam-command.types.js +8 -0
  254. package/dist/service/iam/command/sim-iam-command.types.js.map +1 -0
  255. package/dist/service/iam/error/sim-iam.error.d.ts +11 -0
  256. package/dist/service/iam/error/sim-iam.error.d.ts.map +1 -1
  257. package/dist/service/iam/error/sim-iam.error.js +13 -0
  258. package/dist/service/iam/error/sim-iam.error.js.map +1 -1
  259. package/dist/service/iam/sdk/sim-iam-sdk-command-router.d.ts.map +1 -1
  260. package/dist/service/iam/sdk/sim-iam-sdk-command-router.js +16 -0
  261. package/dist/service/iam/sdk/sim-iam-sdk-command-router.js.map +1 -1
  262. package/dist/service/iam/sim-iam.d.ts +28 -22
  263. package/dist/service/iam/sim-iam.d.ts.map +1 -1
  264. package/dist/service/iam/sim-iam.js +24 -0
  265. package/dist/service/iam/sim-iam.js.map +1 -1
  266. package/dist/service/kms/cfn/key/sim-cfn-kms-key-properties.js +1 -1
  267. package/dist/service/kms/cfn/key/sim-cfn-kms-key-properties.js.map +1 -1
  268. package/dist/service/kms/cfn/key/sim-cfn-kms-unsimulated-key-properties.d.ts +19 -16
  269. package/dist/service/kms/cfn/key/sim-cfn-kms-unsimulated-key-properties.d.ts.map +1 -1
  270. package/dist/service/kms/cfn/key/sim-cfn-kms-unsimulated-key-properties.js +30 -28
  271. package/dist/service/kms/cfn/key/sim-cfn-kms-unsimulated-key-properties.js.map +1 -1
  272. package/dist/service/kms/command/alias/alias.command.d.ts +14 -0
  273. package/dist/service/kms/command/alias/alias.command.d.ts.map +1 -1
  274. package/dist/service/kms/command/alias/sim-kms-alias-commands.d.ts +10 -1
  275. package/dist/service/kms/command/alias/sim-kms-alias-commands.d.ts.map +1 -1
  276. package/dist/service/kms/command/alias/sim-kms-alias-commands.js +27 -2
  277. package/dist/service/kms/command/alias/sim-kms-alias-commands.js.map +1 -1
  278. package/dist/service/kms/command/sim-kms-command.types.d.ts +1 -1
  279. package/dist/service/kms/command/sim-kms-command.types.d.ts.map +1 -1
  280. package/dist/service/kms/key/sim-kms-key-store.d.ts +7 -0
  281. package/dist/service/kms/key/sim-kms-key-store.d.ts.map +1 -1
  282. package/dist/service/kms/key/sim-kms-key-store.js +9 -0
  283. package/dist/service/kms/key/sim-kms-key-store.js.map +1 -1
  284. package/dist/service/kms/sdk/sim-kms-sdk-command-router.d.ts.map +1 -1
  285. package/dist/service/kms/sdk/sim-kms-sdk-command-router.js +4 -0
  286. package/dist/service/kms/sdk/sim-kms-sdk-command-router.js.map +1 -1
  287. package/dist/service/kms/sim-kms-commands.d.ts +40 -0
  288. package/dist/service/kms/sim-kms-commands.d.ts.map +1 -0
  289. package/dist/service/kms/sim-kms-commands.js +66 -0
  290. package/dist/service/kms/sim-kms-commands.js.map +1 -0
  291. package/dist/service/kms/sim-kms.d.ts +6 -18
  292. package/dist/service/kms/sim-kms.d.ts.map +1 -1
  293. package/dist/service/kms/sim-kms.js +40 -89
  294. package/dist/service/kms/sim-kms.js.map +1 -1
  295. package/dist/service/lambda/command/delete-function/delete-function-authorizer.d.ts +22 -0
  296. package/dist/service/lambda/command/delete-function/delete-function-authorizer.d.ts.map +1 -0
  297. package/dist/service/lambda/command/delete-function/delete-function-authorizer.js +32 -0
  298. package/dist/service/lambda/command/delete-function/delete-function-authorizer.js.map +1 -0
  299. package/dist/service/lambda/command/delete-function/delete-function.command.d.ts +23 -0
  300. package/dist/service/lambda/command/delete-function/delete-function.command.d.ts.map +1 -0
  301. package/dist/service/lambda/command/delete-function/delete-function.command.js +2 -0
  302. package/dist/service/lambda/command/delete-function/delete-function.command.js.map +1 -0
  303. package/dist/service/lambda/command/delete-function/delete-function.handler.d.ts +45 -0
  304. package/dist/service/lambda/command/delete-function/delete-function.handler.d.ts.map +1 -0
  305. package/dist/service/lambda/command/delete-function/delete-function.handler.js +53 -0
  306. package/dist/service/lambda/command/delete-function/delete-function.handler.js.map +1 -0
  307. package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts +7 -0
  308. package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts.map +1 -1
  309. package/dist/service/lambda/command/function/sim-lambda-function-commands.js +7 -0
  310. package/dist/service/lambda/command/function/sim-lambda-function-commands.js.map +1 -1
  311. package/dist/service/lambda/command/sim-lambda-command.types.d.ts +1 -0
  312. package/dist/service/lambda/command/sim-lambda-command.types.d.ts.map +1 -1
  313. package/dist/service/lambda/function/url/sim-lambda-function-url-store.d.ts +7 -0
  314. package/dist/service/lambda/function/url/sim-lambda-function-url-store.d.ts.map +1 -1
  315. package/dist/service/lambda/function/url/sim-lambda-function-url-store.js +11 -0
  316. package/dist/service/lambda/function/url/sim-lambda-function-url-store.js.map +1 -1
  317. package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.d.ts.map +1 -1
  318. package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.js +4 -0
  319. package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.js.map +1 -1
  320. package/dist/service/lambda/sim-lambda-commands.d.ts.map +1 -1
  321. package/dist/service/lambda/sim-lambda-commands.js +1 -0
  322. package/dist/service/lambda/sim-lambda-commands.js.map +1 -1
  323. package/dist/service/lambda/sim-lambda.d.ts +4 -0
  324. package/dist/service/lambda/sim-lambda.d.ts.map +1 -1
  325. package/dist/service/lambda/sim-lambda.js +6 -0
  326. package/dist/service/lambda/sim-lambda.js.map +1 -1
  327. package/dist/service/route53/command/create-hosted-zone/sim-route53-zone-id.d.ts +9 -2
  328. package/dist/service/route53/command/create-hosted-zone/sim-route53-zone-id.d.ts.map +1 -1
  329. package/dist/service/route53/command/create-hosted-zone/sim-route53-zone-id.js +25 -6
  330. package/dist/service/route53/command/create-hosted-zone/sim-route53-zone-id.js.map +1 -1
  331. package/dist/service/route53/command/delete-hosted-zone/delete-hosted-zone-authorizer.d.ts +26 -0
  332. package/dist/service/route53/command/delete-hosted-zone/delete-hosted-zone-authorizer.d.ts.map +1 -0
  333. package/dist/service/route53/command/delete-hosted-zone/delete-hosted-zone-authorizer.js +36 -0
  334. package/dist/service/route53/command/delete-hosted-zone/delete-hosted-zone-authorizer.js.map +1 -0
  335. package/dist/service/route53/command/delete-hosted-zone/delete-hosted-zone.command.d.ts +26 -0
  336. package/dist/service/route53/command/delete-hosted-zone/delete-hosted-zone.command.d.ts.map +1 -0
  337. package/dist/service/route53/command/delete-hosted-zone/delete-hosted-zone.command.js +2 -0
  338. package/dist/service/route53/command/delete-hosted-zone/delete-hosted-zone.command.js.map +1 -0
  339. package/dist/service/route53/command/delete-hosted-zone/delete-hosted-zone.handler.d.ts +44 -0
  340. package/dist/service/route53/command/delete-hosted-zone/delete-hosted-zone.handler.d.ts.map +1 -0
  341. package/dist/service/route53/command/delete-hosted-zone/delete-hosted-zone.handler.js +59 -0
  342. package/dist/service/route53/command/delete-hosted-zone/delete-hosted-zone.handler.js.map +1 -0
  343. package/dist/service/route53/error/sim-route53.error.d.ts +19 -0
  344. package/dist/service/route53/error/sim-route53.error.d.ts.map +1 -1
  345. package/dist/service/route53/error/sim-route53.error.js +23 -0
  346. package/dist/service/route53/error/sim-route53.error.js.map +1 -1
  347. package/dist/service/route53/hosted-zone/sim-route53-hosted-zone.d.ts +8 -0
  348. package/dist/service/route53/hosted-zone/sim-route53-hosted-zone.d.ts.map +1 -1
  349. package/dist/service/route53/hosted-zone/sim-route53-hosted-zone.js +14 -0
  350. package/dist/service/route53/hosted-zone/sim-route53-hosted-zone.js.map +1 -1
  351. package/dist/service/route53/local-name/sim-route53-local-name.d.ts +11 -0
  352. package/dist/service/route53/local-name/sim-route53-local-name.d.ts.map +1 -1
  353. package/dist/service/route53/local-name/sim-route53-local-name.js +18 -3
  354. package/dist/service/route53/local-name/sim-route53-local-name.js.map +1 -1
  355. package/dist/service/route53/registry/sim-route53-registry.d.ts +8 -0
  356. package/dist/service/route53/registry/sim-route53-registry.d.ts.map +1 -1
  357. package/dist/service/route53/registry/sim-route53-registry.js +11 -0
  358. package/dist/service/route53/registry/sim-route53-registry.js.map +1 -1
  359. package/dist/service/route53/resolve/sim-route53-resolver.d.ts +8 -2
  360. package/dist/service/route53/resolve/sim-route53-resolver.d.ts.map +1 -1
  361. package/dist/service/route53/resolve/sim-route53-resolver.js +10 -4
  362. package/dist/service/route53/resolve/sim-route53-resolver.js.map +1 -1
  363. package/dist/service/route53/sdk/sim-route53-sdk-command-router.d.ts.map +1 -1
  364. package/dist/service/route53/sdk/sim-route53-sdk-command-router.js +4 -0
  365. package/dist/service/route53/sdk/sim-route53-sdk-command-router.js.map +1 -1
  366. package/dist/service/route53/sim-route53.d.ts +5 -0
  367. package/dist/service/route53/sim-route53.d.ts.map +1 -1
  368. package/dist/service/route53/sim-route53.js +13 -0
  369. package/dist/service/route53/sim-route53.js.map +1 -1
  370. package/dist/service/s3/bucket/sim-s3-bucket-access.d.ts +37 -0
  371. package/dist/service/s3/bucket/sim-s3-bucket-access.d.ts.map +1 -0
  372. package/dist/service/s3/bucket/sim-s3-bucket-access.js +46 -0
  373. package/dist/service/s3/bucket/sim-s3-bucket-access.js.map +1 -0
  374. package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-creator.d.ts +4 -5
  375. package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-creator.d.ts.map +1 -1
  376. package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-creator.js +6 -6
  377. package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-creator.js.map +1 -1
  378. package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-property-names.d.ts +26 -0
  379. package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-property-names.d.ts.map +1 -0
  380. package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-property-names.js +77 -0
  381. package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-property-names.js.map +1 -0
  382. package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-property-rules.d.ts +18 -7
  383. package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-property-rules.d.ts.map +1 -1
  384. package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-property-rules.js +25 -65
  385. package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-property-rules.js.map +1 -1
  386. package/dist/service/s3/command/bucket/sim-s3-bucket-commands.d.ts +4 -0
  387. package/dist/service/s3/command/bucket/sim-s3-bucket-commands.d.ts.map +1 -1
  388. package/dist/service/s3/command/bucket/sim-s3-bucket-commands.js +7 -0
  389. package/dist/service/s3/command/bucket/sim-s3-bucket-commands.js.map +1 -1
  390. package/dist/service/s3/command/delete-bucket/delete-bucket-authorizer.d.ts +24 -0
  391. package/dist/service/s3/command/delete-bucket/delete-bucket-authorizer.d.ts.map +1 -0
  392. package/dist/service/s3/command/delete-bucket/delete-bucket-authorizer.js +37 -0
  393. package/dist/service/s3/command/delete-bucket/delete-bucket-authorizer.js.map +1 -0
  394. package/dist/service/s3/command/delete-bucket/delete-bucket.command.d.ts +23 -0
  395. package/dist/service/s3/command/delete-bucket/delete-bucket.command.d.ts.map +1 -0
  396. package/dist/service/s3/command/delete-bucket/delete-bucket.command.js +2 -0
  397. package/dist/service/s3/command/delete-bucket/delete-bucket.command.js.map +1 -0
  398. package/dist/service/s3/command/delete-bucket/delete-bucket.handler.d.ts +43 -0
  399. package/dist/service/s3/command/delete-bucket/delete-bucket.handler.d.ts.map +1 -0
  400. package/dist/service/s3/command/delete-bucket/delete-bucket.handler.js +55 -0
  401. package/dist/service/s3/command/delete-bucket/delete-bucket.handler.js.map +1 -0
  402. package/dist/service/s3/command/sim-s3-command.types.d.ts +1 -0
  403. package/dist/service/s3/command/sim-s3-command.types.d.ts.map +1 -1
  404. package/dist/service/s3/error/sim-s3.error.d.ts +10 -0
  405. package/dist/service/s3/error/sim-s3.error.d.ts.map +1 -1
  406. package/dist/service/s3/error/sim-s3.error.js +12 -0
  407. package/dist/service/s3/error/sim-s3.error.js.map +1 -1
  408. package/dist/service/s3/sdk/sim-s3-sdk-command-router.d.ts.map +1 -1
  409. package/dist/service/s3/sdk/sim-s3-sdk-command-router.js +4 -0
  410. package/dist/service/s3/sdk/sim-s3-sdk-command-router.js.map +1 -1
  411. package/dist/service/s3/sim-s3-global-registry.d.ts +7 -0
  412. package/dist/service/s3/sim-s3-global-registry.d.ts.map +1 -1
  413. package/dist/service/s3/sim-s3-global-registry.js +9 -0
  414. package/dist/service/s3/sim-s3-global-registry.js.map +1 -1
  415. package/dist/service/s3/sim-s3.d.ts +5 -0
  416. package/dist/service/s3/sim-s3.d.ts.map +1 -1
  417. package/dist/service/s3/sim-s3.js +16 -12
  418. package/dist/service/s3/sim-s3.js.map +1 -1
  419. package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-properties.d.ts.map +1 -1
  420. package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-properties.js +2 -1
  421. package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-properties.js.map +1 -1
  422. package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-property-names.d.ts +31 -0
  423. package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-property-names.d.ts.map +1 -0
  424. package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-property-names.js +63 -0
  425. package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-property-names.js.map +1 -0
  426. package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-property-rules.d.ts +27 -17
  427. package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-property-rules.d.ts.map +1 -1
  428. package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-property-rules.js +39 -73
  429. package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-property-rules.js.map +1 -1
  430. package/package.json +1 -1
@@ -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,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,SAAiB;IAEjB,OAAO,IAAI,2BAA2B,CAAC;QACrC,gBAAgB,EAAE,mCAAmC;QACrD,SAAS;QACT,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,6BAA6B;QACxC,WAAW,EAAE,+BAA+B;KAC7C,CAAC,CAAC;AACL,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,0CAA0C,CACxD,SAAiB;IAEjB,OAAO,IAAI,2BAA2B,CAAC;QACrC,gBAAgB,EAAE,mCAAmC;QACrD,SAAS;QACT,IAAI,EAAE,8BAA8B;QACpC,SAAS,EAAE,kCAAkC;QAC7C,WAAW,EAAE,oCAAoC;KAClD,CAAC,CAAC;AACL,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,0CAA0C,CACxD,SAAiB;IAEjB,OAAO,IAAI,2BAA2B,CAAC;QACrC,gBAAgB,EAAE,mCAAmC;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,MAAM,OAAO,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QAE/B,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;YAC1B,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CACrB,oEAAoE;gBAClE,8DAA8D;gBAC9D,2BAA2B,CAC9B,CAAC;QACJ,CAAC;QAED,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;QAE9B,OAAO,OAAO,CAAC;IACjB,CAAC;IAED;;;;;;;OAOG;IACK,eAAe,CAAC,OAAqC;QAC3D,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAExC,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;YACzB,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC;QAC3D,CAAC;QAED,IAAI,MAAM,KAAK,IAAI,CAAC,UAAU,EAAE,CAAC;YAC/B,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CACrB,wBAAwB,MAAM,oCAAoC;gBAChE,GAAG,IAAI,CAAC,UAAU,6CAA6C;gBAC/D,sCAAsC,CACzC,CAAC;QACJ,CAAC;IACH,CAAC;IAED;;;;;OAKG;IACK,eAAe,CACrB,QAAiD;QAEjD,MAAM,OAAO,GAAG,QAAQ;aACrB,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;QAEd,OAAO,IAAI,KAAK,CACd,oDAAoD,IAAI,CAAC,SAAS,IAAI;YACpE,kBAAkB,OAAO,4CAA4C;YACrE,+DAA+D;YAC/D,6CAA6C,CAChD,CAAC;IACJ,CAAC;CACF"}
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":"AASA;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,OAAO,iCAAiC;IAC3B,KAAK,CAA8B;IACnC,UAAU,CAAS;IACnB,MAAM,CAA+B;IAEtD,YAAY,UAAuD;QACjE,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;QAC9B,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;QAC9C,MAAM,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC;QAExB,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACvB,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CACrB,oEAAoE;gBAClE,8DAA8D;gBAC9D,2BAA2B,CAC9B,CAAC;QACJ,CAAC;QAED,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC1B,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC;QAED,OAAO,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IACzC,CAAC;IAED;;;;;;;OAOG;IACK,WAAW,CACjB,OAAqC;QAErC,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAExC,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;YACzB,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC;QAC3D,CAAC;QAED,IAAI,MAAM,KAAK,IAAI,CAAC,UAAU,EAAE,CAAC;YAC/B,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CACrB,wBAAwB,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,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;IACtD,MAAM,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;IAE9D,8BAA8B,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACpD,mCAAmC,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAChE,wCAAwC,CAAC,KAAK,CAAC,CAAC,WAAW,CACzD,MAAM,CAAC,IAAI,CAAC,uBAAuB,CAAC,CACrC,CAAC;IACF,oCAAoC,CAAC,KAAK,CAAC,CAAC,KAAK,CAC/C,MAAM,CAAC,MAAM,CAAC,qBAAqB,CAAC,CACrC,CAAC;IACF,qCAAqC,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC5D,0CAA0C,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;IAE9E,kBAAkB,CAAC,KAAK,EAAE,CAAC,MAAM,EAAE,GAAG,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,cAAc,CAAC,CAAC,CAAC;AAChF,CAAC;AAED;;;;;;GAMG;AACH,SAAS,kBAAkB,CACzB,KAAkC,EAClC,OAAgD,EAChD,OAAgD;IAEhD,MAAM,UAAU,GAAG,2CAA2C,CAAC,KAAK,CAAC,CAAC;IACtE,MAAM,SAAS,GAAG,0CAA0C,CAAC,KAAK,CAAC,CAAC;IAEpE,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,oCAAoC,CAAC,CAAC,CAAC;IACxE,CAAC;IAED,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,mCAAmC,CAAC,CAAC,CAAC;IACtE,CAAC;AACH,CAAC"}
@@ -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"}
@@ -1,10 +1,11 @@
1
1
  import type { SimCfnDynamoDbPropertyValues } from "./sim-cfn-dynamodb-property-values.js";
2
+ import type { SimCfnDynamoDbResourceScope } from "./sim-cfn-dynamodb-resource-scope.js";
2
3
  interface SimCfnDynamoDbPropertyRulesProperties {
3
4
  readonly resourceTypeName: string;
4
- readonly logicalId: string;
5
+ readonly scope: SimCfnDynamoDbResourceScope;
5
6
  /**
6
7
  * What the properties belong to, where they are not the Resource's own: a
7
- * `GlobalSecondaryIndex`, a `StreamSpecification`, a replica. A refusal names
8
+ * `GlobalSecondaryIndex`, a `StreamSpecification`, a replica. A record names
8
9
  * it, so an unrecognised property says which shape it was not part of.
9
10
  */
10
11
  readonly kind?: string | undefined;
@@ -12,14 +13,16 @@ interface SimCfnDynamoDbPropertyRulesProperties {
12
13
  readonly unsimulated?: ReadonlySet<string> | undefined;
13
14
  }
14
15
  /**
15
- * Which properties of one object in a DynamoDB Resource template simulated
16
- * DynamoDB can act on.
16
+ * What simulated DynamoDB does with each property of one object in a table
17
+ * template.
17
18
  *
18
- * A real property that is not simulated skips the Resource, with a reason
19
- * naming it, so the rest of the stack still deploys and the report says what
20
- * was left out. Anything that is not a property of that object at all fails the
21
- * Resource instead, because that is a template real CloudFormation would refuse
22
- * too.
19
+ * A property this simulation cannot act on does not stop the table being
20
+ * created. The table is created without it and the omission is recorded
21
+ * against the Resource, where a test that expected the setting to do something
22
+ * can find out that it never did. Anything that is not a property of that
23
+ * object at all is recorded the same way, since a typo and a property AWS added
24
+ * after this list was written look identical from here, and a table that
25
+ * deploys is more useful than a stack that fails over either.
23
26
  *
24
27
  * The same rule applies at every level a template nests: the Resource's own
25
28
  * properties, the entries of an index list, a stream specification, a replica.
@@ -28,25 +31,25 @@ interface SimCfnDynamoDbPropertyRulesProperties {
28
31
  */
29
32
  export declare class SimCfnDynamoDbPropertyRules {
30
33
  private readonly resourceTypeName;
31
- private readonly logicalId;
34
+ private readonly scope;
32
35
  private readonly kind;
33
36
  private readonly simulated;
34
37
  private readonly unsimulated;
35
38
  constructor(properties: SimCfnDynamoDbPropertyRulesProperties);
36
39
  /**
37
- * Refuse everything about this object that is not simulated.
40
+ * Record everything about this object the table is created without.
38
41
  *
39
- * An object the template left out has nothing here to refuse.
42
+ * An object the template left out has nothing here to record.
40
43
  */
41
- assertSimulated(values: SimCfnDynamoDbPropertyValues | undefined): void;
44
+ apply(values: SimCfnDynamoDbPropertyValues | undefined): void;
42
45
  /**
43
46
  * Apply the same rule to every entry of a list, such as the indexes or the
44
47
  * replicas a template declares.
45
48
  */
46
- assertEachSimulated(entries: readonly SimCfnDynamoDbPropertyValues[]): void;
47
- private assertSimulatedProperty;
49
+ applyToEach(entries: readonly SimCfnDynamoDbPropertyValues[]): void;
50
+ private applyToProperty;
48
51
  /**
49
- * What an unrecognised property was not part of, as a refusal names it.
52
+ * What an unrecognised property was not part of, as a record names it.
50
53
  */
51
54
  private description;
52
55
  }
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cfn-dynamodb-property-rules.d.ts","sourceRoot":"","sources":["../../../../../src/service/dynamodb/cfn/property/sim-cfn-dynamodb-property-rules.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AAE1F,UAAU,qCAAqC;IAC7C,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAE3B;;;;OAIG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACxC,QAAQ,CAAC,WAAW,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;CACxD;AAED;;;;;;;;;;;;;;GAcG;AACH,qBAAa,2BAA2B;IACtC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAS;IAC1C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAqB;IAC1C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAsB;IAChD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAsB;IAElD,YAAY,UAAU,EAAE,qCAAqC,EAM5D;IAED;;;;OAIG;IACH,eAAe,CAAC,MAAM,EAAE,4BAA4B,GAAG,SAAS,GAAG,IAAI,CAQtE;IAED;;;OAGG;IACH,mBAAmB,CAAC,OAAO,EAAE,SAAS,4BAA4B,EAAE,GAAG,IAAI,CAI1E;IAED,OAAO,CAAC,uBAAuB;IAuB/B;;OAEG;IACH,OAAO,CAAC,WAAW;CAOpB"}
1
+ {"version":3,"file":"sim-cfn-dynamodb-property-rules.d.ts","sourceRoot":"","sources":["../../../../../src/service/dynamodb/cfn/property/sim-cfn-dynamodb-property-rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AAC1F,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AAExF,UAAU,qCAAqC;IAC7C,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,KAAK,EAAE,2BAA2B,CAAC;IAE5C;;;;OAIG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACxC,QAAQ,CAAC,WAAW,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;CACxD;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,2BAA2B;IACtC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAS;IAC1C,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA8B;IACpD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAqB;IAC1C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAsB;IAChD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAsB;IAElD,YAAY,UAAU,EAAE,qCAAqC,EAM5D;IAED;;;;OAIG;IACH,KAAK,CAAC,MAAM,EAAE,4BAA4B,GAAG,SAAS,GAAG,IAAI,CAQ5D;IAED;;;OAGG;IACH,WAAW,CAAC,OAAO,EAAE,SAAS,4BAA4B,EAAE,GAAG,IAAI,CAIlE;IAED,OAAO,CAAC,eAAe;IA2BvB;;OAEG;IACH,OAAO,CAAC,WAAW;CAOpB"}