@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.
- package/dist/service/acm/command/delete-certificate/delete-certificate-authorizer.d.ts +26 -0
- package/dist/service/acm/command/delete-certificate/delete-certificate-authorizer.d.ts.map +1 -0
- package/dist/service/acm/command/delete-certificate/delete-certificate-authorizer.js +36 -0
- package/dist/service/acm/command/delete-certificate/delete-certificate-authorizer.js.map +1 -0
- package/dist/service/acm/command/delete-certificate/delete-certificate.command.d.ts +22 -0
- package/dist/service/acm/command/delete-certificate/delete-certificate.command.d.ts.map +1 -0
- package/dist/service/acm/command/delete-certificate/delete-certificate.command.js +2 -0
- package/dist/service/acm/command/delete-certificate/delete-certificate.command.js.map +1 -0
- package/dist/service/acm/command/delete-certificate/delete-certificate.handler.d.ts +39 -0
- package/dist/service/acm/command/delete-certificate/delete-certificate.handler.d.ts.map +1 -0
- package/dist/service/acm/command/delete-certificate/delete-certificate.handler.js +43 -0
- package/dist/service/acm/command/delete-certificate/delete-certificate.handler.js.map +1 -0
- package/dist/service/acm/sdk/sim-acm-sdk-command-router.d.ts.map +1 -1
- package/dist/service/acm/sdk/sim-acm-sdk-command-router.js +4 -0
- package/dist/service/acm/sdk/sim-acm-sdk-command-router.js.map +1 -1
- package/dist/service/acm/sim-acm.d.ts +5 -0
- package/dist/service/acm/sim-acm.d.ts.map +1 -1
- package/dist/service/acm/sim-acm.js +12 -0
- package/dist/service/acm/sim-acm.js.map +1 -1
- package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-import-properties.js +1 -1
- package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-properties.js +2 -2
- package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-properties.js.map +1 -1
- package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-property-rules.d.ts +22 -7
- package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-property-rules.d.ts.map +1 -1
- package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-property-rules.js +37 -16
- package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-property-rules.js.map +1 -1
- package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-authorizer-properties.js +1 -1
- package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-authorizer-properties.js.map +1 -1
- package/dist/service/apigatewayv2/cfn/integration/sim-cfn-http-api-integration-properties.js +1 -1
- package/dist/service/apigatewayv2/cfn/integration/sim-cfn-http-api-integration-properties.js.map +1 -1
- package/dist/service/apigatewayv2/cfn/route/sim-cfn-http-api-route-properties.js +1 -1
- package/dist/service/apigatewayv2/cfn/route/sim-cfn-http-api-route-properties.js.map +1 -1
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-property-parser.d.ts +17 -12
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-property-parser.d.ts.map +1 -1
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-property-parser.js +21 -17
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-property-parser.js.map +1 -1
- package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-stage-properties.js +1 -1
- package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-stage-properties.js.map +1 -1
- package/dist/service/cloudformation/resource/ignore/sim-cfn-ignored-properties.d.ts +47 -0
- package/dist/service/cloudformation/resource/ignore/sim-cfn-ignored-properties.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/ignore/sim-cfn-ignored-properties.js +55 -0
- package/dist/service/cloudformation/resource/ignore/sim-cfn-ignored-properties.js.map +1 -0
- package/dist/service/cloudformation/resource/ignore/sim-cfn-ignored-property.type.d.ts +33 -0
- package/dist/service/cloudformation/resource/ignore/sim-cfn-ignored-property.type.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/ignore/sim-cfn-ignored-property.type.js +2 -0
- package/dist/service/cloudformation/resource/ignore/sim-cfn-ignored-property.type.js.map +1 -0
- package/dist/service/cloudformation/resource/sim-cfn-resource.d.ts +17 -36
- package/dist/service/cloudformation/resource/sim-cfn-resource.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/sim-cfn-resource.js +20 -5
- package/dist/service/cloudformation/resource/sim-cfn-resource.js.map +1 -1
- package/dist/service/cloudformation/resource/sim-cfn-resource.type.d.ts +34 -0
- package/dist/service/cloudformation/resource/sim-cfn-resource.type.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/sim-cfn-resource.type.js +2 -0
- package/dist/service/cloudformation/resource/sim-cfn-resource.type.js.map +1 -0
- package/dist/service/cloudformation/stack/sim-cfn-stack.d.ts +9 -0
- package/dist/service/cloudformation/stack/sim-cfn-stack.d.ts.map +1 -1
- package/dist/service/cloudformation/stack/sim-cfn-stack.js +13 -0
- package/dist/service/cloudformation/stack/sim-cfn-stack.js.map +1 -1
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.js +1 -1
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.js.map +1 -1
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-token-validity-units.js +1 -1
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-token-validity-units.js.map +1 -1
- package/dist/service/cognito/cfn/group/sim-cfn-cognito-group-properties.js +1 -1
- package/dist/service/cognito/cfn/group/sim-cfn-cognito-group-properties.js.map +1 -1
- package/dist/service/cognito/cfn/sim-cfn-cognito-property-parser.d.ts +22 -14
- package/dist/service/cognito/cfn/sim-cfn-cognito-property-parser.d.ts.map +1 -1
- package/dist/service/cognito/cfn/sim-cfn-cognito-property-parser.js +27 -20
- package/dist/service/cognito/cfn/sim-cfn-cognito-property-parser.js.map +1 -1
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-password-policy.js +1 -1
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-password-policy.js.map +1 -1
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-policies.js +1 -1
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-policies.js.map +1 -1
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-sign-in-policy.js +1 -1
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-sign-in-policy.js.map +1 -1
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.d.ts +3 -3
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js +6 -6
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js.map +1 -1
- package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-capacity.js +22 -2
- package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-capacity.js.map +1 -1
- package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-properties.d.ts +4 -4
- package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-properties.d.ts.map +1 -1
- package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-properties.js +13 -10
- package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-properties.js.map +1 -1
- package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-property-rules.d.ts +6 -5
- package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-property-rules.d.ts.map +1 -1
- package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-property-rules.js +12 -12
- package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-property-rules.js.map +1 -1
- package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replica-rules.d.ts +4 -3
- package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replica-rules.d.ts.map +1 -1
- package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replica-rules.js +8 -8
- package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replica-rules.js.map +1 -1
- package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replicas.d.ts +28 -20
- package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replicas.d.ts.map +1 -1
- package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replicas.js +49 -32
- package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replicas.js.map +1 -1
- package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-simulated.d.ts +6 -4
- package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-simulated.d.ts.map +1 -1
- package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-simulated.js +18 -17
- package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-simulated.js.map +1 -1
- package/dist/service/dynamodb/cfn/property/sim-cfn-dynamodb-property-error.d.ts +6 -14
- package/dist/service/dynamodb/cfn/property/sim-cfn-dynamodb-property-error.d.ts.map +1 -1
- package/dist/service/dynamodb/cfn/property/sim-cfn-dynamodb-property-error.js +6 -19
- package/dist/service/dynamodb/cfn/property/sim-cfn-dynamodb-property-error.js.map +1 -1
- package/dist/service/dynamodb/cfn/property/sim-cfn-dynamodb-property-rules.d.ts +19 -16
- package/dist/service/dynamodb/cfn/property/sim-cfn-dynamodb-property-rules.d.ts.map +1 -1
- package/dist/service/dynamodb/cfn/property/sim-cfn-dynamodb-property-rules.js +25 -20
- package/dist/service/dynamodb/cfn/property/sim-cfn-dynamodb-property-rules.js.map +1 -1
- package/dist/service/dynamodb/cfn/property/sim-cfn-dynamodb-resource-scope.d.ts +14 -0
- package/dist/service/dynamodb/cfn/property/sim-cfn-dynamodb-resource-scope.d.ts.map +1 -0
- package/dist/service/dynamodb/cfn/property/sim-cfn-dynamodb-resource-scope.js +2 -0
- package/dist/service/dynamodb/cfn/property/sim-cfn-dynamodb-resource-scope.js.map +1 -0
- package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-creator.js +1 -1
- package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-creator.js.map +1 -1
- package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-index-rules.d.ts +6 -4
- package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-index-rules.d.ts.map +1 -1
- package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-index-rules.js +7 -6
- package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-index-rules.js.map +1 -1
- package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-properties.d.ts +2 -2
- package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-properties.d.ts.map +1 -1
- package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-properties.js +7 -4
- package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-properties.js.map +1 -1
- package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-property-rules.d.ts +13 -13
- package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-property-rules.d.ts.map +1 -1
- package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-property-rules.js +22 -23
- package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-property-rules.js.map +1 -1
- package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-stream-rules.d.ts +6 -4
- package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-stream-rules.d.ts.map +1 -1
- package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-stream-rules.js +6 -5
- package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-stream-rules.js.map +1 -1
- package/dist/service/iam/command/policy/delete-policy/delete-policy.command.d.ts +8 -0
- package/dist/service/iam/command/policy/delete-policy/delete-policy.command.d.ts.map +1 -0
- package/dist/service/iam/command/policy/delete-policy/delete-policy.command.js +2 -0
- package/dist/service/iam/command/policy/delete-policy/delete-policy.command.js.map +1 -0
- package/dist/service/iam/command/policy/delete-policy/delete-policy.handler.d.ts +38 -0
- package/dist/service/iam/command/policy/delete-policy/delete-policy.handler.d.ts.map +1 -0
- package/dist/service/iam/command/policy/delete-policy/delete-policy.handler.js +52 -0
- package/dist/service/iam/command/policy/delete-policy/delete-policy.handler.js.map +1 -0
- package/dist/service/iam/command/policy/delete-role-policy/delete-role-policy.command.d.ts +9 -0
- package/dist/service/iam/command/policy/delete-role-policy/delete-role-policy.command.d.ts.map +1 -0
- package/dist/service/iam/command/policy/delete-role-policy/delete-role-policy.command.js +2 -0
- package/dist/service/iam/command/policy/delete-role-policy/delete-role-policy.command.js.map +1 -0
- package/dist/service/iam/command/policy/delete-role-policy/delete-role-policy.handler.d.ts +28 -0
- package/dist/service/iam/command/policy/delete-role-policy/delete-role-policy.handler.d.ts.map +1 -0
- package/dist/service/iam/command/policy/delete-role-policy/delete-role-policy.handler.js +44 -0
- package/dist/service/iam/command/policy/delete-role-policy/delete-role-policy.handler.js.map +1 -0
- package/dist/service/iam/command/policy/sim-iam-policy-command-handlers.d.ts +8 -0
- package/dist/service/iam/command/policy/sim-iam-policy-command-handlers.d.ts.map +1 -1
- package/dist/service/iam/command/policy/sim-iam-policy-command-handlers.js +17 -1
- package/dist/service/iam/command/policy/sim-iam-policy-command-handlers.js.map +1 -1
- package/dist/service/iam/command/role/delete-role/delete-role.command.d.ts +19 -0
- package/dist/service/iam/command/role/delete-role/delete-role.command.d.ts.map +1 -0
- package/dist/service/iam/command/role/delete-role/delete-role.command.js +2 -0
- package/dist/service/iam/command/role/delete-role/delete-role.command.js.map +1 -0
- package/dist/service/iam/command/role/delete-role/delete-role.handler.d.ts +30 -0
- package/dist/service/iam/command/role/delete-role/delete-role.handler.d.ts.map +1 -0
- package/dist/service/iam/command/role/delete-role/delete-role.handler.js +47 -0
- package/dist/service/iam/command/role/delete-role/delete-role.handler.js.map +1 -0
- package/dist/service/iam/command/role/detach-role-policy/detach-role-policy.command.d.ts +20 -0
- package/dist/service/iam/command/role/detach-role-policy/detach-role-policy.command.d.ts.map +1 -0
- package/dist/service/iam/command/role/detach-role-policy/detach-role-policy.command.js +2 -0
- package/dist/service/iam/command/role/detach-role-policy/detach-role-policy.command.js.map +1 -0
- package/dist/service/iam/command/role/detach-role-policy/detach-role-policy.handler.d.ts +28 -0
- package/dist/service/iam/command/role/detach-role-policy/detach-role-policy.handler.d.ts.map +1 -0
- package/dist/service/iam/command/role/detach-role-policy/detach-role-policy.handler.js +44 -0
- package/dist/service/iam/command/role/detach-role-policy/detach-role-policy.handler.js.map +1 -0
- package/dist/service/iam/command/role/sim-iam-role-command-handlers.d.ts +15 -0
- package/dist/service/iam/command/role/sim-iam-role-command-handlers.d.ts.map +1 -1
- package/dist/service/iam/command/role/sim-iam-role-command-handlers.js +36 -0
- package/dist/service/iam/command/role/sim-iam-role-command-handlers.js.map +1 -1
- package/dist/service/iam/command/sim-iam-command-handlers.d.ts.map +1 -1
- package/dist/service/iam/command/sim-iam-command-handlers.js +1 -0
- package/dist/service/iam/command/sim-iam-command-handlers.js.map +1 -1
- package/dist/service/iam/command/sim-iam-command.types.d.ts +22 -0
- package/dist/service/iam/command/sim-iam-command.types.d.ts.map +1 -0
- package/dist/service/iam/command/sim-iam-command.types.js +8 -0
- package/dist/service/iam/command/sim-iam-command.types.js.map +1 -0
- package/dist/service/iam/error/sim-iam.error.d.ts +11 -0
- package/dist/service/iam/error/sim-iam.error.d.ts.map +1 -1
- package/dist/service/iam/error/sim-iam.error.js +13 -0
- package/dist/service/iam/error/sim-iam.error.js.map +1 -1
- package/dist/service/iam/sdk/sim-iam-sdk-command-router.d.ts.map +1 -1
- package/dist/service/iam/sdk/sim-iam-sdk-command-router.js +16 -0
- package/dist/service/iam/sdk/sim-iam-sdk-command-router.js.map +1 -1
- package/dist/service/iam/sim-iam.d.ts +28 -22
- package/dist/service/iam/sim-iam.d.ts.map +1 -1
- package/dist/service/iam/sim-iam.js +24 -0
- package/dist/service/iam/sim-iam.js.map +1 -1
- package/dist/service/kms/cfn/key/sim-cfn-kms-key-properties.js +1 -1
- package/dist/service/kms/cfn/key/sim-cfn-kms-key-properties.js.map +1 -1
- package/dist/service/kms/cfn/key/sim-cfn-kms-unsimulated-key-properties.d.ts +19 -16
- package/dist/service/kms/cfn/key/sim-cfn-kms-unsimulated-key-properties.d.ts.map +1 -1
- package/dist/service/kms/cfn/key/sim-cfn-kms-unsimulated-key-properties.js +30 -28
- package/dist/service/kms/cfn/key/sim-cfn-kms-unsimulated-key-properties.js.map +1 -1
- package/dist/service/kms/command/alias/alias.command.d.ts +14 -0
- package/dist/service/kms/command/alias/alias.command.d.ts.map +1 -1
- package/dist/service/kms/command/alias/sim-kms-alias-commands.d.ts +10 -1
- package/dist/service/kms/command/alias/sim-kms-alias-commands.d.ts.map +1 -1
- package/dist/service/kms/command/alias/sim-kms-alias-commands.js +27 -2
- package/dist/service/kms/command/alias/sim-kms-alias-commands.js.map +1 -1
- package/dist/service/kms/command/sim-kms-command.types.d.ts +1 -1
- package/dist/service/kms/command/sim-kms-command.types.d.ts.map +1 -1
- package/dist/service/kms/key/sim-kms-key-store.d.ts +7 -0
- package/dist/service/kms/key/sim-kms-key-store.d.ts.map +1 -1
- package/dist/service/kms/key/sim-kms-key-store.js +9 -0
- package/dist/service/kms/key/sim-kms-key-store.js.map +1 -1
- package/dist/service/kms/sdk/sim-kms-sdk-command-router.d.ts.map +1 -1
- package/dist/service/kms/sdk/sim-kms-sdk-command-router.js +4 -0
- package/dist/service/kms/sdk/sim-kms-sdk-command-router.js.map +1 -1
- package/dist/service/kms/sim-kms-commands.d.ts +40 -0
- package/dist/service/kms/sim-kms-commands.d.ts.map +1 -0
- package/dist/service/kms/sim-kms-commands.js +66 -0
- package/dist/service/kms/sim-kms-commands.js.map +1 -0
- package/dist/service/kms/sim-kms.d.ts +6 -18
- package/dist/service/kms/sim-kms.d.ts.map +1 -1
- package/dist/service/kms/sim-kms.js +40 -89
- package/dist/service/kms/sim-kms.js.map +1 -1
- package/dist/service/lambda/command/delete-function/delete-function-authorizer.d.ts +22 -0
- package/dist/service/lambda/command/delete-function/delete-function-authorizer.d.ts.map +1 -0
- package/dist/service/lambda/command/delete-function/delete-function-authorizer.js +32 -0
- package/dist/service/lambda/command/delete-function/delete-function-authorizer.js.map +1 -0
- package/dist/service/lambda/command/delete-function/delete-function.command.d.ts +23 -0
- package/dist/service/lambda/command/delete-function/delete-function.command.d.ts.map +1 -0
- package/dist/service/lambda/command/delete-function/delete-function.command.js +2 -0
- package/dist/service/lambda/command/delete-function/delete-function.command.js.map +1 -0
- package/dist/service/lambda/command/delete-function/delete-function.handler.d.ts +45 -0
- package/dist/service/lambda/command/delete-function/delete-function.handler.d.ts.map +1 -0
- package/dist/service/lambda/command/delete-function/delete-function.handler.js +53 -0
- package/dist/service/lambda/command/delete-function/delete-function.handler.js.map +1 -0
- package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts +7 -0
- package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts.map +1 -1
- package/dist/service/lambda/command/function/sim-lambda-function-commands.js +7 -0
- package/dist/service/lambda/command/function/sim-lambda-function-commands.js.map +1 -1
- package/dist/service/lambda/command/sim-lambda-command.types.d.ts +1 -0
- package/dist/service/lambda/command/sim-lambda-command.types.d.ts.map +1 -1
- package/dist/service/lambda/function/url/sim-lambda-function-url-store.d.ts +7 -0
- package/dist/service/lambda/function/url/sim-lambda-function-url-store.d.ts.map +1 -1
- package/dist/service/lambda/function/url/sim-lambda-function-url-store.js +11 -0
- package/dist/service/lambda/function/url/sim-lambda-function-url-store.js.map +1 -1
- package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.d.ts.map +1 -1
- package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.js +4 -0
- package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.js.map +1 -1
- package/dist/service/lambda/sim-lambda-commands.d.ts.map +1 -1
- package/dist/service/lambda/sim-lambda-commands.js +1 -0
- package/dist/service/lambda/sim-lambda-commands.js.map +1 -1
- package/dist/service/lambda/sim-lambda.d.ts +4 -0
- package/dist/service/lambda/sim-lambda.d.ts.map +1 -1
- package/dist/service/lambda/sim-lambda.js +6 -0
- package/dist/service/lambda/sim-lambda.js.map +1 -1
- package/dist/service/route53/command/delete-hosted-zone/delete-hosted-zone-authorizer.d.ts +26 -0
- package/dist/service/route53/command/delete-hosted-zone/delete-hosted-zone-authorizer.d.ts.map +1 -0
- package/dist/service/route53/command/delete-hosted-zone/delete-hosted-zone-authorizer.js +36 -0
- package/dist/service/route53/command/delete-hosted-zone/delete-hosted-zone-authorizer.js.map +1 -0
- package/dist/service/route53/command/delete-hosted-zone/delete-hosted-zone.command.d.ts +26 -0
- package/dist/service/route53/command/delete-hosted-zone/delete-hosted-zone.command.d.ts.map +1 -0
- package/dist/service/route53/command/delete-hosted-zone/delete-hosted-zone.command.js +2 -0
- package/dist/service/route53/command/delete-hosted-zone/delete-hosted-zone.command.js.map +1 -0
- package/dist/service/route53/command/delete-hosted-zone/delete-hosted-zone.handler.d.ts +44 -0
- package/dist/service/route53/command/delete-hosted-zone/delete-hosted-zone.handler.d.ts.map +1 -0
- package/dist/service/route53/command/delete-hosted-zone/delete-hosted-zone.handler.js +59 -0
- package/dist/service/route53/command/delete-hosted-zone/delete-hosted-zone.handler.js.map +1 -0
- package/dist/service/route53/error/sim-route53.error.d.ts +12 -0
- package/dist/service/route53/error/sim-route53.error.d.ts.map +1 -1
- package/dist/service/route53/error/sim-route53.error.js +14 -0
- package/dist/service/route53/error/sim-route53.error.js.map +1 -1
- package/dist/service/route53/hosted-zone/sim-route53-hosted-zone.d.ts +8 -0
- package/dist/service/route53/hosted-zone/sim-route53-hosted-zone.d.ts.map +1 -1
- package/dist/service/route53/hosted-zone/sim-route53-hosted-zone.js +14 -0
- package/dist/service/route53/hosted-zone/sim-route53-hosted-zone.js.map +1 -1
- package/dist/service/route53/local-name/sim-route53-local-name.d.ts +11 -0
- package/dist/service/route53/local-name/sim-route53-local-name.d.ts.map +1 -1
- package/dist/service/route53/local-name/sim-route53-local-name.js +18 -3
- package/dist/service/route53/local-name/sim-route53-local-name.js.map +1 -1
- package/dist/service/route53/registry/sim-route53-registry.d.ts +8 -0
- package/dist/service/route53/registry/sim-route53-registry.d.ts.map +1 -1
- package/dist/service/route53/registry/sim-route53-registry.js +11 -0
- package/dist/service/route53/registry/sim-route53-registry.js.map +1 -1
- package/dist/service/route53/resolve/sim-route53-resolver.d.ts +8 -2
- package/dist/service/route53/resolve/sim-route53-resolver.d.ts.map +1 -1
- package/dist/service/route53/resolve/sim-route53-resolver.js +10 -4
- package/dist/service/route53/resolve/sim-route53-resolver.js.map +1 -1
- package/dist/service/route53/sdk/sim-route53-sdk-command-router.d.ts.map +1 -1
- package/dist/service/route53/sdk/sim-route53-sdk-command-router.js +4 -0
- package/dist/service/route53/sdk/sim-route53-sdk-command-router.js.map +1 -1
- package/dist/service/route53/sim-route53.d.ts +5 -0
- package/dist/service/route53/sim-route53.d.ts.map +1 -1
- package/dist/service/route53/sim-route53.js +13 -0
- package/dist/service/route53/sim-route53.js.map +1 -1
- package/dist/service/s3/bucket/sim-s3-bucket-access.d.ts +37 -0
- package/dist/service/s3/bucket/sim-s3-bucket-access.d.ts.map +1 -0
- package/dist/service/s3/bucket/sim-s3-bucket-access.js +46 -0
- package/dist/service/s3/bucket/sim-s3-bucket-access.js.map +1 -0
- package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-creator.d.ts +4 -5
- package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-creator.d.ts.map +1 -1
- package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-creator.js +6 -6
- package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-creator.js.map +1 -1
- package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-property-names.d.ts +26 -0
- package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-property-names.d.ts.map +1 -0
- package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-property-names.js +77 -0
- package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-property-names.js.map +1 -0
- package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-property-rules.d.ts +18 -7
- package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-property-rules.d.ts.map +1 -1
- package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-property-rules.js +25 -65
- package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-property-rules.js.map +1 -1
- package/dist/service/s3/command/bucket/sim-s3-bucket-commands.d.ts +4 -0
- package/dist/service/s3/command/bucket/sim-s3-bucket-commands.d.ts.map +1 -1
- package/dist/service/s3/command/bucket/sim-s3-bucket-commands.js +7 -0
- package/dist/service/s3/command/bucket/sim-s3-bucket-commands.js.map +1 -1
- package/dist/service/s3/command/delete-bucket/delete-bucket-authorizer.d.ts +24 -0
- package/dist/service/s3/command/delete-bucket/delete-bucket-authorizer.d.ts.map +1 -0
- package/dist/service/s3/command/delete-bucket/delete-bucket-authorizer.js +37 -0
- package/dist/service/s3/command/delete-bucket/delete-bucket-authorizer.js.map +1 -0
- package/dist/service/s3/command/delete-bucket/delete-bucket.command.d.ts +23 -0
- package/dist/service/s3/command/delete-bucket/delete-bucket.command.d.ts.map +1 -0
- package/dist/service/s3/command/delete-bucket/delete-bucket.command.js +2 -0
- package/dist/service/s3/command/delete-bucket/delete-bucket.command.js.map +1 -0
- package/dist/service/s3/command/delete-bucket/delete-bucket.handler.d.ts +43 -0
- package/dist/service/s3/command/delete-bucket/delete-bucket.handler.d.ts.map +1 -0
- package/dist/service/s3/command/delete-bucket/delete-bucket.handler.js +55 -0
- package/dist/service/s3/command/delete-bucket/delete-bucket.handler.js.map +1 -0
- package/dist/service/s3/command/sim-s3-command.types.d.ts +1 -0
- package/dist/service/s3/command/sim-s3-command.types.d.ts.map +1 -1
- package/dist/service/s3/error/sim-s3.error.d.ts +10 -0
- package/dist/service/s3/error/sim-s3.error.d.ts.map +1 -1
- package/dist/service/s3/error/sim-s3.error.js +12 -0
- package/dist/service/s3/error/sim-s3.error.js.map +1 -1
- package/dist/service/s3/sdk/sim-s3-sdk-command-router.d.ts.map +1 -1
- package/dist/service/s3/sdk/sim-s3-sdk-command-router.js +4 -0
- package/dist/service/s3/sdk/sim-s3-sdk-command-router.js.map +1 -1
- package/dist/service/s3/sim-s3-global-registry.d.ts +7 -0
- package/dist/service/s3/sim-s3-global-registry.d.ts.map +1 -1
- package/dist/service/s3/sim-s3-global-registry.js +9 -0
- package/dist/service/s3/sim-s3-global-registry.js.map +1 -1
- package/dist/service/s3/sim-s3.d.ts +5 -0
- package/dist/service/s3/sim-s3.d.ts.map +1 -1
- package/dist/service/s3/sim-s3.js +16 -12
- package/dist/service/s3/sim-s3.js.map +1 -1
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-properties.d.ts.map +1 -1
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-properties.js +2 -1
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-properties.js.map +1 -1
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-property-names.d.ts +31 -0
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-property-names.d.ts.map +1 -0
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-property-names.js +63 -0
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-property-names.js.map +1 -0
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-property-rules.d.ts +27 -17
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-property-rules.d.ts.map +1 -1
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-property-rules.js +39 -73
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-property-rules.js.map +1 -1
- package/package.json +1 -1
package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-property-rules.js
CHANGED
|
@@ -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
|
|
85
|
-
*
|
|
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(
|
|
96
|
+
export function simCfnDynamoDbGlobalTableRules(scope) {
|
|
97
97
|
return new SimCfnDynamoDbPropertyRules({
|
|
98
98
|
resourceTypeName: dynamoDbGlobalTableResourceTypeName,
|
|
99
|
-
|
|
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(
|
|
107
|
+
export function simCfnDynamoDbGlobalTableIndexRules(scope) {
|
|
108
108
|
return new SimCfnDynamoDbPropertyRules({
|
|
109
109
|
resourceTypeName: dynamoDbGlobalTableResourceTypeName,
|
|
110
|
-
|
|
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(
|
|
119
|
+
export function simCfnDynamoDbGlobalTableLocalIndexRules(scope) {
|
|
120
120
|
return new SimCfnDynamoDbPropertyRules({
|
|
121
121
|
resourceTypeName: dynamoDbGlobalTableResourceTypeName,
|
|
122
|
-
|
|
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(
|
|
130
|
+
export function simCfnDynamoDbGlobalTableStreamRules(scope) {
|
|
131
131
|
return new SimCfnDynamoDbPropertyRules({
|
|
132
132
|
resourceTypeName: dynamoDbGlobalTableResourceTypeName,
|
|
133
|
-
|
|
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(
|
|
142
|
+
export function simCfnDynamoDbGlobalTableWriteCapacityRules(scope) {
|
|
143
143
|
return new SimCfnDynamoDbPropertyRules({
|
|
144
144
|
resourceTypeName: dynamoDbGlobalTableResourceTypeName,
|
|
145
|
-
|
|
145
|
+
scope,
|
|
146
146
|
kind: "WriteProvisionedThroughputSettings",
|
|
147
147
|
simulated: simulatedWriteCapacityPropertyNames,
|
|
148
148
|
unsimulated: unsimulatedWriteCapacityPropertyNames,
|
package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-property-rules.js.map
CHANGED
|
@@ -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;
|
|
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,gBAAgB;CACjB,CAAC,CAAC;AAEH;;;;;;;;GAQG;AACH,MAAM,mCAAmC,GAAwB,IAAI,GAAG,CAAC;IACvE,oBAAoB;CACrB,CAAC,CAAC;AAEH,MAAM,qCAAqC,GAAwB,IAAI,GAAG,CAAC;IACzE,kCAAkC;CACnC,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,UAAU,8BAA8B,CAC5C,KAAkC;IAElC,OAAO,IAAI,2BAA2B,CAAC;QACrC,gBAAgB,EAAE,mCAAmC;QACrD,KAAK;QACL,SAAS,EAAE,sBAAsB;QACjC,WAAW,EAAE,wBAAwB;KACtC,CAAC,CAAC;AACL,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,mCAAmC,CACjD,KAAkC;IAElC,OAAO,IAAI,2BAA2B,CAAC;QACrC,gBAAgB,EAAE,mCAAmC;QACrD,KAAK;QACL,IAAI,EAAE,sBAAsB;QAC5B,SAAS,EAAE,2BAA2B;QACtC,WAAW,EAAE,6BAA6B;KAC3C,CAAC,CAAC;AACL,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,wCAAwC,CACtD,KAAkC;IAElC,OAAO,IAAI,2BAA2B,CAAC;QACrC,gBAAgB,EAAE,mCAAmC;QACrD,KAAK;QACL,IAAI,EAAE,qBAAqB;QAC3B,SAAS,EAAE,gCAAgC;KAC5C,CAAC,CAAC;AACL,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,oCAAoC,CAClD,KAAkC;IAElC,OAAO,IAAI,2BAA2B,CAAC;QACrC,gBAAgB,EAAE,mCAAmC;QACrD,KAAK;QACL,IAAI,EAAE,qBAAqB;QAC3B,SAAS,EAAE,4BAA4B;KACxC,CAAC,CAAC;AACL,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,2CAA2C,CACzD,KAAkC;IAElC,OAAO,IAAI,2BAA2B,CAAC;QACrC,gBAAgB,EAAE,mCAAmC;QACrD,KAAK;QACL,IAAI,EAAE,oCAAoC;QAC1C,SAAS,EAAE,mCAAmC;QAC9C,WAAW,EAAE,qCAAqC;KACnD,CAAC,CAAC;AACL,CAAC"}
|
package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replica-rules.d.ts
CHANGED
|
@@ -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(
|
|
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(
|
|
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(
|
|
15
|
+
export declare function simCfnDynamoDbGlobalTableReadCapacityRules(scope: SimCfnDynamoDbResourceScope): SimCfnDynamoDbPropertyRules;
|
|
15
16
|
//# sourceMappingURL=sim-cfn-dynamodb-global-table-replica-rules.d.ts.map
|
package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replica-rules.d.ts.map
CHANGED
|
@@ -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;
|
|
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"}
|
package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replica-rules.js
CHANGED
|
@@ -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
|
|
53
|
-
*
|
|
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(
|
|
64
|
+
export function simCfnDynamoDbGlobalTableReplicaRules(scope) {
|
|
65
65
|
return new SimCfnDynamoDbPropertyRules({
|
|
66
66
|
resourceTypeName: dynamoDbGlobalTableResourceTypeName,
|
|
67
|
-
|
|
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(
|
|
76
|
+
export function simCfnDynamoDbGlobalTableReplicaIndexRules(scope) {
|
|
77
77
|
return new SimCfnDynamoDbPropertyRules({
|
|
78
78
|
resourceTypeName: dynamoDbGlobalTableResourceTypeName,
|
|
79
|
-
|
|
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(
|
|
89
|
+
export function simCfnDynamoDbGlobalTableReadCapacityRules(scope) {
|
|
90
90
|
return new SimCfnDynamoDbPropertyRules({
|
|
91
91
|
resourceTypeName: dynamoDbGlobalTableResourceTypeName,
|
|
92
|
-
|
|
92
|
+
scope,
|
|
93
93
|
kind: "ReadProvisionedThroughputSettings",
|
|
94
94
|
simulated: simulatedReadCapacityPropertyNames,
|
|
95
95
|
unsimulated: unsimulatedReadCapacityPropertyNames,
|
package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replica-rules.js.map
CHANGED
|
@@ -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;
|
|
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
|
|
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
|
|
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.
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
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
|
|
28
|
+
private readonly scope;
|
|
23
29
|
private readonly regionName;
|
|
24
30
|
private readonly values;
|
|
25
31
|
constructor(properties: SimCfnDynamoDbGlobalTableReplicasProperties);
|
|
26
32
|
/**
|
|
27
|
-
* The
|
|
33
|
+
* The replica this global table is created as, recording the rest.
|
|
28
34
|
*/
|
|
29
35
|
single(): SimCfnDynamoDbPropertyValues;
|
|
30
36
|
/**
|
|
31
|
-
*
|
|
37
|
+
* The single replica a template declared, which has to name the region the
|
|
38
|
+
* stack is deploying into.
|
|
32
39
|
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
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
|
|
44
|
+
private onlyReplica;
|
|
39
45
|
/**
|
|
40
|
-
* The
|
|
41
|
-
*
|
|
42
|
-
|
|
43
|
-
|
|
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
|
|
53
|
+
private regionNames;
|
|
46
54
|
}
|
|
47
55
|
export {};
|
|
48
56
|
//# sourceMappingURL=sim-cfn-dynamodb-global-table-replicas.d.ts.map
|
package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replicas.d.ts.map
CHANGED
|
@@ -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;
|
|
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
|
|
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.
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
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
|
-
|
|
21
|
+
scope;
|
|
17
22
|
regionName;
|
|
18
23
|
values;
|
|
19
24
|
constructor(properties) {
|
|
20
|
-
this.
|
|
25
|
+
this.scope = properties.scope;
|
|
21
26
|
this.regionName = properties.regionName;
|
|
22
27
|
this.values = properties.values;
|
|
23
28
|
}
|
|
24
29
|
/**
|
|
25
|
-
* The
|
|
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
|
-
|
|
30
|
-
|
|
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
|
-
|
|
39
|
-
|
|
40
|
+
if (replicas.length === 1) {
|
|
41
|
+
return this.onlyReplica(only);
|
|
42
|
+
}
|
|
43
|
+
return this.ownRegionReplica(replicas);
|
|
40
44
|
}
|
|
41
45
|
/**
|
|
42
|
-
*
|
|
46
|
+
* The single replica a template declared, which has to name the region the
|
|
47
|
+
* stack is deploying into.
|
|
43
48
|
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
67
|
-
|
|
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
|
package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-replicas.js.map
CHANGED
|
@@ -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":"
|
|
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
|
|
4
|
+
readonly scope: SimCfnDynamoDbResourceScope;
|
|
4
5
|
readonly values: SimCfnDynamoDbPropertyValues;
|
|
5
6
|
readonly replica: SimCfnDynamoDbPropertyValues;
|
|
6
7
|
}
|
|
7
8
|
/**
|
|
8
|
-
*
|
|
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
|
|
18
|
+
export declare function applySimCfnDynamoDbGlobalTableRules(properties: SimCfnDynamoDbGlobalTableSimulatedProperties): void;
|
|
17
19
|
export {};
|
|
18
20
|
//# sourceMappingURL=sim-cfn-dynamodb-global-table-simulated.d.ts.map
|
package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-simulated.d.ts.map
CHANGED
|
@@ -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;
|
|
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
|
-
*
|
|
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
|
|
13
|
-
const {
|
|
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(
|
|
17
|
-
simCfnDynamoDbGlobalTableIndexRules(
|
|
18
|
-
simCfnDynamoDbGlobalTableLocalIndexRules(
|
|
19
|
-
simCfnDynamoDbGlobalTableStreamRules(
|
|
20
|
-
simCfnDynamoDbGlobalTableReplicaRules(
|
|
21
|
-
simCfnDynamoDbGlobalTableReplicaIndexRules(
|
|
22
|
-
|
|
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
|
-
*
|
|
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
|
|
32
|
-
const writeRules = simCfnDynamoDbGlobalTableWriteCapacityRules(
|
|
33
|
-
const readRules = simCfnDynamoDbGlobalTableReadCapacityRules(
|
|
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.
|
|
36
|
+
writeRules.apply(values.object("WriteProvisionedThroughputSettings"));
|
|
36
37
|
}
|
|
37
38
|
for (const values of reading) {
|
|
38
|
-
readRules.
|
|
39
|
+
readRules.apply(values.object("ReadProvisionedThroughputSettings"));
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
42
|
//# sourceMappingURL=sim-cfn-dynamodb-global-table-simulated.js.map
|
package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-simulated.js.map
CHANGED
|
@@ -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":"
|
|
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
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* the template
|
|
7
|
-
*
|
|
8
|
-
*
|
|
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
|
|
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
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* the template
|
|
7
|
-
*
|
|
8
|
-
*
|
|
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
|
|
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"}
|