@kensio/yulin 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts +2 -2
- 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 +10 -6
- 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/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/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/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/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/sim-dynamodb.d.ts +42 -60
- package/dist/service/dynamodb/sim-dynamodb.d.ts.map +1 -1
- package/dist/service/dynamodb/sim-dynamodb.js +48 -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-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-sequence-numbers.d.ts +18 -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 +31 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-sequence-numbers.js.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream-shard.d.ts +39 -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 +64 -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 +26 -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 +29 -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 +74 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream.d.ts.map +1 -0
- package/dist/service/dynamodb/stream/sim-dynamodb-stream.js +82 -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-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/command/event-source-mapping/create-event-source-mapping-input.d.ts +5 -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 +13 -8
- 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 +32 -21
- 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 +1 -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 +1 -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 +2 -1
- 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 +3 -2
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping.handler.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-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-poller-factory.d.ts +25 -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 +16 -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/queue/sim-lambda-sqs-event-source-arn.d.ts +23 -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 +65 -12
- package/dist/service/lambda/event-source/queue/sim-lambda-sqs-event-source-arn.js.map +1 -1
- package/dist/service/lambda/event-source/sim-lambda-event-source-arn.d.ts +23 -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 +30 -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 +26 -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 +35 -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 +6 -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 +6 -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 +5 -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-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/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 +4 -4
|
@@ -1,97 +1,66 @@
|
|
|
1
1
|
import type * as simDynamoDbCommands from "./command/sim-dynamodb-command.types.js";
|
|
2
|
+
import { SimDynamoDbStreamActivity } from "./stream/sim-dynamodb-stream-activity.js";
|
|
3
|
+
import type { SimDynamoDbStream } from "./stream/sim-dynamodb-stream.js";
|
|
2
4
|
import type { SimSdkCommandRouter } from "../../sdk/index.js";
|
|
3
5
|
import { SimDynamoDbCfnResourceFactory } from "./cfn/sim-cfn-dynamodb-resource-factory.js";
|
|
4
6
|
import type { SimDynamoDbTable } from "./table/sim-dynamodb-table.js";
|
|
5
7
|
import type { SimDynamoDbProperties, SimDynamoDbRequestOptions } from "./sim-dynamodb.types.js";
|
|
6
8
|
/**
|
|
7
9
|
* Simulated DynamoDB. Handles SDK commands. Emulates AWS behaviour and state.
|
|
10
|
+
*
|
|
11
|
+
* Each command below carries a one line doc comment rather than a block. This
|
|
12
|
+
* file grows by one delegating method per simulated operation and is close to
|
|
13
|
+
* the max-lines limit, which is the same reason `SimAwsServiceAccessors` reads
|
|
14
|
+
* that way.
|
|
8
15
|
*/
|
|
9
16
|
export declare class SimDynamoDb {
|
|
10
17
|
private readonly tables;
|
|
18
|
+
private readonly streams;
|
|
19
|
+
private readonly activity;
|
|
11
20
|
private readonly background;
|
|
12
21
|
private readonly commands;
|
|
13
22
|
private readonly sdkRouter;
|
|
14
23
|
private readonly cfnFactory;
|
|
15
24
|
constructor(properties?: SimDynamoDbProperties);
|
|
16
|
-
/**
|
|
17
|
-
* Handle a Create Table Command from the SDK.
|
|
18
|
-
*/
|
|
25
|
+
/** Handle a Create Table Command from the SDK. */
|
|
19
26
|
createTable(command: simDynamoDbCommands.SimCreateTableCommand, options?: SimDynamoDbRequestOptions): Promise<simDynamoDbCommands.SimCreateTableCommandOutput>;
|
|
20
|
-
/**
|
|
21
|
-
* Handle a Describe Table Command from the SDK.
|
|
22
|
-
*/
|
|
27
|
+
/** Handle a Describe Table Command from the SDK. */
|
|
23
28
|
describeTable(command: simDynamoDbCommands.SimDescribeTableCommand, options?: SimDynamoDbRequestOptions): Promise<simDynamoDbCommands.SimDescribeTableCommandOutput>;
|
|
24
|
-
/**
|
|
25
|
-
* Handle an Update Table Command from the SDK.
|
|
26
|
-
*/
|
|
29
|
+
/** Handle an Update Table Command from the SDK. */
|
|
27
30
|
updateTable(command: simDynamoDbCommands.SimUpdateTableCommand, options?: SimDynamoDbRequestOptions): Promise<simDynamoDbCommands.SimUpdateTableCommandOutput>;
|
|
28
|
-
/**
|
|
29
|
-
* Handle a List Tables Command from the SDK.
|
|
30
|
-
*/
|
|
31
|
+
/** Handle a List Tables Command from the SDK. */
|
|
31
32
|
listTables(command: simDynamoDbCommands.SimListTablesCommand, options?: SimDynamoDbRequestOptions): Promise<simDynamoDbCommands.SimListTablesCommandOutput>;
|
|
32
|
-
/**
|
|
33
|
-
* Handle a Delete Table Command from the SDK.
|
|
34
|
-
*/
|
|
33
|
+
/** Handle a Delete Table Command from the SDK. */
|
|
35
34
|
deleteTable(command: simDynamoDbCommands.SimDeleteTableCommand, options?: SimDynamoDbRequestOptions): Promise<simDynamoDbCommands.SimDeleteTableCommandOutput>;
|
|
36
|
-
/**
|
|
37
|
-
* Handle a Put Item Command from the SDK.
|
|
38
|
-
*/
|
|
35
|
+
/** Handle a Put Item Command from the SDK. */
|
|
39
36
|
putItem(command: simDynamoDbCommands.SimPutItemCommand, options?: SimDynamoDbRequestOptions): Promise<simDynamoDbCommands.SimPutItemCommandOutput>;
|
|
40
|
-
/**
|
|
41
|
-
* Handle a Get Item Command from the SDK.
|
|
42
|
-
*/
|
|
37
|
+
/** Handle a Get Item Command from the SDK. */
|
|
43
38
|
getItem(command: simDynamoDbCommands.SimGetItemCommand, options?: SimDynamoDbRequestOptions): Promise<simDynamoDbCommands.SimGetItemCommandOutput>;
|
|
44
|
-
/**
|
|
45
|
-
* Handle a Delete Item Command from the SDK.
|
|
46
|
-
*/
|
|
39
|
+
/** Handle a Delete Item Command from the SDK. */
|
|
47
40
|
deleteItem(command: simDynamoDbCommands.SimDeleteItemCommand, options?: SimDynamoDbRequestOptions): Promise<simDynamoDbCommands.SimDeleteItemCommandOutput>;
|
|
48
|
-
/**
|
|
49
|
-
* Handle an Update Item Command from the SDK.
|
|
50
|
-
*/
|
|
41
|
+
/** Handle an Update Item Command from the SDK. */
|
|
51
42
|
updateItem(command: simDynamoDbCommands.SimUpdateItemCommand, options?: SimDynamoDbRequestOptions): Promise<simDynamoDbCommands.SimUpdateItemCommandOutput>;
|
|
52
|
-
/**
|
|
53
|
-
* Handle a Query Command from the SDK.
|
|
54
|
-
*/
|
|
43
|
+
/** Handle a Query Command from the SDK. */
|
|
55
44
|
query(command: simDynamoDbCommands.SimQueryCommand, options?: SimDynamoDbRequestOptions): Promise<simDynamoDbCommands.SimQueryCommandOutput>;
|
|
56
|
-
/**
|
|
57
|
-
* Handle a Scan Command from the SDK.
|
|
58
|
-
*/
|
|
45
|
+
/** Handle a Scan Command from the SDK. */
|
|
59
46
|
scan(command: simDynamoDbCommands.SimScanCommand, options?: SimDynamoDbRequestOptions): Promise<simDynamoDbCommands.SimScanCommandOutput>;
|
|
60
|
-
/**
|
|
61
|
-
* Handle a Batch Write Item Command from the SDK.
|
|
62
|
-
*/
|
|
47
|
+
/** Handle a Batch Write Item Command from the SDK. */
|
|
63
48
|
batchWriteItem(command: simDynamoDbCommands.SimBatchWriteItemCommand, options?: SimDynamoDbRequestOptions): Promise<simDynamoDbCommands.SimBatchWriteItemCommandOutput>;
|
|
64
|
-
/**
|
|
65
|
-
* Handle a Batch Get Item Command from the SDK.
|
|
66
|
-
*/
|
|
49
|
+
/** Handle a Batch Get Item Command from the SDK. */
|
|
67
50
|
batchGetItem(command: simDynamoDbCommands.SimBatchGetItemCommand, options?: SimDynamoDbRequestOptions): Promise<simDynamoDbCommands.SimBatchGetItemCommandOutput>;
|
|
68
|
-
/**
|
|
69
|
-
* Handle a Transact Write Items Command from the SDK.
|
|
70
|
-
*/
|
|
51
|
+
/** Handle a Transact Write Items Command from the SDK. */
|
|
71
52
|
transactWriteItems(command: simDynamoDbCommands.SimTransactWriteItemsCommand, options?: SimDynamoDbRequestOptions): Promise<simDynamoDbCommands.SimTransactWriteItemsCommandOutput>;
|
|
72
|
-
/**
|
|
73
|
-
* Handle a Transact Get Items Command from the SDK.
|
|
74
|
-
*/
|
|
53
|
+
/** Handle a Transact Get Items Command from the SDK. */
|
|
75
54
|
transactGetItems(command: simDynamoDbCommands.SimTransactGetItemsCommand, options?: SimDynamoDbRequestOptions): Promise<simDynamoDbCommands.SimTransactGetItemsCommandOutput>;
|
|
76
|
-
/**
|
|
77
|
-
* Handle a Tag Resource Command from the SDK.
|
|
78
|
-
*/
|
|
55
|
+
/** Handle a Tag Resource Command from the SDK. */
|
|
79
56
|
tagResource(command: simDynamoDbCommands.SimTagResourceCommand, options?: SimDynamoDbRequestOptions): Promise<simDynamoDbCommands.SimTagResourceCommandOutput>;
|
|
80
|
-
/**
|
|
81
|
-
* Handle an Untag Resource Command from the SDK.
|
|
82
|
-
*/
|
|
57
|
+
/** Handle an Untag Resource Command from the SDK. */
|
|
83
58
|
untagResource(command: simDynamoDbCommands.SimUntagResourceCommand, options?: SimDynamoDbRequestOptions): Promise<simDynamoDbCommands.SimUntagResourceCommandOutput>;
|
|
84
|
-
/**
|
|
85
|
-
* Handle a List Tags Of Resource Command from the SDK.
|
|
86
|
-
*/
|
|
59
|
+
/** Handle a List Tags Of Resource Command from the SDK. */
|
|
87
60
|
listTagsOfResource(command: simDynamoDbCommands.SimListTagsOfResourceCommand, options?: SimDynamoDbRequestOptions): Promise<simDynamoDbCommands.SimListTagsOfResourceCommandOutput>;
|
|
88
|
-
/**
|
|
89
|
-
* Handle an Update Time To Live Command from the SDK.
|
|
90
|
-
*/
|
|
61
|
+
/** Handle an Update Time To Live Command from the SDK. */
|
|
91
62
|
updateTimeToLive(command: simDynamoDbCommands.SimUpdateTimeToLiveCommand, options?: SimDynamoDbRequestOptions): Promise<simDynamoDbCommands.SimUpdateTimeToLiveCommandOutput>;
|
|
92
|
-
/**
|
|
93
|
-
* Handle a Describe Time To Live Command from the SDK.
|
|
94
|
-
*/
|
|
63
|
+
/** Handle a Describe Time To Live Command from the SDK. */
|
|
95
64
|
describeTimeToLive(command: simDynamoDbCommands.SimDescribeTimeToLiveCommand, options?: SimDynamoDbRequestOptions): Promise<simDynamoDbCommands.SimDescribeTimeToLiveCommandOutput>;
|
|
96
65
|
/**
|
|
97
66
|
* Find a table by name, if there is one here.
|
|
@@ -102,6 +71,19 @@ export declare class SimDynamoDb {
|
|
|
102
71
|
* refuse belongs to no table, so it is not found rather than an error.
|
|
103
72
|
*/
|
|
104
73
|
findTable(name: string): SimDynamoDbTable | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Find a stream by ARN, if there is one here.
|
|
76
|
+
*
|
|
77
|
+
* Not a DynamoDB API operation. A stream outlives being enabled, so this
|
|
78
|
+
* finds one whose table has since switched it off, which is what reading a
|
|
79
|
+
* disabled stream within its retention window needs.
|
|
80
|
+
*/
|
|
81
|
+
findStream(streamArn: string): SimDynamoDbStream | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* Get the streams of this service, for a consumer that cannot poll them
|
|
84
|
+
* continuously.
|
|
85
|
+
*/
|
|
86
|
+
streamActivity(): SimDynamoDbStreamActivity;
|
|
105
87
|
/**
|
|
106
88
|
* Get this service's CloudFormation Resource factory.
|
|
107
89
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-dynamodb.d.ts","sourceRoot":"","sources":["../../../src/service/dynamodb/sim-dynamodb.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,mBAAmB,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-dynamodb.d.ts","sourceRoot":"","sources":["../../../src/service/dynamodb/sim-dynamodb.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,mBAAmB,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AAErF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAKzE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,4CAA4C,CAAC;AAC3F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,KAAK,EACV,qBAAqB,EACrB,yBAAyB,EAC1B,MAAM,yBAAyB,CAAC;AAEjC;;;;;;;GAOG;AACH,qBAAa,WAAW;IACtB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA+B;IACtD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAgC;IACxD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAmC;IAC5D,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAsB;IACjD,OAAO,CAAC,QAAQ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,WAAW,CACf,OAAO,EAAE,mBAAmB,CAAC,qBAAqB,EAClD,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC,2BAA2B,CAAC,CAG1D;IAED,qDAAqD;IAC/C,aAAa,CACjB,OAAO,EAAE,mBAAmB,CAAC,uBAAuB,EACpD,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC,6BAA6B,CAAC,CAG5D;IAED,2DAA2D;IACrD,kBAAkB,CACtB,OAAO,EAAE,mBAAmB,CAAC,4BAA4B,EACzD,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC,kCAAkC,CAAC,CAGjE;IAED,0DAA0D;IACpD,gBAAgB,CACpB,OAAO,EAAE,mBAAmB,CAAC,0BAA0B,EACvD,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC,gCAAgC,CAAC,CAG/D;IAED,2DAA2D;IACrD,kBAAkB,CACtB,OAAO,EAAE,mBAAmB,CAAC,4BAA4B,EACzD,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC,kCAAkC,CAAC,CAGjE;IAED;;;;;;;OAOG;IACH,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS,CAEpD;IAED;;;;;;OAMG;IACH,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,iBAAiB,GAAG,SAAS,CAE3D;IAED;;;OAGG;IACH,cAAc,IAAI,yBAAyB,CAE1C;IAED;;OAEG;IACH,kBAAkB,IAAI,6BAA6B,CAElD;IAED;;OAEG;IACH,gBAAgB,IAAI,mBAAmB,CAEtC;CACF"}
|
|
@@ -1,5 +1,7 @@
|
|
|
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";
|
|
3
5
|
import { SimDynamoDbTableStore } from "./table/sim-dynamodb-table-store.js";
|
|
4
6
|
import { simAwsAccountRegionScopeFactory } from "../aws/sim-aws-account-region-scope.factory.js";
|
|
5
7
|
import { SimIamAllowAllAuth } from "../iam/authorize/sim-iam-inter-service-auth-z.js";
|
|
@@ -7,9 +9,16 @@ import { SimDynamoDatabaseSdkCommandRouter } from "./sdk/sim-dynamodb-sdk-comman
|
|
|
7
9
|
import { SimDynamoDbCfnResourceFactory } from "./cfn/sim-cfn-dynamodb-resource-factory.js";
|
|
8
10
|
/**
|
|
9
11
|
* Simulated DynamoDB. Handles SDK commands. Emulates AWS behaviour and state.
|
|
12
|
+
*
|
|
13
|
+
* Each command below carries a one line doc comment rather than a block. This
|
|
14
|
+
* file grows by one delegating method per simulated operation and is close to
|
|
15
|
+
* the max-lines limit, which is the same reason `SimAwsServiceAccessors` reads
|
|
16
|
+
* that way.
|
|
10
17
|
*/
|
|
11
18
|
export class SimDynamoDb {
|
|
12
19
|
tables = new SimDynamoDbTableStore();
|
|
20
|
+
streams = new SimDynamoDbStreamStore();
|
|
21
|
+
activity = new SimDynamoDbStreamActivity();
|
|
13
22
|
background;
|
|
14
23
|
commands;
|
|
15
24
|
sdkRouter = new SimDynamoDatabaseSdkCommandRouter(this);
|
|
@@ -21,148 +30,110 @@ export class SimDynamoDb {
|
|
|
21
30
|
this.background = background;
|
|
22
31
|
this.commands = new SimDynamoDbCommandHandlers({
|
|
23
32
|
tables: this.tables,
|
|
33
|
+
streams: this.streams,
|
|
34
|
+
streamActivity: this.activity,
|
|
24
35
|
accountRegionScope,
|
|
25
36
|
iam,
|
|
26
37
|
background,
|
|
27
38
|
});
|
|
28
39
|
}
|
|
29
|
-
/**
|
|
30
|
-
* Handle a Create Table Command from the SDK.
|
|
31
|
-
*/
|
|
40
|
+
/** Handle a Create Table Command from the SDK. */
|
|
32
41
|
async createTable(command, options) {
|
|
33
42
|
// Allow for potential non-deterministic sequencing of async events.
|
|
34
43
|
await this.background.sequence();
|
|
35
44
|
return this.commands.tableCreation.handle(command, options);
|
|
36
45
|
}
|
|
37
|
-
/**
|
|
38
|
-
* Handle a Describe Table Command from the SDK.
|
|
39
|
-
*/
|
|
46
|
+
/** Handle a Describe Table Command from the SDK. */
|
|
40
47
|
async describeTable(command, options) {
|
|
41
48
|
await this.background.sequence();
|
|
42
49
|
return this.commands.tables.describeTable(command, options);
|
|
43
50
|
}
|
|
44
|
-
/**
|
|
45
|
-
* Handle an Update Table Command from the SDK.
|
|
46
|
-
*/
|
|
51
|
+
/** Handle an Update Table Command from the SDK. */
|
|
47
52
|
async updateTable(command, options) {
|
|
48
53
|
await this.background.sequence();
|
|
49
54
|
return this.commands.tableUpdates.handle(command, options);
|
|
50
55
|
}
|
|
51
|
-
/**
|
|
52
|
-
* Handle a List Tables Command from the SDK.
|
|
53
|
-
*/
|
|
56
|
+
/** Handle a List Tables Command from the SDK. */
|
|
54
57
|
async listTables(command, options) {
|
|
55
58
|
await this.background.sequence();
|
|
56
59
|
return this.commands.tables.listTables(command, options);
|
|
57
60
|
}
|
|
58
|
-
/**
|
|
59
|
-
* Handle a Delete Table Command from the SDK.
|
|
60
|
-
*/
|
|
61
|
+
/** Handle a Delete Table Command from the SDK. */
|
|
61
62
|
async deleteTable(command, options) {
|
|
62
63
|
await this.background.sequence();
|
|
63
64
|
return this.commands.tables.deleteTable(command, options);
|
|
64
65
|
}
|
|
65
|
-
/**
|
|
66
|
-
* Handle a Put Item Command from the SDK.
|
|
67
|
-
*/
|
|
66
|
+
/** Handle a Put Item Command from the SDK. */
|
|
68
67
|
async putItem(command, options) {
|
|
69
68
|
await this.background.sequence();
|
|
70
69
|
return this.commands.itemWrites.handle(command, options);
|
|
71
70
|
}
|
|
72
|
-
/**
|
|
73
|
-
* Handle a Get Item Command from the SDK.
|
|
74
|
-
*/
|
|
71
|
+
/** Handle a Get Item Command from the SDK. */
|
|
75
72
|
async getItem(command, options) {
|
|
76
73
|
await this.background.sequence();
|
|
77
74
|
return this.commands.itemReads.handle(command, options);
|
|
78
75
|
}
|
|
79
|
-
/**
|
|
80
|
-
* Handle a Delete Item Command from the SDK.
|
|
81
|
-
*/
|
|
76
|
+
/** Handle a Delete Item Command from the SDK. */
|
|
82
77
|
async deleteItem(command, options) {
|
|
83
78
|
await this.background.sequence();
|
|
84
79
|
return this.commands.itemDeletions.handle(command, options);
|
|
85
80
|
}
|
|
86
|
-
/**
|
|
87
|
-
* Handle an Update Item Command from the SDK.
|
|
88
|
-
*/
|
|
81
|
+
/** Handle an Update Item Command from the SDK. */
|
|
89
82
|
async updateItem(command, options) {
|
|
90
83
|
await this.background.sequence();
|
|
91
84
|
return this.commands.itemUpdates.handle(command, options);
|
|
92
85
|
}
|
|
93
|
-
/**
|
|
94
|
-
* Handle a Query Command from the SDK.
|
|
95
|
-
*/
|
|
86
|
+
/** Handle a Query Command from the SDK. */
|
|
96
87
|
async query(command, options) {
|
|
97
88
|
await this.background.sequence();
|
|
98
89
|
return this.commands.itemQueries.handle(command, options);
|
|
99
90
|
}
|
|
100
|
-
/**
|
|
101
|
-
* Handle a Scan Command from the SDK.
|
|
102
|
-
*/
|
|
91
|
+
/** Handle a Scan Command from the SDK. */
|
|
103
92
|
async scan(command, options) {
|
|
104
93
|
await this.background.sequence();
|
|
105
94
|
return this.commands.itemScans.handle(command, options);
|
|
106
95
|
}
|
|
107
|
-
/**
|
|
108
|
-
* Handle a Batch Write Item Command from the SDK.
|
|
109
|
-
*/
|
|
96
|
+
/** Handle a Batch Write Item Command from the SDK. */
|
|
110
97
|
async batchWriteItem(command, options) {
|
|
111
98
|
await this.background.sequence();
|
|
112
99
|
return this.commands.itemBatchWrites.handle(command, options);
|
|
113
100
|
}
|
|
114
|
-
/**
|
|
115
|
-
* Handle a Batch Get Item Command from the SDK.
|
|
116
|
-
*/
|
|
101
|
+
/** Handle a Batch Get Item Command from the SDK. */
|
|
117
102
|
async batchGetItem(command, options) {
|
|
118
103
|
await this.background.sequence();
|
|
119
104
|
return this.commands.itemBatchReads.handle(command, options);
|
|
120
105
|
}
|
|
121
|
-
/**
|
|
122
|
-
* Handle a Transact Write Items Command from the SDK.
|
|
123
|
-
*/
|
|
106
|
+
/** Handle a Transact Write Items Command from the SDK. */
|
|
124
107
|
async transactWriteItems(command, options) {
|
|
125
108
|
await this.background.sequence();
|
|
126
109
|
return this.commands.itemTransactWrites.handle(command, options);
|
|
127
110
|
}
|
|
128
|
-
/**
|
|
129
|
-
* Handle a Transact Get Items Command from the SDK.
|
|
130
|
-
*/
|
|
111
|
+
/** Handle a Transact Get Items Command from the SDK. */
|
|
131
112
|
async transactGetItems(command, options) {
|
|
132
113
|
await this.background.sequence();
|
|
133
114
|
return this.commands.itemTransactReads.handle(command, options);
|
|
134
115
|
}
|
|
135
|
-
/**
|
|
136
|
-
* Handle a Tag Resource Command from the SDK.
|
|
137
|
-
*/
|
|
116
|
+
/** Handle a Tag Resource Command from the SDK. */
|
|
138
117
|
async tagResource(command, options) {
|
|
139
118
|
await this.background.sequence();
|
|
140
119
|
return this.commands.tags.tagResource(command, options);
|
|
141
120
|
}
|
|
142
|
-
/**
|
|
143
|
-
* Handle an Untag Resource Command from the SDK.
|
|
144
|
-
*/
|
|
121
|
+
/** Handle an Untag Resource Command from the SDK. */
|
|
145
122
|
async untagResource(command, options) {
|
|
146
123
|
await this.background.sequence();
|
|
147
124
|
return this.commands.tags.untagResource(command, options);
|
|
148
125
|
}
|
|
149
|
-
/**
|
|
150
|
-
* Handle a List Tags Of Resource Command from the SDK.
|
|
151
|
-
*/
|
|
126
|
+
/** Handle a List Tags Of Resource Command from the SDK. */
|
|
152
127
|
async listTagsOfResource(command, options) {
|
|
153
128
|
await this.background.sequence();
|
|
154
129
|
return this.commands.tags.listTagsOfResource(command, options);
|
|
155
130
|
}
|
|
156
|
-
/**
|
|
157
|
-
* Handle an Update Time To Live Command from the SDK.
|
|
158
|
-
*/
|
|
131
|
+
/** Handle an Update Time To Live Command from the SDK. */
|
|
159
132
|
async updateTimeToLive(command, options) {
|
|
160
133
|
await this.background.sequence();
|
|
161
134
|
return this.commands.timeToLive.updateTimeToLive(command, options);
|
|
162
135
|
}
|
|
163
|
-
/**
|
|
164
|
-
* Handle a Describe Time To Live Command from the SDK.
|
|
165
|
-
*/
|
|
136
|
+
/** Handle a Describe Time To Live Command from the SDK. */
|
|
166
137
|
async describeTimeToLive(command, options) {
|
|
167
138
|
await this.background.sequence();
|
|
168
139
|
return this.commands.timeToLive.describeTimeToLive(command, options);
|
|
@@ -178,6 +149,23 @@ export class SimDynamoDb {
|
|
|
178
149
|
findTable(name) {
|
|
179
150
|
return this.tables.findByName(name);
|
|
180
151
|
}
|
|
152
|
+
/**
|
|
153
|
+
* Find a stream by ARN, if there is one here.
|
|
154
|
+
*
|
|
155
|
+
* Not a DynamoDB API operation. A stream outlives being enabled, so this
|
|
156
|
+
* finds one whose table has since switched it off, which is what reading a
|
|
157
|
+
* disabled stream within its retention window needs.
|
|
158
|
+
*/
|
|
159
|
+
findStream(streamArn) {
|
|
160
|
+
return this.streams.findByArn(streamArn);
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Get the streams of this service, for a consumer that cannot poll them
|
|
164
|
+
* continuously.
|
|
165
|
+
*/
|
|
166
|
+
streamActivity() {
|
|
167
|
+
return this.activity;
|
|
168
|
+
}
|
|
181
169
|
/**
|
|
182
170
|
* Get this service's CloudFormation Resource factory.
|
|
183
171
|
*/
|
|
@@ -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,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vE,CAAC;IAED;;;;;;;OAOG;IACH,SAAS,CAAC,IAAY;QACpB,OAAO,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IAED;;;;;;OAMG;IACH,UAAU,CAAC,SAAiB;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;IAC3C,CAAC;IAED;;;OAGG;IACH,cAAc;QACZ,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAED;;OAEG;IACH,kBAAkB;QAChB,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,gBAAgB;QACd,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;CACF"}
|
|
@@ -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"}
|