@kensio/yulin 1.1.0 → 1.3.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/sdk/router/resolve-sim-sdk-command-router.d.ts.map +1 -1
- package/dist/sdk/router/resolve-sim-sdk-command-router.js +3 -0
- package/dist/sdk/router/resolve-sim-sdk-command-router.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts +5 -4
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts.map +1 -1
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.js +17 -8
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-account-service-cache.d.ts.map +1 -1
- package/dist/service/aws/factory/sim-aws-account-service-cache.js +2 -0
- package/dist/service/aws/factory/sim-aws-account-service-cache.js.map +1 -1
- package/dist/service/aws/sim-aws-account-region-scope.d.ts +9 -1
- package/dist/service/aws/sim-aws-account-region-scope.d.ts.map +1 -1
- package/dist/service/aws/sim-aws-account-region-scope.js +10 -0
- package/dist/service/aws/sim-aws-account-region-scope.js.map +1 -1
- package/dist/service/aws/sim-aws-account.d.ts +5 -1
- package/dist/service/aws/sim-aws-account.d.ts.map +1 -1
- package/dist/service/aws/sim-aws-account.js +6 -0
- package/dist/service/aws/sim-aws-account.js.map +1 -1
- package/dist/service/aws/sim-aws-region.d.ts +5 -1
- package/dist/service/aws/sim-aws-region.d.ts.map +1 -1
- package/dist/service/aws/sim-aws-region.js +6 -0
- package/dist/service/aws/sim-aws-region.js.map +1 -1
- package/dist/service/aws/sim-aws-service-accessors.d.ts +3 -1
- package/dist/service/aws/sim-aws-service-accessors.d.ts.map +1 -1
- package/dist/service/aws/sim-aws-service-accessors.js +4 -0
- package/dist/service/aws/sim-aws-service-accessors.js.map +1 -1
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/configuration/sim-cdk-bucket-notification-configuration.d.ts +2 -0
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/configuration/sim-cdk-bucket-notification-configuration.d.ts.map +1 -1
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/configuration/sim-cdk-bucket-notification-configuration.js +15 -1
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/configuration/sim-cdk-bucket-notification-configuration.js.map +1 -1
- package/dist/service/cloudformation/resource/cfn/dynamodb/sim-dynamodb-table-cfn.d.ts +11 -3
- package/dist/service/cloudformation/resource/cfn/dynamodb/sim-dynamodb-table-cfn.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/cfn/dynamodb/sim-dynamodb-table-cfn.js +20 -6
- package/dist/service/cloudformation/resource/cfn/dynamodb/sim-dynamodb-table-cfn.js.map +1 -1
- package/dist/service/cloudformation/template/condition/sim-cfn-condition-comparison.d.ts +27 -0
- package/dist/service/cloudformation/template/condition/sim-cfn-condition-comparison.d.ts.map +1 -0
- package/dist/service/cloudformation/template/condition/sim-cfn-condition-comparison.js +44 -0
- package/dist/service/cloudformation/template/condition/sim-cfn-condition-comparison.js.map +1 -0
- package/dist/service/cloudformation/template/condition/sim-cfn-condition-evaluator.d.ts +36 -0
- package/dist/service/cloudformation/template/condition/sim-cfn-condition-evaluator.d.ts.map +1 -0
- package/dist/service/cloudformation/template/condition/sim-cfn-condition-evaluator.js +68 -0
- package/dist/service/cloudformation/template/condition/sim-cfn-condition-evaluator.js.map +1 -0
- package/dist/service/cloudformation/template/condition/sim-cfn-condition-expression.d.ts +45 -0
- package/dist/service/cloudformation/template/condition/sim-cfn-condition-expression.d.ts.map +1 -0
- package/dist/service/cloudformation/template/condition/sim-cfn-condition-expression.js +80 -0
- package/dist/service/cloudformation/template/condition/sim-cfn-condition-expression.js.map +1 -0
- package/dist/service/cloudformation/template/condition/sim-cfn-conditions.d.ts +28 -0
- package/dist/service/cloudformation/template/condition/sim-cfn-conditions.d.ts.map +1 -0
- package/dist/service/cloudformation/template/condition/sim-cfn-conditions.js +29 -0
- package/dist/service/cloudformation/template/condition/sim-cfn-conditions.js.map +1 -0
- package/dist/service/cloudformation/template/condition/sim-cfn-resource-conditions.d.ts +46 -0
- package/dist/service/cloudformation/template/condition/sim-cfn-resource-conditions.d.ts.map +1 -0
- package/dist/service/cloudformation/template/condition/sim-cfn-resource-conditions.js +94 -0
- package/dist/service/cloudformation/template/condition/sim-cfn-resource-conditions.js.map +1 -0
- package/dist/service/cloudformation/template/node/fn/find-in-map/sim-cfn-fn-find-in-map.d.ts +0 -1
- package/dist/service/cloudformation/template/node/fn/find-in-map/sim-cfn-fn-find-in-map.d.ts.map +1 -1
- package/dist/service/cloudformation/template/node/fn/find-in-map/sim-cfn-fn-find-in-map.js +2 -14
- package/dist/service/cloudformation/template/node/fn/find-in-map/sim-cfn-fn-find-in-map.js.map +1 -1
- package/dist/service/cloudformation/template/node/fn/if/sim-cfn-fn-if.d.ts +31 -0
- package/dist/service/cloudformation/template/node/fn/if/sim-cfn-fn-if.d.ts.map +1 -0
- package/dist/service/cloudformation/template/node/fn/if/sim-cfn-fn-if.js +52 -0
- package/dist/service/cloudformation/template/node/fn/if/sim-cfn-fn-if.js.map +1 -0
- package/dist/service/cloudformation/template/node/fn/select/sim-cfn-fn-select.d.ts +39 -0
- package/dist/service/cloudformation/template/node/fn/select/sim-cfn-fn-select.d.ts.map +1 -0
- package/dist/service/cloudformation/template/node/fn/select/sim-cfn-fn-select.js +82 -0
- package/dist/service/cloudformation/template/node/fn/select/sim-cfn-fn-select.js.map +1 -0
- package/dist/service/cloudformation/template/node/fn/split/sim-cfn-fn-split.d.ts +31 -0
- package/dist/service/cloudformation/template/node/fn/split/sim-cfn-fn-split.d.ts.map +1 -0
- package/dist/service/cloudformation/template/node/fn/split/sim-cfn-fn-split.js +45 -0
- package/dist/service/cloudformation/template/node/fn/split/sim-cfn-fn-split.js.map +1 -0
- package/dist/service/cloudformation/template/node/sim-cfn-list.d.ts +1 -1
- package/dist/service/cloudformation/template/node/sim-cfn-list.d.ts.map +1 -1
- package/dist/service/cloudformation/template/node/sim-cfn-list.js +3 -2
- package/dist/service/cloudformation/template/node/sim-cfn-list.js.map +1 -1
- package/dist/service/cloudformation/template/node/sim-cfn-object.d.ts.map +1 -1
- package/dist/service/cloudformation/template/node/sim-cfn-object.js +5 -1
- package/dist/service/cloudformation/template/node/sim-cfn-object.js.map +1 -1
- package/dist/service/cloudformation/template/parse/fn/if/sim-cfn-fn-if-parser.d.ts +19 -0
- package/dist/service/cloudformation/template/parse/fn/if/sim-cfn-fn-if-parser.d.ts.map +1 -0
- package/dist/service/cloudformation/template/parse/fn/if/sim-cfn-fn-if-parser.js +33 -0
- package/dist/service/cloudformation/template/parse/fn/if/sim-cfn-fn-if-parser.js.map +1 -0
- package/dist/service/cloudformation/template/parse/fn/select/sim-cfn-fn-select-parser.d.ts +26 -0
- package/dist/service/cloudformation/template/parse/fn/select/sim-cfn-fn-select-parser.d.ts.map +1 -0
- package/dist/service/cloudformation/template/parse/fn/select/sim-cfn-fn-select-parser.js +35 -0
- package/dist/service/cloudformation/template/parse/fn/select/sim-cfn-fn-select-parser.js.map +1 -0
- package/dist/service/cloudformation/template/parse/fn/sim-cfn-function-parser.d.ts +3 -0
- package/dist/service/cloudformation/template/parse/fn/sim-cfn-function-parser.d.ts.map +1 -1
- package/dist/service/cloudformation/template/parse/fn/sim-cfn-function-parser.js +18 -0
- package/dist/service/cloudformation/template/parse/fn/sim-cfn-function-parser.js.map +1 -1
- package/dist/service/cloudformation/template/parse/fn/split/sim-cfn-fn-split-parser.d.ts +25 -0
- package/dist/service/cloudformation/template/parse/fn/split/sim-cfn-fn-split-parser.d.ts.map +1 -0
- package/dist/service/cloudformation/template/parse/fn/split/sim-cfn-fn-split-parser.js +36 -0
- package/dist/service/cloudformation/template/parse/fn/split/sim-cfn-fn-split-parser.js.map +1 -0
- package/dist/service/cloudformation/template/resolve/sim-cfn-resolve-context.d.ts +14 -4
- package/dist/service/cloudformation/template/resolve/sim-cfn-resolve-context.d.ts.map +1 -1
- package/dist/service/cloudformation/template/resolve/sim-cfn-resolve-context.js +7 -5
- package/dist/service/cloudformation/template/resolve/sim-cfn-resolve-context.js.map +1 -1
- package/dist/service/cloudformation/template/sim-cfn-template-body-validator.d.ts.map +1 -1
- package/dist/service/cloudformation/template/sim-cfn-template-body-validator.js +4 -0
- package/dist/service/cloudformation/template/sim-cfn-template-body-validator.js.map +1 -1
- package/dist/service/cloudformation/template/sim-cfn-template.d.ts +14 -0
- package/dist/service/cloudformation/template/sim-cfn-template.d.ts.map +1 -1
- package/dist/service/cloudformation/template/sim-cfn-template.js +44 -12
- package/dist/service/cloudformation/template/sim-cfn-template.js.map +1 -1
- package/dist/service/cloudformation/template/value/sim-cfn-template-value-resolver.d.ts +20 -0
- package/dist/service/cloudformation/template/value/sim-cfn-template-value-resolver.d.ts.map +1 -1
- package/dist/service/cloudformation/template/value/sim-cfn-template-value-resolver.js +32 -2
- package/dist/service/cloudformation/template/value/sim-cfn-template-value-resolver.js.map +1 -1
- package/dist/service/cloudformation/template/value/sim-cfn-unresolved-expression.d.ts +11 -0
- package/dist/service/cloudformation/template/value/sim-cfn-unresolved-expression.d.ts.map +1 -0
- package/dist/service/cloudformation/template/value/sim-cfn-unresolved-expression.js +21 -0
- package/dist/service/cloudformation/template/value/sim-cfn-unresolved-expression.js.map +1 -0
- package/dist/service/cloudformation/template/value/sim-cfn-value-path.d.ts +22 -0
- package/dist/service/cloudformation/template/value/sim-cfn-value-path.d.ts.map +1 -0
- package/dist/service/cloudformation/template/value/sim-cfn-value-path.js +92 -0
- package/dist/service/cloudformation/template/value/sim-cfn-value-path.js.map +1 -0
- package/dist/service/cloudfront/command/create-distribution/create-distribution.command.d.ts +7 -0
- package/dist/service/cloudfront/command/create-distribution/create-distribution.command.d.ts.map +1 -1
- package/dist/service/cloudfront/command/create-distribution/create-distribution.handler.d.ts +2 -0
- package/dist/service/cloudfront/command/create-distribution/create-distribution.handler.d.ts.map +1 -1
- package/dist/service/cloudfront/command/create-distribution/create-distribution.handler.js +1 -1
- package/dist/service/cloudfront/command/create-distribution/create-distribution.handler.js.map +1 -1
- package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.d.ts +10 -1
- package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.d.ts.map +1 -1
- package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.js +21 -1
- package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.js.map +1 -1
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-dispatcher.d.ts +24 -0
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-dispatcher.d.ts.map +1 -0
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-dispatcher.factory.d.ts +7 -0
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-dispatcher.factory.d.ts.map +1 -0
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-dispatcher.factory.js +38 -0
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-dispatcher.factory.js.map +1 -0
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-dispatcher.js +2 -0
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-dispatcher.js.map +1 -0
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.d.ts +17 -0
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.d.ts.map +1 -0
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.js +37 -0
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.js.map +1 -0
- package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.d.ts +38 -0
- package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.d.ts.map +1 -0
- package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.js +45 -0
- package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.js.map +1 -0
- package/dist/service/cloudfront/sim-cloudfront.d.ts +3 -0
- package/dist/service/cloudfront/sim-cloudfront.d.ts.map +1 -1
- package/dist/service/cloudfront/sim-cloudfront.js +4 -1
- package/dist/service/cloudfront/sim-cloudfront.js.map +1 -1
- package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-creator.d.ts.map +1 -1
- package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-creator.js +1 -0
- 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-properties.d.ts +5 -0
- 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 -0
- 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 +5 -4
- 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 +16 -11
- 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 +23 -0
- package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-stream-rules.d.ts.map +1 -0
- package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-stream-rules.js +62 -0
- package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-stream-rules.js.map +1 -0
- package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-stream.d.ts +17 -0
- package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-stream.d.ts.map +1 -0
- package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-stream.js +24 -0
- package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-stream.js.map +1 -0
- package/dist/service/dynamodb/command/authorize/sim-dynamodb-authorizer.d.ts +11 -0
- package/dist/service/dynamodb/command/authorize/sim-dynamodb-authorizer.d.ts.map +1 -1
- package/dist/service/dynamodb/command/authorize/sim-dynamodb-authorizer.js +13 -0
- package/dist/service/dynamodb/command/authorize/sim-dynamodb-authorizer.js.map +1 -1
- package/dist/service/dynamodb/command/sim-dynamodb-command-handlers.d.ts +4 -0
- package/dist/service/dynamodb/command/sim-dynamodb-command-handlers.d.ts.map +1 -1
- package/dist/service/dynamodb/command/sim-dynamodb-command-handlers.js +2 -0
- package/dist/service/dynamodb/command/sim-dynamodb-command-handlers.js.map +1 -1
- package/dist/service/dynamodb/command/stream/describe-stream/describe-stream.command.d.ts +43 -0
- package/dist/service/dynamodb/command/stream/describe-stream/describe-stream.command.d.ts.map +1 -0
- package/dist/service/dynamodb/command/stream/describe-stream/describe-stream.command.js +5 -0
- package/dist/service/dynamodb/command/stream/describe-stream/describe-stream.command.js.map +1 -0
- package/dist/service/dynamodb/command/stream/describe-stream/sim-dynamodb-describe-stream.d.ts +26 -0
- package/dist/service/dynamodb/command/stream/describe-stream/sim-dynamodb-describe-stream.d.ts.map +1 -0
- package/dist/service/dynamodb/command/stream/describe-stream/sim-dynamodb-describe-stream.js +77 -0
- package/dist/service/dynamodb/command/stream/describe-stream/sim-dynamodb-describe-stream.js.map +1 -0
- package/dist/service/dynamodb/command/stream/get-records/get-records.command.d.ts +32 -0
- package/dist/service/dynamodb/command/stream/get-records/get-records.command.d.ts.map +1 -0
- package/dist/service/dynamodb/command/stream/get-records/get-records.command.js +5 -0
- package/dist/service/dynamodb/command/stream/get-records/get-records.command.js.map +1 -0
- package/dist/service/dynamodb/command/stream/get-records/sim-dynamodb-get-records.d.ts +29 -0
- package/dist/service/dynamodb/command/stream/get-records/sim-dynamodb-get-records.d.ts.map +1 -0
- package/dist/service/dynamodb/command/stream/get-records/sim-dynamodb-get-records.js +60 -0
- package/dist/service/dynamodb/command/stream/get-records/sim-dynamodb-get-records.js.map +1 -0
- package/dist/service/dynamodb/command/stream/get-records/sim-dynamodb-streams-api-record.d.ts +12 -0
- package/dist/service/dynamodb/command/stream/get-records/sim-dynamodb-streams-api-record.d.ts.map +1 -0
- package/dist/service/dynamodb/command/stream/get-records/sim-dynamodb-streams-api-record.js +52 -0
- package/dist/service/dynamodb/command/stream/get-records/sim-dynamodb-streams-api-record.js.map +1 -0
- package/dist/service/dynamodb/command/stream/get-shard-iterator/get-shard-iterator.command.d.ts +31 -0
- package/dist/service/dynamodb/command/stream/get-shard-iterator/get-shard-iterator.command.d.ts.map +1 -0
- package/dist/service/dynamodb/command/stream/get-shard-iterator/get-shard-iterator.command.js +5 -0
- package/dist/service/dynamodb/command/stream/get-shard-iterator/get-shard-iterator.command.js.map +1 -0
- package/dist/service/dynamodb/command/stream/get-shard-iterator/sim-dynamodb-get-shard-iterator.d.ts +27 -0
- package/dist/service/dynamodb/command/stream/get-shard-iterator/sim-dynamodb-get-shard-iterator.d.ts.map +1 -0
- package/dist/service/dynamodb/command/stream/get-shard-iterator/sim-dynamodb-get-shard-iterator.js +42 -0
- package/dist/service/dynamodb/command/stream/get-shard-iterator/sim-dynamodb-get-shard-iterator.js.map +1 -0
- package/dist/service/dynamodb/command/stream/get-shard-iterator/sim-dynamodb-shard-iterator-position.d.ts +11 -0
- package/dist/service/dynamodb/command/stream/get-shard-iterator/sim-dynamodb-shard-iterator-position.d.ts.map +1 -0
- package/dist/service/dynamodb/command/stream/get-shard-iterator/sim-dynamodb-shard-iterator-position.js +53 -0
- package/dist/service/dynamodb/command/stream/get-shard-iterator/sim-dynamodb-shard-iterator-position.js.map +1 -0
- package/dist/service/dynamodb/command/stream/list-streams/list-streams.command.d.ts +33 -0
- package/dist/service/dynamodb/command/stream/list-streams/list-streams.command.d.ts.map +1 -0
- package/dist/service/dynamodb/command/stream/list-streams/list-streams.command.js +5 -0
- package/dist/service/dynamodb/command/stream/list-streams/list-streams.command.js.map +1 -0
- package/dist/service/dynamodb/command/stream/list-streams/sim-dynamodb-list-streams.d.ts +26 -0
- package/dist/service/dynamodb/command/stream/list-streams/sim-dynamodb-list-streams.d.ts.map +1 -0
- package/dist/service/dynamodb/command/stream/list-streams/sim-dynamodb-list-streams.js +31 -0
- package/dist/service/dynamodb/command/stream/list-streams/sim-dynamodb-list-streams.js.map +1 -0
- package/dist/service/dynamodb/command/stream/list-streams/sim-dynamodb-stream-page.d.ts +28 -0
- package/dist/service/dynamodb/command/stream/list-streams/sim-dynamodb-stream-page.d.ts.map +1 -0
- package/dist/service/dynamodb/command/stream/list-streams/sim-dynamodb-stream-page.js +59 -0
- package/dist/service/dynamodb/command/stream/list-streams/sim-dynamodb-stream-page.js.map +1 -0
- package/dist/service/dynamodb/command/stream/sim-dynamodb-stream-access.d.ts +44 -0
- package/dist/service/dynamodb/command/stream/sim-dynamodb-stream-access.d.ts.map +1 -0
- package/dist/service/dynamodb/command/stream/sim-dynamodb-stream-access.js +53 -0
- package/dist/service/dynamodb/command/stream/sim-dynamodb-stream-access.js.map +1 -0
- package/dist/service/dynamodb/command/stream/sim-dynamodb-stream-command.types.d.ts +8 -0
- package/dist/service/dynamodb/command/stream/sim-dynamodb-stream-command.types.d.ts.map +1 -0
- package/dist/service/dynamodb/command/stream/sim-dynamodb-stream-command.types.js +2 -0
- package/dist/service/dynamodb/command/stream/sim-dynamodb-stream-command.types.js.map +1 -0
- package/dist/service/dynamodb/command/stream/stream.types.d.ts +84 -0
- package/dist/service/dynamodb/command/stream/stream.types.d.ts.map +1 -0
- package/dist/service/dynamodb/command/stream/stream.types.js +2 -0
- package/dist/service/dynamodb/command/stream/stream.types.js.map +1 -0
- package/dist/service/dynamodb/command/table/sim-dynamodb-create-table.d.ts +6 -0
- package/dist/service/dynamodb/command/table/sim-dynamodb-create-table.d.ts.map +1 -1
- package/dist/service/dynamodb/command/table/sim-dynamodb-create-table.js +11 -0
- package/dist/service/dynamodb/command/table/sim-dynamodb-create-table.js.map +1 -1
- package/dist/service/dynamodb/command/table/sim-dynamodb-unsimulated-table-input.d.ts +6 -5
- package/dist/service/dynamodb/command/table/sim-dynamodb-unsimulated-table-input.d.ts.map +1 -1
- package/dist/service/dynamodb/command/table/sim-dynamodb-unsimulated-table-input.js +6 -16
- package/dist/service/dynamodb/command/table/sim-dynamodb-unsimulated-table-input.js.map +1 -1
- package/dist/service/dynamodb/command/table/sim-dynamodb-unsimulated-update-input.d.ts +4 -4
- package/dist/service/dynamodb/command/table/sim-dynamodb-unsimulated-update-input.d.ts.map +1 -1
- package/dist/service/dynamodb/command/table/sim-dynamodb-unsimulated-update-input.js +4 -9
- package/dist/service/dynamodb/command/table/sim-dynamodb-unsimulated-update-input.js.map +1 -1
- package/dist/service/dynamodb/command/table/table.command.d.ts +2 -1
- package/dist/service/dynamodb/command/table/table.command.d.ts.map +1 -1
- package/dist/service/dynamodb/command/table/table.types.d.ts +4 -7
- package/dist/service/dynamodb/command/table/table.types.d.ts.map +1 -1
- package/dist/service/dynamodb/error/dynamodb.error.d.ts +17 -0
- package/dist/service/dynamodb/error/dynamodb.error.d.ts.map +1 -1
- package/dist/service/dynamodb/error/dynamodb.error.js +19 -0
- package/dist/service/dynamodb/error/dynamodb.error.js.map +1 -1
- package/dist/service/dynamodb/index.d.ts +1 -0
- package/dist/service/dynamodb/index.d.ts.map +1 -1
- package/dist/service/dynamodb/index.js +1 -0
- package/dist/service/dynamodb/index.js.map +1 -1
- package/dist/service/dynamodb/sdk/sim-dynamodb-streams-sdk-command-router.d.ts +24 -0
- package/dist/service/dynamodb/sdk/sim-dynamodb-streams-sdk-command-router.d.ts.map +1 -0
- package/dist/service/dynamodb/sdk/sim-dynamodb-streams-sdk-command-router.js +46 -0
- package/dist/service/dynamodb/sdk/sim-dynamodb-streams-sdk-command-router.js.map +1 -0
- package/dist/service/dynamodb/sim-dynamodb-streams.d.ts +59 -0
- package/dist/service/dynamodb/sim-dynamodb-streams.d.ts.map +1 -0
- package/dist/service/dynamodb/sim-dynamodb-streams.js +79 -0
- package/dist/service/dynamodb/sim-dynamodb-streams.js.map +1 -0
- package/dist/service/dynamodb/sim-dynamodb.d.ts +45 -60
- package/dist/service/dynamodb/sim-dynamodb.d.ts.map +1 -1
- package/dist/service/dynamodb/sim-dynamodb.js +59 -60
- package/dist/service/dynamodb/sim-dynamodb.js.map +1 -1
- package/dist/service/dynamodb/stream/sim-dynamodb-item-change.d.ts +34 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-item-change.d.ts.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-item-change.js +2 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-item-change.js.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-activity.d.ts +42 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-activity.d.ts.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-activity.js +35 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-activity.js.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-arn.d.ts +22 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-arn.d.ts.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-arn.js +30 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-arn.js.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-images.d.ts +22 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-images.d.ts.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-images.js +27 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-images.js.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-position.d.ts +31 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-position.d.ts.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-position.js +13 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-position.js.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-read.d.ts +33 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-read.d.ts.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-read.js +66 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-read.js.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-record-keys.d.ts +15 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-record-keys.d.ts.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-record-keys.js +25 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-record-keys.js.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-record-size.d.ts +11 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-record-size.d.ts.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-record-size.js +74 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-record-size.js.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-record.d.ts +49 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-record.d.ts.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-record.js +60 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-record.js.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-retention.d.ts +17 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-retention.d.ts.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-retention.js +24 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-retention.js.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-sequence-numbers.d.ts +34 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-sequence-numbers.d.ts.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-sequence-numbers.js +63 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-sequence-numbers.js.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-shard-iterator.d.ts +25 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-shard-iterator.d.ts.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-shard-iterator.js +74 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-shard-iterator.js.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-shard.d.ts +72 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-shard.d.ts.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-shard.js +113 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-shard.js.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-specification.d.ts +28 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-specification.d.ts.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-specification.js +30 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-specification.js.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-store.d.ts +42 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-store.d.ts.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-store.js +54 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-store.js.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-update.d.ts +13 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-update.d.ts.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-update.js +48 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-update.js.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-view-type.d.ts +10 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-view-type.d.ts.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-view-type.js +38 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-view-type.js.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream.d.ts +88 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream.d.ts.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream.js +100 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream.js.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream.types.d.ts +24 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream.types.d.ts.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream.types.js +2 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream.types.js.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-streamed-orders.factory.d.ts +31 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-streamed-orders.factory.d.ts.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-streamed-orders.factory.js +33 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-streamed-orders.factory.js.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-streamed-table.factory.d.ts +31 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-streamed-table.factory.d.ts.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-streamed-table.factory.js +45 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-streamed-table.factory.js.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-table-stream.d.ts +97 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-table-stream.d.ts.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-table-stream.js +135 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-table-stream.js.map +1 -0
- package/dist/service/dynamodb/table/sim-dynamodb-table-description.d.ts.map +1 -1
- package/dist/service/dynamodb/table/sim-dynamodb-table-description.js +6 -0
- package/dist/service/dynamodb/table/sim-dynamodb-table-description.js.map +1 -1
- package/dist/service/dynamodb/table/sim-dynamodb-table-items.d.ts +33 -1
- package/dist/service/dynamodb/table/sim-dynamodb-table-items.d.ts.map +1 -1
- package/dist/service/dynamodb/table/sim-dynamodb-table-items.js +46 -1
- package/dist/service/dynamodb/table/sim-dynamodb-table-items.js.map +1 -1
- package/dist/service/dynamodb/table/sim-dynamodb-table-storage.d.ts +95 -0
- package/dist/service/dynamodb/table/sim-dynamodb-table-storage.d.ts.map +1 -0
- package/dist/service/dynamodb/table/sim-dynamodb-table-storage.js +120 -0
- package/dist/service/dynamodb/table/sim-dynamodb-table-storage.js.map +1 -0
- package/dist/service/dynamodb/table/sim-dynamodb-table-update.d.ts +2 -0
- package/dist/service/dynamodb/table/sim-dynamodb-table-update.d.ts.map +1 -1
- package/dist/service/dynamodb/table/sim-dynamodb-table-update.js +11 -6
- package/dist/service/dynamodb/table/sim-dynamodb-table-update.js.map +1 -1
- package/dist/service/dynamodb/table/sim-dynamodb-table.d.ts +33 -70
- package/dist/service/dynamodb/table/sim-dynamodb-table.d.ts.map +1 -1
- package/dist/service/dynamodb/table/sim-dynamodb-table.js +50 -93
- package/dist/service/dynamodb/table/sim-dynamodb-table.js.map +1 -1
- package/dist/service/dynamodb/table/sim-dynamodb-updatable-table.d.ts +6 -3
- package/dist/service/dynamodb/table/sim-dynamodb-updatable-table.d.ts.map +1 -1
- package/dist/service/dynamodb/time-to-live/sim-dynamodb-table-time-to-live.d.ts.map +1 -1
- package/dist/service/dynamodb/time-to-live/sim-dynamodb-table-time-to-live.js +5 -1
- package/dist/service/dynamodb/time-to-live/sim-dynamodb-table-time-to-live.js.map +1 -1
- package/dist/service/lambda/cfn/event-source-mapping/sim-cfn-lambda-event-source-mapping-properties.d.ts +14 -0
- package/dist/service/lambda/cfn/event-source-mapping/sim-cfn-lambda-event-source-mapping-properties.d.ts.map +1 -1
- package/dist/service/lambda/cfn/event-source-mapping/sim-cfn-lambda-event-source-mapping-properties.js +29 -1
- package/dist/service/lambda/cfn/event-source-mapping/sim-cfn-lambda-event-source-mapping-properties.js.map +1 -1
- package/dist/service/lambda/cfn/event-source-mapping/sim-cfn-lambda-event-source-mapping-property-rules.d.ts.map +1 -1
- package/dist/service/lambda/cfn/event-source-mapping/sim-cfn-lambda-event-source-mapping-property-rules.js +8 -2
- package/dist/service/lambda/cfn/event-source-mapping/sim-cfn-lambda-event-source-mapping-property-rules.js.map +1 -1
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.d.ts +7 -2
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.d.ts.map +1 -1
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.js +20 -9
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.js.map +1 -1
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-refusals.d.ts +4 -0
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-refusals.d.ts.map +1 -1
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-refusals.js +49 -20
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-refusals.js.map +1 -1
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-values.d.ts +5 -6
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-values.d.ts.map +1 -1
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-values.js +5 -22
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-values.js.map +1 -1
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping.handler.d.ts +7 -3
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping.handler.d.ts.map +1 -1
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping.handler.js +15 -10
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping.handler.js.map +1 -1
- package/dist/service/lambda/command/event-source-mapping/sim-lambda-event-source-mapping-commands.d.ts +3 -1
- package/dist/service/lambda/command/event-source-mapping/sim-lambda-event-source-mapping-commands.d.ts.map +1 -1
- package/dist/service/lambda/command/event-source-mapping/sim-lambda-event-source-mapping-commands.js +1 -1
- package/dist/service/lambda/command/event-source-mapping/sim-lambda-event-source-mapping-commands.js.map +1 -1
- package/dist/service/lambda/event-source/poll/sim-lambda-batch-item-failures.d.ts +17 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-batch-item-failures.d.ts.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-batch-item-failures.js +46 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-batch-item-failures.js.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-event-image.d.ts +23 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-event-image.d.ts.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-event-image.js +55 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-event-image.js.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-polled-stream.d.ts +27 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-polled-stream.d.ts.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-polled-stream.js +41 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-polled-stream.js.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-delivery.d.ts +42 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-delivery.d.ts.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-delivery.js +52 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-delivery.js.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-event-source-poller.d.ts +77 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-event-source-poller.d.ts.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-event-source-poller.js +114 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-event-source-poller.js.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-event.d.ts +21 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-event.d.ts.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-event.js +56 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-event.js.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-event.types.d.ts +78 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-event.types.d.ts.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-event.types.js +8 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-event.types.js.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-batch-response.d.ts +39 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-batch-response.d.ts.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-batch-response.js +28 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-batch-response.js.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-delivery.d.ts +33 -7
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-delivery.d.ts.map +1 -1
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-delivery.js +7 -6
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-delivery.js.map +1 -1
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poll-turn.d.ts +40 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poll-turn.d.ts.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poll-turn.js +45 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poll-turn.js.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poller-factory.d.ts +26 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poller-factory.d.ts.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poller-factory.js +29 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poller-factory.js.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poller.d.ts +9 -69
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poller.d.ts.map +1 -1
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poller.js +1 -135
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poller.js.map +1 -1
- package/dist/service/lambda/event-source/poll/sim-lambda-sqs-batch-response.d.ts +6 -30
- package/dist/service/lambda/event-source/poll/sim-lambda-sqs-batch-response.d.ts.map +1 -1
- package/dist/service/lambda/event-source/poll/sim-lambda-sqs-batch-response.js +9 -66
- package/dist/service/lambda/event-source/poll/sim-lambda-sqs-batch-response.js.map +1 -1
- package/dist/service/lambda/event-source/poll/sim-lambda-sqs-delivery.d.ts +17 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-sqs-delivery.d.ts.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-sqs-delivery.js +17 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-sqs-delivery.js.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-sqs-event-source-poller.d.ts +88 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-sqs-event-source-poller.d.ts.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-sqs-event-source-poller.js +132 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-sqs-event-source-poller.js.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-sqs-polled-queue.d.ts +41 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-sqs-polled-queue.d.ts.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-sqs-polled-queue.js +60 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-sqs-polled-queue.js.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-stream-batch-outcome.d.ts +37 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-stream-batch-outcome.d.ts.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-stream-batch-outcome.js +51 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-stream-batch-outcome.js.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-stream-batch-response.d.ts +29 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-stream-batch-response.d.ts.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-stream-batch-response.js +71 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-stream-batch-response.js.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-stream-checkpoint.d.ts +36 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-stream-checkpoint.d.ts.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-stream-checkpoint.js +41 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-stream-checkpoint.js.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-stream-progress.d.ts +65 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-stream-progress.d.ts.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-stream-progress.js +92 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-stream-progress.js.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-stream-retry-backoff.d.ts +36 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-stream-retry-backoff.d.ts.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-stream-retry-backoff.js +47 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-stream-retry-backoff.js.map +1 -0
- package/dist/service/lambda/event-source/queue/sim-lambda-sqs-event-source-arn.d.ts +29 -5
- package/dist/service/lambda/event-source/queue/sim-lambda-sqs-event-source-arn.d.ts.map +1 -1
- package/dist/service/lambda/event-source/queue/sim-lambda-sqs-event-source-arn.js +48 -12
- package/dist/service/lambda/event-source/queue/sim-lambda-sqs-event-source-arn.js.map +1 -1
- package/dist/service/lambda/event-source/queue/sim-lambda-sqs-event-source-rules.d.ts +24 -0
- package/dist/service/lambda/event-source/queue/sim-lambda-sqs-event-source-rules.d.ts.map +1 -0
- package/dist/service/lambda/event-source/queue/sim-lambda-sqs-event-source-rules.js +33 -0
- package/dist/service/lambda/event-source/queue/sim-lambda-sqs-event-source-rules.js.map +1 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-arn.d.ts +25 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-arn.d.ts.map +1 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-arn.js +33 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-arn.js.map +1 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-batch-rules.d.ts +30 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-batch-rules.d.ts.map +1 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-batch-rules.js +40 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-batch-rules.js.map +1 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-mapping.d.ts +15 -8
- package/dist/service/lambda/event-source/sim-lambda-event-source-mapping.d.ts.map +1 -1
- package/dist/service/lambda/event-source/sim-lambda-event-source-mapping.js +14 -9
- package/dist/service/lambda/event-source/sim-lambda-event-source-mapping.js.map +1 -1
- package/dist/service/lambda/event-source/sim-lambda-event-source-pollers.d.ts +7 -5
- package/dist/service/lambda/event-source/sim-lambda-event-source-pollers.d.ts.map +1 -1
- package/dist/service/lambda/event-source/sim-lambda-event-source-pollers.js +5 -5
- package/dist/service/lambda/event-source/sim-lambda-event-source-pollers.js.map +1 -1
- package/dist/service/lambda/event-source/sim-lambda-event-source-polling-permission.d.ts +18 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-polling-permission.d.ts.map +1 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-polling-permission.js +23 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-polling-permission.js.map +1 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-reachable.d.ts +27 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-reachable.d.ts.map +1 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-reachable.js +40 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-reachable.js.map +1 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-role-permissions.d.ts +7 -3
- package/dist/service/lambda/event-source/sim-lambda-event-source-role-permissions.d.ts.map +1 -1
- package/dist/service/lambda/event-source/sim-lambda-event-source-role-permissions.js +13 -21
- package/dist/service/lambda/event-source/sim-lambda-event-source-role-permissions.js.map +1 -1
- package/dist/service/lambda/event-source/sim-lambda-event-source-starting-position.d.ts +60 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-starting-position.d.ts.map +1 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-starting-position.js +51 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-starting-position.js.map +1 -0
- package/dist/service/lambda/event-source/stream/sim-dynamodb-event-source-stream-positions.d.ts +31 -0
- package/dist/service/lambda/event-source/stream/sim-dynamodb-event-source-stream-positions.d.ts.map +1 -0
- package/dist/service/lambda/event-source/stream/sim-dynamodb-event-source-stream-positions.js +29 -0
- package/dist/service/lambda/event-source/stream/sim-dynamodb-event-source-stream-positions.js.map +1 -0
- package/dist/service/lambda/event-source/stream/sim-dynamodb-event-source-stream-reader.d.ts +32 -0
- package/dist/service/lambda/event-source/stream/sim-dynamodb-event-source-stream-reader.d.ts.map +1 -0
- package/dist/service/lambda/event-source/stream/sim-dynamodb-event-source-stream-reader.js +48 -0
- package/dist/service/lambda/event-source/stream/sim-dynamodb-event-source-stream-reader.js.map +1 -0
- package/dist/service/lambda/event-source/stream/sim-dynamodb-event-source-stream-shard.d.ts +28 -0
- package/dist/service/lambda/event-source/stream/sim-dynamodb-event-source-stream-shard.d.ts.map +1 -0
- package/dist/service/lambda/event-source/stream/sim-dynamodb-event-source-stream-shard.js +71 -0
- package/dist/service/lambda/event-source/stream/sim-dynamodb-event-source-stream-shard.js.map +1 -0
- package/dist/service/lambda/event-source/stream/sim-dynamodb-event-source-streams.d.ts +42 -0
- package/dist/service/lambda/event-source/stream/sim-dynamodb-event-source-streams.d.ts.map +1 -0
- package/dist/service/lambda/event-source/stream/sim-dynamodb-event-source-streams.js +55 -0
- package/dist/service/lambda/event-source/stream/sim-dynamodb-event-source-streams.js.map +1 -0
- package/dist/service/lambda/event-source/stream/sim-lambda-dynamodb-attribute-value.d.ts +150 -0
- package/dist/service/lambda/event-source/stream/sim-lambda-dynamodb-attribute-value.d.ts.map +1 -0
- package/dist/service/lambda/event-source/stream/sim-lambda-dynamodb-attribute-value.js +2 -0
- package/dist/service/lambda/event-source/stream/sim-lambda-dynamodb-attribute-value.js.map +1 -0
- package/dist/service/lambda/event-source/stream/sim-lambda-dynamodb-stream-event-source-arn.d.ts +52 -0
- package/dist/service/lambda/event-source/stream/sim-lambda-dynamodb-stream-event-source-arn.d.ts.map +1 -0
- package/dist/service/lambda/event-source/stream/sim-lambda-dynamodb-stream-event-source-arn.js +88 -0
- package/dist/service/lambda/event-source/stream/sim-lambda-dynamodb-stream-event-source-arn.js.map +1 -0
- package/dist/service/lambda/event-source/stream/sim-lambda-dynamodb-stream-event-source-rules.d.ts +25 -0
- package/dist/service/lambda/event-source/stream/sim-lambda-dynamodb-stream-event-source-rules.d.ts.map +1 -0
- package/dist/service/lambda/event-source/stream/sim-lambda-dynamodb-stream-event-source-rules.js +34 -0
- package/dist/service/lambda/event-source/stream/sim-lambda-dynamodb-stream-event-source-rules.js.map +1 -0
- package/dist/service/lambda/event-source/stream/sim-lambda-event-source-delivery-context.d.ts +31 -0
- package/dist/service/lambda/event-source/stream/sim-lambda-event-source-delivery-context.d.ts.map +1 -0
- package/dist/service/lambda/event-source/stream/sim-lambda-event-source-delivery-context.js +33 -0
- package/dist/service/lambda/event-source/stream/sim-lambda-event-source-delivery-context.js.map +1 -0
- package/dist/service/lambda/event-source/stream/sim-lambda-event-source-stream-service.d.ts +73 -0
- package/dist/service/lambda/event-source/stream/sim-lambda-event-source-stream-service.d.ts.map +1 -0
- package/dist/service/lambda/event-source/stream/sim-lambda-event-source-stream-service.js +2 -0
- package/dist/service/lambda/event-source/stream/sim-lambda-event-source-stream-service.js.map +1 -0
- package/dist/service/lambda/event-source/stream/sim-lambda-event-source-streams.d.ts +148 -0
- package/dist/service/lambda/event-source/stream/sim-lambda-event-source-streams.d.ts.map +1 -0
- package/dist/service/lambda/event-source/stream/sim-lambda-event-source-streams.js +37 -0
- package/dist/service/lambda/event-source/stream/sim-lambda-event-source-streams.js.map +1 -0
- package/dist/service/lambda/event-source/stream/sim-lambda-stream-cascade-guard.d.ts +36 -0
- package/dist/service/lambda/event-source/stream/sim-lambda-stream-cascade-guard.d.ts.map +1 -0
- package/dist/service/lambda/event-source/stream/sim-lambda-stream-cascade-guard.js +50 -0
- package/dist/service/lambda/event-source/stream/sim-lambda-stream-cascade-guard.js.map +1 -0
- package/dist/service/lambda/event-source/stream/sim-lambda-stream-cascade.error.d.ts +24 -0
- package/dist/service/lambda/event-source/stream/sim-lambda-stream-cascade.error.d.ts.map +1 -0
- package/dist/service/lambda/event-source/stream/sim-lambda-stream-cascade.error.js +24 -0
- package/dist/service/lambda/event-source/stream/sim-lambda-stream-cascade.error.js.map +1 -0
- package/dist/service/lambda/index.d.ts +3 -0
- package/dist/service/lambda/index.d.ts.map +1 -1
- package/dist/service/lambda/index.js +1 -0
- package/dist/service/lambda/index.js.map +1 -1
- package/dist/service/lambda/sim-lambda-commands.d.ts +2 -0
- package/dist/service/lambda/sim-lambda-commands.d.ts.map +1 -1
- package/dist/service/lambda/sim-lambda-commands.js +7 -3
- package/dist/service/lambda/sim-lambda-commands.js.map +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-lambda-notification.d.ts +7 -25
- package/dist/service/s3/bucket/notification/sim-s3-lambda-notification.d.ts.map +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-lambda-notification.js +10 -31
- package/dist/service/s3/bucket/notification/sim-s3-lambda-notification.js.map +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-notification-configuration-reader.d.ts +6 -10
- package/dist/service/s3/bucket/notification/sim-s3-notification-configuration-reader.d.ts.map +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-notification-configuration-reader.js +16 -68
- package/dist/service/s3/bucket/notification/sim-s3-notification-configuration-reader.js.map +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-notification-configuration.d.ts +17 -4
- package/dist/service/s3/bucket/notification/sim-s3-notification-configuration.d.ts.map +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-notification-configuration.js +19 -10
- package/dist/service/s3/bucket/notification/sim-s3-notification-configuration.js.map +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-notification-ids.d.ts +9 -0
- package/dist/service/s3/bucket/notification/sim-s3-notification-ids.d.ts.map +1 -0
- package/dist/service/s3/bucket/notification/sim-s3-notification-ids.js +18 -0
- package/dist/service/s3/bucket/notification/sim-s3-notification-ids.js.map +1 -0
- package/dist/service/s3/bucket/notification/sim-s3-notification-overlap.d.ts +5 -3
- package/dist/service/s3/bucket/notification/sim-s3-notification-overlap.d.ts.map +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-notification-overlap.js +3 -1
- package/dist/service/s3/bucket/notification/sim-s3-notification-overlap.js.map +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-notification-properties.d.ts +19 -0
- package/dist/service/s3/bucket/notification/sim-s3-notification-properties.d.ts.map +1 -0
- package/dist/service/s3/bucket/notification/sim-s3-notification-properties.js +27 -0
- package/dist/service/s3/bucket/notification/sim-s3-notification-properties.js.map +1 -0
- package/dist/service/s3/bucket/notification/sim-s3-notification.d.ts +61 -0
- package/dist/service/s3/bucket/notification/sim-s3-notification.d.ts.map +1 -0
- package/dist/service/s3/bucket/notification/sim-s3-notification.js +50 -0
- package/dist/service/s3/bucket/notification/sim-s3-notification.js.map +1 -0
- package/dist/service/s3/bucket/notification/sim-s3-queue-notification.d.ts +21 -0
- package/dist/service/s3/bucket/notification/sim-s3-queue-notification.d.ts.map +1 -0
- package/dist/service/s3/bucket/notification/sim-s3-queue-notification.js +24 -0
- package/dist/service/s3/bucket/notification/sim-s3-queue-notification.js.map +1 -0
- package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-destinations.d.ts +10 -0
- package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-destinations.d.ts.map +1 -0
- package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-destinations.js +31 -0
- package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-destinations.js.map +1 -0
- package/dist/service/s3/cfn/bucket/notification/sim-cfn-s3-bucket-notification-configuration.d.ts +3 -0
- package/dist/service/s3/cfn/bucket/notification/sim-cfn-s3-bucket-notification-configuration.d.ts.map +1 -1
- package/dist/service/s3/cfn/bucket/notification/sim-cfn-s3-bucket-notification-configuration.js +30 -1
- package/dist/service/s3/cfn/bucket/notification/sim-cfn-s3-bucket-notification-configuration.js.map +1 -1
- package/dist/service/s3/command/get-bucket-notification-configuration/get-bucket-notification-configuration.command.d.ts +2 -1
- package/dist/service/s3/command/get-bucket-notification-configuration/get-bucket-notification-configuration.command.d.ts.map +1 -1
- package/dist/service/s3/command/put-bucket-notification-configuration/put-bucket-notification-configuration.command.d.ts +10 -1
- package/dist/service/s3/command/put-bucket-notification-configuration/put-bucket-notification-configuration.command.d.ts.map +1 -1
- package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.d.ts +0 -4
- package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.d.ts.map +1 -1
- package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.js +1 -4
- package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.js.map +1 -1
- package/dist/service/s3/notification/destination/sim-s3-notification-destination-check.d.ts.map +1 -1
- package/dist/service/s3/notification/destination/sim-s3-notification-destination-check.js +6 -4
- package/dist/service/s3/notification/destination/sim-s3-notification-destination-check.js.map +1 -1
- package/dist/service/s3/notification/destination/sim-s3-notification-destination.d.ts +20 -2
- package/dist/service/s3/notification/destination/sim-s3-notification-destination.d.ts.map +1 -1
- package/dist/service/s3/notification/destination/sim-s3-service-notification-destinations.d.ts +12 -10
- package/dist/service/s3/notification/destination/sim-s3-service-notification-destinations.d.ts.map +1 -1
- package/dist/service/s3/notification/destination/sim-s3-service-notification-destinations.js +19 -17
- package/dist/service/s3/notification/destination/sim-s3-service-notification-destinations.js.map +1 -1
- package/dist/service/s3/notification/destination/sim-s3-service-principal.d.ts +8 -0
- package/dist/service/s3/notification/destination/sim-s3-service-principal.d.ts.map +1 -0
- package/dist/service/s3/notification/destination/sim-s3-service-principal.js +8 -0
- package/dist/service/s3/notification/destination/sim-s3-service-principal.js.map +1 -0
- package/dist/service/s3/notification/destination/sqs/sim-aws-s3-notification-queues.d.ts +40 -0
- package/dist/service/s3/notification/destination/sqs/sim-aws-s3-notification-queues.d.ts.map +1 -0
- package/dist/service/s3/notification/destination/sqs/sim-aws-s3-notification-queues.js +52 -0
- package/dist/service/s3/notification/destination/sqs/sim-aws-s3-notification-queues.js.map +1 -0
- package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queue-arn.d.ts +33 -0
- package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queue-arn.d.ts.map +1 -0
- package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queue-arn.js +64 -0
- package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queue-arn.js.map +1 -0
- package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queue.d.ts +33 -0
- package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queue.d.ts.map +1 -0
- package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queue.js +55 -0
- package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queue.js.map +1 -0
- package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queues.d.ts +23 -0
- package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queues.d.ts.map +1 -0
- package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queues.js +2 -0
- package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queues.js.map +1 -0
- package/dist/service/s3/notification/destination/sqs/sim-s3-sqs-notification-destination.d.ts +40 -0
- package/dist/service/s3/notification/destination/sqs/sim-s3-sqs-notification-destination.d.ts.map +1 -0
- package/dist/service/s3/notification/destination/sqs/sim-s3-sqs-notification-destination.js +51 -0
- package/dist/service/s3/notification/destination/sqs/sim-s3-sqs-notification-destination.js.map +1 -0
- package/dist/service/s3/notification/sim-s3-notification-dispatcher.d.ts +2 -2
- package/dist/service/s3/notification/sim-s3-notification-dispatcher.d.ts.map +1 -1
- package/dist/service/s3/notification/sim-s3-notification-dispatcher.js +6 -3
- package/dist/service/s3/notification/sim-s3-notification-dispatcher.js.map +1 -1
- package/dist/service/sqs/command/authorize/sim-sqs-condition-context.d.ts.map +1 -1
- package/dist/service/sqs/command/authorize/sim-sqs-condition-context.js +9 -5
- package/dist/service/sqs/command/authorize/sim-sqs-condition-context.js.map +1 -1
- package/dist/service/sqs/command/authorize/sim-sqs-service-send-authorizer.d.ts +40 -0
- package/dist/service/sqs/command/authorize/sim-sqs-service-send-authorizer.d.ts.map +1 -0
- package/dist/service/sqs/command/authorize/sim-sqs-service-send-authorizer.js +40 -0
- package/dist/service/sqs/command/authorize/sim-sqs-service-send-authorizer.js.map +1 -0
- package/dist/service/sqs/command/sim-sqs-request-options.d.ts +16 -0
- package/dist/service/sqs/command/sim-sqs-request-options.d.ts.map +1 -1
- package/dist/service/sqs/command/sim-sqs-request-options.js +9 -0
- package/dist/service/sqs/command/sim-sqs-request-options.js.map +1 -1
- package/dist/service/sqs/index.d.ts +2 -2
- package/dist/service/sqs/index.d.ts.map +1 -1
- package/dist/service/sqs/index.js +2 -2
- package/dist/service/sqs/index.js.map +1 -1
- package/dist/service/sqs/queue/sim-sqs-queue-arn.d.ts +17 -2
- package/dist/service/sqs/queue/sim-sqs-queue-arn.d.ts.map +1 -1
- package/dist/service/sqs/queue/sim-sqs-queue-arn.js +9 -5
- package/dist/service/sqs/queue/sim-sqs-queue-arn.js.map +1 -1
- package/package.json +5 -4
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { BackgroundTasks, } from "../../util/background/background.js";
|
|
2
2
|
import { SimDynamoDbCommandHandlers } from "./command/sim-dynamodb-command-handlers.js";
|
|
3
|
+
import { SimDynamoDbStreamActivity } from "./stream/sim-dynamodb-stream-activity.js";
|
|
4
|
+
import { SimDynamoDbStreamStore } from "./stream/sim-dynamodb-stream-store.js";
|
|
5
|
+
import { SimDynamoDbStreams } from "./sim-dynamodb-streams.js";
|
|
3
6
|
import { SimDynamoDbTableStore } from "./table/sim-dynamodb-table-store.js";
|
|
4
7
|
import { simAwsAccountRegionScopeFactory } from "../aws/sim-aws-account-region-scope.factory.js";
|
|
5
8
|
import { SimIamAllowAllAuth } from "../iam/authorize/sim-iam-inter-service-auth-z.js";
|
|
@@ -7,11 +10,19 @@ import { SimDynamoDatabaseSdkCommandRouter } from "./sdk/sim-dynamodb-sdk-comman
|
|
|
7
10
|
import { SimDynamoDbCfnResourceFactory } from "./cfn/sim-cfn-dynamodb-resource-factory.js";
|
|
8
11
|
/**
|
|
9
12
|
* Simulated DynamoDB. Handles SDK commands. Emulates AWS behaviour and state.
|
|
13
|
+
*
|
|
14
|
+
* Each command below carries a one line doc comment rather than a block. This
|
|
15
|
+
* file grows by one delegating method per simulated operation and is close to
|
|
16
|
+
* the max-lines limit, which is the same reason `SimAwsServiceAccessors` reads
|
|
17
|
+
* that way.
|
|
10
18
|
*/
|
|
11
19
|
export class SimDynamoDb {
|
|
12
20
|
tables = new SimDynamoDbTableStore();
|
|
21
|
+
streamStore = new SimDynamoDbStreamStore();
|
|
22
|
+
activity = new SimDynamoDbStreamActivity();
|
|
13
23
|
background;
|
|
14
24
|
commands;
|
|
25
|
+
streamsApi;
|
|
15
26
|
sdkRouter = new SimDynamoDatabaseSdkCommandRouter(this);
|
|
16
27
|
cfnFactory = new SimDynamoDbCfnResourceFactory({
|
|
17
28
|
dynamoDb: this,
|
|
@@ -21,148 +32,116 @@ export class SimDynamoDb {
|
|
|
21
32
|
this.background = background;
|
|
22
33
|
this.commands = new SimDynamoDbCommandHandlers({
|
|
23
34
|
tables: this.tables,
|
|
35
|
+
streams: this.streamStore,
|
|
36
|
+
streamActivity: this.activity,
|
|
37
|
+
accountRegionScope,
|
|
38
|
+
iam,
|
|
39
|
+
background,
|
|
40
|
+
});
|
|
41
|
+
this.streamsApi = new SimDynamoDbStreams({
|
|
42
|
+
streams: this.streamStore,
|
|
24
43
|
accountRegionScope,
|
|
25
44
|
iam,
|
|
26
45
|
background,
|
|
27
46
|
});
|
|
28
47
|
}
|
|
29
|
-
/**
|
|
30
|
-
* Handle a Create Table Command from the SDK.
|
|
31
|
-
*/
|
|
48
|
+
/** Handle a Create Table Command from the SDK. */
|
|
32
49
|
async createTable(command, options) {
|
|
33
50
|
// Allow for potential non-deterministic sequencing of async events.
|
|
34
51
|
await this.background.sequence();
|
|
35
52
|
return this.commands.tableCreation.handle(command, options);
|
|
36
53
|
}
|
|
37
|
-
/**
|
|
38
|
-
* Handle a Describe Table Command from the SDK.
|
|
39
|
-
*/
|
|
54
|
+
/** Handle a Describe Table Command from the SDK. */
|
|
40
55
|
async describeTable(command, options) {
|
|
41
56
|
await this.background.sequence();
|
|
42
57
|
return this.commands.tables.describeTable(command, options);
|
|
43
58
|
}
|
|
44
|
-
/**
|
|
45
|
-
* Handle an Update Table Command from the SDK.
|
|
46
|
-
*/
|
|
59
|
+
/** Handle an Update Table Command from the SDK. */
|
|
47
60
|
async updateTable(command, options) {
|
|
48
61
|
await this.background.sequence();
|
|
49
62
|
return this.commands.tableUpdates.handle(command, options);
|
|
50
63
|
}
|
|
51
|
-
/**
|
|
52
|
-
* Handle a List Tables Command from the SDK.
|
|
53
|
-
*/
|
|
64
|
+
/** Handle a List Tables Command from the SDK. */
|
|
54
65
|
async listTables(command, options) {
|
|
55
66
|
await this.background.sequence();
|
|
56
67
|
return this.commands.tables.listTables(command, options);
|
|
57
68
|
}
|
|
58
|
-
/**
|
|
59
|
-
* Handle a Delete Table Command from the SDK.
|
|
60
|
-
*/
|
|
69
|
+
/** Handle a Delete Table Command from the SDK. */
|
|
61
70
|
async deleteTable(command, options) {
|
|
62
71
|
await this.background.sequence();
|
|
63
72
|
return this.commands.tables.deleteTable(command, options);
|
|
64
73
|
}
|
|
65
|
-
/**
|
|
66
|
-
* Handle a Put Item Command from the SDK.
|
|
67
|
-
*/
|
|
74
|
+
/** Handle a Put Item Command from the SDK. */
|
|
68
75
|
async putItem(command, options) {
|
|
69
76
|
await this.background.sequence();
|
|
70
77
|
return this.commands.itemWrites.handle(command, options);
|
|
71
78
|
}
|
|
72
|
-
/**
|
|
73
|
-
* Handle a Get Item Command from the SDK.
|
|
74
|
-
*/
|
|
79
|
+
/** Handle a Get Item Command from the SDK. */
|
|
75
80
|
async getItem(command, options) {
|
|
76
81
|
await this.background.sequence();
|
|
77
82
|
return this.commands.itemReads.handle(command, options);
|
|
78
83
|
}
|
|
79
|
-
/**
|
|
80
|
-
* Handle a Delete Item Command from the SDK.
|
|
81
|
-
*/
|
|
84
|
+
/** Handle a Delete Item Command from the SDK. */
|
|
82
85
|
async deleteItem(command, options) {
|
|
83
86
|
await this.background.sequence();
|
|
84
87
|
return this.commands.itemDeletions.handle(command, options);
|
|
85
88
|
}
|
|
86
|
-
/**
|
|
87
|
-
* Handle an Update Item Command from the SDK.
|
|
88
|
-
*/
|
|
89
|
+
/** Handle an Update Item Command from the SDK. */
|
|
89
90
|
async updateItem(command, options) {
|
|
90
91
|
await this.background.sequence();
|
|
91
92
|
return this.commands.itemUpdates.handle(command, options);
|
|
92
93
|
}
|
|
93
|
-
/**
|
|
94
|
-
* Handle a Query Command from the SDK.
|
|
95
|
-
*/
|
|
94
|
+
/** Handle a Query Command from the SDK. */
|
|
96
95
|
async query(command, options) {
|
|
97
96
|
await this.background.sequence();
|
|
98
97
|
return this.commands.itemQueries.handle(command, options);
|
|
99
98
|
}
|
|
100
|
-
/**
|
|
101
|
-
* Handle a Scan Command from the SDK.
|
|
102
|
-
*/
|
|
99
|
+
/** Handle a Scan Command from the SDK. */
|
|
103
100
|
async scan(command, options) {
|
|
104
101
|
await this.background.sequence();
|
|
105
102
|
return this.commands.itemScans.handle(command, options);
|
|
106
103
|
}
|
|
107
|
-
/**
|
|
108
|
-
* Handle a Batch Write Item Command from the SDK.
|
|
109
|
-
*/
|
|
104
|
+
/** Handle a Batch Write Item Command from the SDK. */
|
|
110
105
|
async batchWriteItem(command, options) {
|
|
111
106
|
await this.background.sequence();
|
|
112
107
|
return this.commands.itemBatchWrites.handle(command, options);
|
|
113
108
|
}
|
|
114
|
-
/**
|
|
115
|
-
* Handle a Batch Get Item Command from the SDK.
|
|
116
|
-
*/
|
|
109
|
+
/** Handle a Batch Get Item Command from the SDK. */
|
|
117
110
|
async batchGetItem(command, options) {
|
|
118
111
|
await this.background.sequence();
|
|
119
112
|
return this.commands.itemBatchReads.handle(command, options);
|
|
120
113
|
}
|
|
121
|
-
/**
|
|
122
|
-
* Handle a Transact Write Items Command from the SDK.
|
|
123
|
-
*/
|
|
114
|
+
/** Handle a Transact Write Items Command from the SDK. */
|
|
124
115
|
async transactWriteItems(command, options) {
|
|
125
116
|
await this.background.sequence();
|
|
126
117
|
return this.commands.itemTransactWrites.handle(command, options);
|
|
127
118
|
}
|
|
128
|
-
/**
|
|
129
|
-
* Handle a Transact Get Items Command from the SDK.
|
|
130
|
-
*/
|
|
119
|
+
/** Handle a Transact Get Items Command from the SDK. */
|
|
131
120
|
async transactGetItems(command, options) {
|
|
132
121
|
await this.background.sequence();
|
|
133
122
|
return this.commands.itemTransactReads.handle(command, options);
|
|
134
123
|
}
|
|
135
|
-
/**
|
|
136
|
-
* Handle a Tag Resource Command from the SDK.
|
|
137
|
-
*/
|
|
124
|
+
/** Handle a Tag Resource Command from the SDK. */
|
|
138
125
|
async tagResource(command, options) {
|
|
139
126
|
await this.background.sequence();
|
|
140
127
|
return this.commands.tags.tagResource(command, options);
|
|
141
128
|
}
|
|
142
|
-
/**
|
|
143
|
-
* Handle an Untag Resource Command from the SDK.
|
|
144
|
-
*/
|
|
129
|
+
/** Handle an Untag Resource Command from the SDK. */
|
|
145
130
|
async untagResource(command, options) {
|
|
146
131
|
await this.background.sequence();
|
|
147
132
|
return this.commands.tags.untagResource(command, options);
|
|
148
133
|
}
|
|
149
|
-
/**
|
|
150
|
-
* Handle a List Tags Of Resource Command from the SDK.
|
|
151
|
-
*/
|
|
134
|
+
/** Handle a List Tags Of Resource Command from the SDK. */
|
|
152
135
|
async listTagsOfResource(command, options) {
|
|
153
136
|
await this.background.sequence();
|
|
154
137
|
return this.commands.tags.listTagsOfResource(command, options);
|
|
155
138
|
}
|
|
156
|
-
/**
|
|
157
|
-
* Handle an Update Time To Live Command from the SDK.
|
|
158
|
-
*/
|
|
139
|
+
/** Handle an Update Time To Live Command from the SDK. */
|
|
159
140
|
async updateTimeToLive(command, options) {
|
|
160
141
|
await this.background.sequence();
|
|
161
142
|
return this.commands.timeToLive.updateTimeToLive(command, options);
|
|
162
143
|
}
|
|
163
|
-
/**
|
|
164
|
-
* Handle a Describe Time To Live Command from the SDK.
|
|
165
|
-
*/
|
|
144
|
+
/** Handle a Describe Time To Live Command from the SDK. */
|
|
166
145
|
async describeTimeToLive(command, options) {
|
|
167
146
|
await this.background.sequence();
|
|
168
147
|
return this.commands.timeToLive.describeTimeToLive(command, options);
|
|
@@ -178,6 +157,26 @@ export class SimDynamoDb {
|
|
|
178
157
|
findTable(name) {
|
|
179
158
|
return this.tables.findByName(name);
|
|
180
159
|
}
|
|
160
|
+
/**
|
|
161
|
+
* Find a stream by ARN, if there is one here.
|
|
162
|
+
*
|
|
163
|
+
* Not a DynamoDB API operation. A stream outlives being enabled, so this
|
|
164
|
+
* finds one whose table has since switched it off.
|
|
165
|
+
*/
|
|
166
|
+
findStream(streamArn) {
|
|
167
|
+
return this.streamStore.findByArn(streamArn);
|
|
168
|
+
}
|
|
169
|
+
/** Get the DynamoDB Streams API over this service's streams. */
|
|
170
|
+
streams() {
|
|
171
|
+
return this.streamsApi;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Get the streams of this service, for a consumer that cannot poll them
|
|
175
|
+
* continuously.
|
|
176
|
+
*/
|
|
177
|
+
streamActivity() {
|
|
178
|
+
return this.activity;
|
|
179
|
+
}
|
|
181
180
|
/**
|
|
182
181
|
* Get this service's CloudFormation Resource factory.
|
|
183
182
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-dynamodb.js","sourceRoot":"","sources":["../../../src/service/dynamodb/sim-dynamodb.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,GAChB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AAExF,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,+BAA+B,EAAE,MAAM,gDAAgD,CAAC;AACjG,OAAO,EAAE,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AACtF,OAAO,EAAE,iCAAiC,EAAE,MAAM,0CAA0C,CAAC;AAE7F,OAAO,EAAE,6BAA6B,EAAE,MAAM,4CAA4C,CAAC;AAO3F
|
|
1
|
+
{"version":3,"file":"sim-dynamodb.js","sourceRoot":"","sources":["../../../src/service/dynamodb/sim-dynamodb.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { SimDynamoDbItem } from "../item/sim-dynamodb-item.js";
|
|
2
|
+
/**
|
|
3
|
+
* One change to one item of a table, as the item store saw it happen.
|
|
4
|
+
*
|
|
5
|
+
* This is a transition rather than a state: what was under the key before, and
|
|
6
|
+
* what is under it now. A change with no new image is a removal, one with no
|
|
7
|
+
* old image is an insertion, and one with neither never happened and is never
|
|
8
|
+
* reported.
|
|
9
|
+
*/
|
|
10
|
+
export interface SimDynamoDbItemChange {
|
|
11
|
+
readonly oldImage: SimDynamoDbItem | undefined;
|
|
12
|
+
readonly newImage: SimDynamoDbItem | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Whether time to live took the item, rather than a request.
|
|
15
|
+
*
|
|
16
|
+
* This is the one thing a stream record cannot work out from the images. It
|
|
17
|
+
* is what `userIdentity` reports, and it is how an application tells its own
|
|
18
|
+
* deletions from the ones it never asked for.
|
|
19
|
+
*/
|
|
20
|
+
readonly expired: boolean;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Something told about every change to a table's items.
|
|
24
|
+
*
|
|
25
|
+
* The item store reports to this rather than to a stream, so the store stays
|
|
26
|
+
* unaware of whether the table it holds items for has a stream at all.
|
|
27
|
+
*/
|
|
28
|
+
export interface SimDynamoDbItemChanges {
|
|
29
|
+
/**
|
|
30
|
+
* Take a change that has already happened to the table's items.
|
|
31
|
+
*/
|
|
32
|
+
capture(change: SimDynamoDbItemChange): void;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=sim-dynamodb-item-change.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-dynamodb-item-change.d.ts","sourceRoot":"","sources":["../../../../src/service/dynamodb/stream/sim-dynamodb-item-change.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAEpE;;;;;;;GAOG;AACH,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,QAAQ,EAAE,eAAe,GAAG,SAAS,CAAC;IAC/C,QAAQ,CAAC,QAAQ,EAAE,eAAe,GAAG,SAAS,CAAC;IAE/C;;;;;;OAMG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC3B;AAED;;;;;GAKG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,OAAO,CAAC,MAAM,EAAE,qBAAqB,GAAG,IAAI,CAAC;CAC9C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-dynamodb-item-change.js","sourceRoot":"","sources":["../../../../src/service/dynamodb/stream/sim-dynamodb-item-change.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Something outside DynamoDB waiting for changes on a table's stream.
|
|
3
|
+
*
|
|
4
|
+
* A Lambda event source mapping is the one this exists for: real Lambda polls a
|
|
5
|
+
* stream continuously, and nothing in this simulation runs continuously, so the
|
|
6
|
+
* stream says when there is something to poll for instead.
|
|
7
|
+
*/
|
|
8
|
+
export interface SimDynamoDbStreamWatcher {
|
|
9
|
+
/**
|
|
10
|
+
* A record has been written, and can be read now.
|
|
11
|
+
*
|
|
12
|
+
* There is no instant here, unlike the queue watcher this mirrors. A stream
|
|
13
|
+
* record is readable the moment it is written: nothing delays one, and
|
|
14
|
+
* nothing hides one that has been handed out.
|
|
15
|
+
*/
|
|
16
|
+
recordsAvailable(): void;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* What a consumer that cannot poll continuously needs from the streams of one
|
|
20
|
+
* simulated DynamoDB: to be told when a record has been written.
|
|
21
|
+
*
|
|
22
|
+
* Watchers are held by stream ARN rather than on the stream itself, so a
|
|
23
|
+
* watcher survives whatever the stream does, and so the stream model stays a
|
|
24
|
+
* log rather than a subscription list.
|
|
25
|
+
*/
|
|
26
|
+
export declare class SimDynamoDbStreamActivity {
|
|
27
|
+
private readonly watchers;
|
|
28
|
+
/**
|
|
29
|
+
* Watch a stream for the records written to it.
|
|
30
|
+
*/
|
|
31
|
+
watch(streamArn: string, watcher: SimDynamoDbStreamWatcher): void;
|
|
32
|
+
/**
|
|
33
|
+
* Stop watching a stream.
|
|
34
|
+
*/
|
|
35
|
+
unwatch(streamArn: string, watcher: SimDynamoDbStreamWatcher): void;
|
|
36
|
+
/**
|
|
37
|
+
* Tell a stream's watchers that there is something to read.
|
|
38
|
+
*/
|
|
39
|
+
recordsAvailable(streamArn: string): void;
|
|
40
|
+
private watchersOf;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=sim-dynamodb-stream-activity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-dynamodb-stream-activity.d.ts","sourceRoot":"","sources":["../../../../src/service/dynamodb/stream/sim-dynamodb-stream-activity.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;;;;OAMG;IACH,gBAAgB,IAAI,IAAI,CAAC;CAC1B;AAED;;;;;;;GAOG;AACH,qBAAa,yBAAyB;IACpC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAiD;IAE1E;;OAEG;IACH,KAAK,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,wBAAwB,GAAG,IAAI,CAEhE;IAED;;OAEG;IACH,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,wBAAwB,GAAG,IAAI,CAKlE;IAED;;OAEG;IACH,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAIxC;IAED,OAAO,CAAC,UAAU;CAGnB"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a consumer that cannot poll continuously needs from the streams of one
|
|
3
|
+
* simulated DynamoDB: to be told when a record has been written.
|
|
4
|
+
*
|
|
5
|
+
* Watchers are held by stream ARN rather than on the stream itself, so a
|
|
6
|
+
* watcher survives whatever the stream does, and so the stream model stays a
|
|
7
|
+
* log rather than a subscription list.
|
|
8
|
+
*/
|
|
9
|
+
export class SimDynamoDbStreamActivity {
|
|
10
|
+
watchers = new Map();
|
|
11
|
+
/**
|
|
12
|
+
* Watch a stream for the records written to it.
|
|
13
|
+
*/
|
|
14
|
+
watch(streamArn, watcher) {
|
|
15
|
+
this.watchers.set(streamArn, [...this.watchersOf(streamArn), watcher]);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Stop watching a stream.
|
|
19
|
+
*/
|
|
20
|
+
unwatch(streamArn, watcher) {
|
|
21
|
+
this.watchers.set(streamArn, this.watchersOf(streamArn).filter((held) => held !== watcher));
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Tell a stream's watchers that there is something to read.
|
|
25
|
+
*/
|
|
26
|
+
recordsAvailable(streamArn) {
|
|
27
|
+
for (const watcher of this.watchersOf(streamArn)) {
|
|
28
|
+
watcher.recordsAvailable();
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
watchersOf(streamArn) {
|
|
32
|
+
return this.watchers.get(streamArn) ?? [];
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=sim-dynamodb-stream-activity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-dynamodb-stream-activity.js","sourceRoot":"","sources":["../../../../src/service/dynamodb/stream/sim-dynamodb-stream-activity.ts"],"names":[],"mappings":"AAkBA;;;;;;;GAOG;AACH,MAAM,OAAO,yBAAyB;IACnB,QAAQ,GAAG,IAAI,GAAG,EAAsC,CAAC;IAE1E;;OAEG;IACH,KAAK,CAAC,SAAiB,EAAE,OAAiC;QACxD,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;IACzE,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,SAAiB,EAAE,OAAiC;QAC1D,IAAI,CAAC,QAAQ,CAAC,GAAG,CACf,SAAS,EACT,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,OAAO,CAAC,CAC9D,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,gBAAgB,CAAC,SAAiB;QAChC,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;YACjD,OAAO,CAAC,gBAAgB,EAAE,CAAC;QAC7B,CAAC;IACH,CAAC;IAEO,UAAU,CAAC,SAAiB;QAClC,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAC5C,CAAC;CACF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { SimArn } from "../../aws/arn.js";
|
|
2
|
+
/**
|
|
3
|
+
* The instant a stream being enabled now takes its label from.
|
|
4
|
+
*
|
|
5
|
+
* A label is the instant the stream was enabled, and two streams on one table
|
|
6
|
+
* cannot share one: the label is what tells them apart in the ARN. Simulated
|
|
7
|
+
* time can stand still, so a stream enabled at an instant a previous one
|
|
8
|
+
* already took is moved on by a millisecond rather than colliding with it.
|
|
9
|
+
*/
|
|
10
|
+
export declare function simDynamoDbStreamLabelInstant(now: Date, previous: Date | undefined): Date;
|
|
11
|
+
/**
|
|
12
|
+
* The label a stream enabled at an instant carries.
|
|
13
|
+
*
|
|
14
|
+
* DynamoDB labels a stream with the instant it was enabled, to the
|
|
15
|
+
* millisecond and without the trailing zone marker: `2026-08-04T09:00:00.000`.
|
|
16
|
+
*/
|
|
17
|
+
export declare function simDynamoDbStreamLabel(at: Date): string;
|
|
18
|
+
/**
|
|
19
|
+
* The ARN a table's stream has, which is the table's own ARN and the label.
|
|
20
|
+
*/
|
|
21
|
+
export declare function simDynamoDbStreamArn(tableArn: SimArn, label: string): SimArn;
|
|
22
|
+
//# sourceMappingURL=sim-dynamodb-stream-arn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-dynamodb-stream-arn.d.ts","sourceRoot":"","sources":["../../../../src/service/dynamodb/stream/sim-dynamodb-stream-arn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;;;GAOG;AACH,wBAAgB,6BAA6B,CAC3C,GAAG,EAAE,IAAI,EACT,QAAQ,EAAE,IAAI,GAAG,SAAS,GACzB,IAAI,CAMN;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,EAAE,EAAE,IAAI,GAAG,MAAM,CAEvD;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAE5E"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The instant a stream being enabled now takes its label from.
|
|
3
|
+
*
|
|
4
|
+
* A label is the instant the stream was enabled, and two streams on one table
|
|
5
|
+
* cannot share one: the label is what tells them apart in the ARN. Simulated
|
|
6
|
+
* time can stand still, so a stream enabled at an instant a previous one
|
|
7
|
+
* already took is moved on by a millisecond rather than colliding with it.
|
|
8
|
+
*/
|
|
9
|
+
export function simDynamoDbStreamLabelInstant(now, previous) {
|
|
10
|
+
if (previous === undefined || now.getTime() > previous.getTime()) {
|
|
11
|
+
return now;
|
|
12
|
+
}
|
|
13
|
+
return new Date(previous.getTime() + 1);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* The label a stream enabled at an instant carries.
|
|
17
|
+
*
|
|
18
|
+
* DynamoDB labels a stream with the instant it was enabled, to the
|
|
19
|
+
* millisecond and without the trailing zone marker: `2026-08-04T09:00:00.000`.
|
|
20
|
+
*/
|
|
21
|
+
export function simDynamoDbStreamLabel(at) {
|
|
22
|
+
return at.toISOString().replace("Z", "");
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The ARN a table's stream has, which is the table's own ARN and the label.
|
|
26
|
+
*/
|
|
27
|
+
export function simDynamoDbStreamArn(tableArn, label) {
|
|
28
|
+
return `${tableArn}/stream/${label}`;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=sim-dynamodb-stream-arn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-dynamodb-stream-arn.js","sourceRoot":"","sources":["../../../../src/service/dynamodb/stream/sim-dynamodb-stream-arn.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,MAAM,UAAU,6BAA6B,CAC3C,GAAS,EACT,QAA0B;IAE1B,IAAI,QAAQ,KAAK,SAAS,IAAI,GAAG,CAAC,OAAO,EAAE,GAAG,QAAQ,CAAC,OAAO,EAAE,EAAE,CAAC;QACjE,OAAO,GAAG,CAAC;IACb,CAAC;IAED,OAAO,IAAI,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC;AAC1C,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,sBAAsB,CAAC,EAAQ;IAC7C,OAAO,EAAE,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;AAC3C,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAAC,QAAgB,EAAE,KAAa;IAClE,OAAO,GAAG,QAAQ,WAAW,KAAK,EAAE,CAAC;AACvC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { SimDynamoDbStreamViewType } from "./sim-dynamodb-stream.types.js";
|
|
2
|
+
import type { SimDynamoDbItem } from "../item/sim-dynamodb-item.js";
|
|
3
|
+
import type { SimDynamoDbItemChange } from "./sim-dynamodb-item-change.js";
|
|
4
|
+
/**
|
|
5
|
+
* The images one stream record carries beyond its keys.
|
|
6
|
+
*/
|
|
7
|
+
export interface SimDynamoDbStreamImages {
|
|
8
|
+
readonly newImage: SimDynamoDbItem | undefined;
|
|
9
|
+
readonly oldImage: SimDynamoDbItem | undefined;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Which images a record carries, which is the whole of what a view type does.
|
|
13
|
+
*
|
|
14
|
+
* The degenerate shapes are the point of reading this as a matrix rather than
|
|
15
|
+
* as a choice per record: a removal on a `NEW_IMAGE` stream has no new image to
|
|
16
|
+
* carry, and an insertion on an `OLD_IMAGE` stream has no old one, so both come
|
|
17
|
+
* out as keys and nothing else. Real DynamoDB still writes those records, and
|
|
18
|
+
* so does this, since the record is how a reader learns the change happened at
|
|
19
|
+
* all.
|
|
20
|
+
*/
|
|
21
|
+
export declare function simDynamoDbStreamImages(change: SimDynamoDbItemChange, viewType: SimDynamoDbStreamViewType): SimDynamoDbStreamImages;
|
|
22
|
+
//# sourceMappingURL=sim-dynamodb-stream-images.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-dynamodb-stream-images.d.ts","sourceRoot":"","sources":["../../../../src/service/dynamodb/stream/sim-dynamodb-stream-images.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAChF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAE3E;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,QAAQ,EAAE,eAAe,GAAG,SAAS,CAAC;IAC/C,QAAQ,CAAC,QAAQ,EAAE,eAAe,GAAG,SAAS,CAAC;CAChD;AAED;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,qBAAqB,EAC7B,QAAQ,EAAE,yBAAyB,GAClC,uBAAuB,CAezB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which images a record carries, which is the whole of what a view type does.
|
|
3
|
+
*
|
|
4
|
+
* The degenerate shapes are the point of reading this as a matrix rather than
|
|
5
|
+
* as a choice per record: a removal on a `NEW_IMAGE` stream has no new image to
|
|
6
|
+
* carry, and an insertion on an `OLD_IMAGE` stream has no old one, so both come
|
|
7
|
+
* out as keys and nothing else. Real DynamoDB still writes those records, and
|
|
8
|
+
* so does this, since the record is how a reader learns the change happened at
|
|
9
|
+
* all.
|
|
10
|
+
*/
|
|
11
|
+
export function simDynamoDbStreamImages(change, viewType) {
|
|
12
|
+
switch (viewType) {
|
|
13
|
+
case "KEYS_ONLY": {
|
|
14
|
+
return { newImage: undefined, oldImage: undefined };
|
|
15
|
+
}
|
|
16
|
+
case "NEW_IMAGE": {
|
|
17
|
+
return { newImage: change.newImage, oldImage: undefined };
|
|
18
|
+
}
|
|
19
|
+
case "OLD_IMAGE": {
|
|
20
|
+
return { newImage: undefined, oldImage: change.oldImage };
|
|
21
|
+
}
|
|
22
|
+
case "NEW_AND_OLD_IMAGES": {
|
|
23
|
+
return { newImage: change.newImage, oldImage: change.oldImage };
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=sim-dynamodb-stream-images.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-dynamodb-stream-images.js","sourceRoot":"","sources":["../../../../src/service/dynamodb/stream/sim-dynamodb-stream-images.ts"],"names":[],"mappings":"AAYA;;;;;;;;;GASG;AACH,MAAM,UAAU,uBAAuB,CACrC,MAA6B,EAC7B,QAAmC;IAEnC,QAAQ,QAAQ,EAAE,CAAC;QACjB,KAAK,WAAW,EAAE,CAAC;YACjB,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;QACtD,CAAC;QACD,KAAK,WAAW,EAAE,CAAC;YACjB,OAAO,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;QAC5D,CAAC;QACD,KAAK,WAAW,EAAE,CAAC;YACjB,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC;QAC5D,CAAC;QACD,KAAK,oBAAoB,EAAE,CAAC;YAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC;QAClE,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where on a shard a reader is, between one GetRecords and the next.
|
|
3
|
+
*
|
|
4
|
+
* The three kinds are what the four shard iterator types come down to.
|
|
5
|
+
* TRIM_HORIZON is the start of whatever the shard still holds; LATEST is after
|
|
6
|
+
* the newest record on it; AT_SEQUENCE_NUMBER and AFTER_SEQUENCE_NUMBER are the
|
|
7
|
+
* two ways of naming a record, and the difference between them is whether that
|
|
8
|
+
* record is handed back or stepped over.
|
|
9
|
+
*
|
|
10
|
+
* A position is a place rather than an index, so it survives the shard being
|
|
11
|
+
* trimmed underneath it. That is what lets a read tell "you are asking for
|
|
12
|
+
* records that have aged out" from "there is nothing new yet".
|
|
13
|
+
*/
|
|
14
|
+
export type SimDynamoDbStreamPosition = {
|
|
15
|
+
readonly kind: "start";
|
|
16
|
+
} | {
|
|
17
|
+
readonly kind: "at";
|
|
18
|
+
readonly sequenceNumber: string;
|
|
19
|
+
} | {
|
|
20
|
+
readonly kind: "after";
|
|
21
|
+
readonly sequenceNumber: string;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* The position a reader starting from the oldest record it can reach is at.
|
|
25
|
+
*/
|
|
26
|
+
export declare const simDynamoDbStreamStart: SimDynamoDbStreamPosition;
|
|
27
|
+
/**
|
|
28
|
+
* The position a reader that has just taken a record is at.
|
|
29
|
+
*/
|
|
30
|
+
export declare function simDynamoDbStreamAfter(sequenceNumber: string): SimDynamoDbStreamPosition;
|
|
31
|
+
//# sourceMappingURL=sim-dynamodb-stream-position.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-dynamodb-stream-position.d.ts","sourceRoot":"","sources":["../../../../src/service/dynamodb/stream/sim-dynamodb-stream-position.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,yBAAyB,GACjC;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;CAAE,GAC1B;IAAE,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAA;CAAE,GACxD;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAA;CAAE,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE,yBAEpC,CAAC;AAEF;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,cAAc,EAAE,MAAM,GACrB,yBAAyB,CAE3B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The position a reader starting from the oldest record it can reach is at.
|
|
3
|
+
*/
|
|
4
|
+
export const simDynamoDbStreamStart = {
|
|
5
|
+
kind: "start",
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* The position a reader that has just taken a record is at.
|
|
9
|
+
*/
|
|
10
|
+
export function simDynamoDbStreamAfter(sequenceNumber) {
|
|
11
|
+
return { kind: "after", sequenceNumber };
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=sim-dynamodb-stream-position.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-dynamodb-stream-position.js","sourceRoot":"","sources":["../../../../src/service/dynamodb/stream/sim-dynamodb-stream-position.ts"],"names":[],"mappings":"AAkBA;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAA8B;IAC/D,IAAI,EAAE,OAAO;CACd,CAAC;AAEF;;GAEG;AACH,MAAM,UAAU,sBAAsB,CACpC,cAAsB;IAEtB,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC;AAC3C,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { SimDynamoDbStreamRecord } from "./sim-dynamodb-stream-record.js";
|
|
2
|
+
import { type SimDynamoDbStreamPosition } from "./sim-dynamodb-stream-position.js";
|
|
3
|
+
import type { SimDynamoDbStreamShard } from "./sim-dynamodb-stream-shard.js";
|
|
4
|
+
/**
|
|
5
|
+
* What one read of a shard came back with.
|
|
6
|
+
*
|
|
7
|
+
* `drained` is only true of a closed shard a reader has reached the end of. An
|
|
8
|
+
* open shard is never drained, however empty it is: more may yet be written to
|
|
9
|
+
* it, and that is the difference between a reader that should look again and
|
|
10
|
+
* one that is finished.
|
|
11
|
+
*/
|
|
12
|
+
export interface SimDynamoDbStreamRead {
|
|
13
|
+
readonly records: readonly SimDynamoDbStreamRecord[];
|
|
14
|
+
readonly next: SimDynamoDbStreamPosition;
|
|
15
|
+
readonly drained: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Ensure a shard still holds the position a reader is asking for.
|
|
19
|
+
*
|
|
20
|
+
* Checked when an iterator is handed out as well as when one is used, because a
|
|
21
|
+
* caller can name a sequence number the retention window has already outlived
|
|
22
|
+
* and should find that out at the request rather than one call later.
|
|
23
|
+
*/
|
|
24
|
+
export declare function assertSimDynamoDbStreamPositionReadable(shard: SimDynamoDbStreamShard, position: SimDynamoDbStreamPosition): void;
|
|
25
|
+
/**
|
|
26
|
+
* Read up to a limit of records from a shard, starting at a position.
|
|
27
|
+
*
|
|
28
|
+
* An empty result is an ordinary answer rather than a problem: a reader that
|
|
29
|
+
* has caught up with an open shard gets nothing back and the position it
|
|
30
|
+
* already had, which is what makes polling each successive iterator work.
|
|
31
|
+
*/
|
|
32
|
+
export declare function simDynamoDbStreamRead(shard: SimDynamoDbStreamShard, position: SimDynamoDbStreamPosition, limit: number): SimDynamoDbStreamRead;
|
|
33
|
+
//# sourceMappingURL=sim-dynamodb-stream-read.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-dynamodb-stream-read.d.ts","sourceRoot":"","sources":["../../../../src/service/dynamodb/stream/sim-dynamodb-stream-read.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,mCAAmC,CAAC;AAE3C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAE7E;;;;;;;GAOG;AACH,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,OAAO,EAAE,SAAS,uBAAuB,EAAE,CAAC;IACrD,QAAQ,CAAC,IAAI,EAAE,yBAAyB,CAAC;IACzC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC3B;AA4BD;;;;;;GAMG;AACH,wBAAgB,uCAAuC,CACrD,KAAK,EAAE,sBAAsB,EAC7B,QAAQ,EAAE,yBAAyB,GAClC,IAAI,CAYN;AAyBD;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,sBAAsB,EAC7B,QAAQ,EAAE,yBAAyB,EACnC,KAAK,EAAE,MAAM,GACZ,qBAAqB,CAgBvB"}
|