@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
|
@@ -2,11 +2,14 @@ import type { SimArn } from "../../aws/arn.js";
|
|
|
2
2
|
import { type BackgroundScheduler } from "../../../util/background/background.js";
|
|
3
3
|
import type { SimDynamoDbTableClass, SimDynamoDbTableDescription, SimDynamoDbTableStatus } from "../command/table/table.types.js";
|
|
4
4
|
import type { SimDynamoDbItem } from "../item/sim-dynamodb-item.js";
|
|
5
|
-
import {
|
|
5
|
+
import type { SimDynamoDbStreamActivity } from "../stream/sim-dynamodb-stream-activity.js";
|
|
6
|
+
import type { SimDynamoDbStreamRequest } from "../stream/sim-dynamodb-stream-specification.js";
|
|
7
|
+
import { SimDynamoDbTableStream } from "../stream/sim-dynamodb-table-stream.js";
|
|
8
|
+
import type { SimDynamoDbTableTimeToLive } from "../time-to-live/sim-dynamodb-table-time-to-live.js";
|
|
6
9
|
import { SimDynamoDbSecondaryIndexes } from "../secondary-index/sim-dynamodb-secondary-indexes.js";
|
|
7
10
|
import type { SimDynamoDbReadView } from "./sim-dynamodb-read-view.js";
|
|
8
11
|
import { SimDynamoDbTableTags } from "./sim-dynamodb-table-tags.js";
|
|
9
|
-
import { SimDynamoDbTableWrites } from "./sim-dynamodb-table-writes.js";
|
|
12
|
+
import type { SimDynamoDbTableWrites } from "./sim-dynamodb-table-writes.js";
|
|
10
13
|
import type { SimDynamoDbAttributeDefinitions } from "./sim-dynamodb-attribute-definitions.js";
|
|
11
14
|
import type { SimDynamoDbKeySchema } from "./sim-dynamodb-key-schema.js";
|
|
12
15
|
import type { SimDynamoDbTableBilling } from "./sim-dynamodb-table-billing.js";
|
|
@@ -22,6 +25,8 @@ interface SimDynamoDbTableProperties {
|
|
|
22
25
|
readonly tableClass?: SimDynamoDbTableClass | undefined;
|
|
23
26
|
readonly deletionProtectionEnabled?: boolean | undefined;
|
|
24
27
|
readonly tags?: SimDynamoDbTableTags;
|
|
28
|
+
readonly stream?: SimDynamoDbStreamRequest | undefined;
|
|
29
|
+
readonly streamActivity?: SimDynamoDbStreamActivity;
|
|
25
30
|
readonly background?: BackgroundScheduler;
|
|
26
31
|
}
|
|
27
32
|
/**
|
|
@@ -54,38 +59,31 @@ export declare class SimDynamoDbTable {
|
|
|
54
59
|
*/
|
|
55
60
|
readonly tags: SimDynamoDbTableTags;
|
|
56
61
|
/**
|
|
57
|
-
* This table's
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
*
|
|
62
|
-
* lets a transaction prepare all of its writes before committing any.
|
|
62
|
+
* This table's stream, and the item changes captured on it.
|
|
63
|
+
*
|
|
64
|
+
* A table always has one of these, and it holds no stream until one is
|
|
65
|
+
* enabled. That is what lets the item store report every change to the same
|
|
66
|
+
* place whether or not anything is listening.
|
|
63
67
|
*/
|
|
64
|
-
readonly
|
|
65
|
-
private readonly items;
|
|
68
|
+
readonly stream: SimDynamoDbTableStream;
|
|
66
69
|
private readonly definition;
|
|
67
70
|
private readonly lifecycle;
|
|
71
|
+
private readonly storage;
|
|
68
72
|
constructor(properties: SimDynamoDbTableProperties);
|
|
69
|
-
/**
|
|
70
|
-
* Get the current table status.
|
|
71
|
-
*/
|
|
73
|
+
/** Get the current table status. */
|
|
72
74
|
get status(): SimDynamoDbTableStatus;
|
|
73
|
-
/**
|
|
74
|
-
* The attributes this table's keys are made of.
|
|
75
|
-
*/
|
|
75
|
+
/** The attributes this table's keys are made of. */
|
|
76
76
|
get attributeDefinitions(): SimDynamoDbAttributeDefinitions;
|
|
77
|
-
/**
|
|
78
|
-
* How this table is billed, and what it is provisioned for.
|
|
79
|
-
*/
|
|
77
|
+
/** How this table is billed, and what it is provisioned for. */
|
|
80
78
|
get billing(): SimDynamoDbTableBilling;
|
|
81
|
-
/**
|
|
82
|
-
* The class this table is stored under, when it was given one.
|
|
83
|
-
*/
|
|
79
|
+
/** The class this table is stored under, when it was given one. */
|
|
84
80
|
get tableClass(): SimDynamoDbTableClass | undefined;
|
|
85
|
-
/**
|
|
86
|
-
* Whether this table is protected from deletion.
|
|
87
|
-
*/
|
|
81
|
+
/** Whether this table is protected from deletion. */
|
|
88
82
|
get deletionProtectionEnabled(): boolean;
|
|
83
|
+
/** This table's time to live, and the item removals it drives. */
|
|
84
|
+
get timeToLive(): SimDynamoDbTableTimeToLive;
|
|
85
|
+
/** How this table takes a write, as a check and then a commit. */
|
|
86
|
+
get writes(): SimDynamoDbTableWrites;
|
|
89
87
|
/**
|
|
90
88
|
* Simulate the table entering ACTIVE status, with its indexes.
|
|
91
89
|
*
|
|
@@ -96,9 +94,7 @@ export declare class SimDynamoDbTable {
|
|
|
96
94
|
* which is what AWS gets to by copying them into it.
|
|
97
95
|
*/
|
|
98
96
|
activate(): Promise<void>;
|
|
99
|
-
/**
|
|
100
|
-
* Refuse an update this table is not in a state to take.
|
|
101
|
-
*/
|
|
97
|
+
/** Refuse an update this table is not in a state to take. */
|
|
102
98
|
assertUpdatable(): void;
|
|
103
99
|
/**
|
|
104
100
|
* Apply a change UpdateTable has already checked against this table.
|
|
@@ -108,9 +104,7 @@ export declare class SimDynamoDbTable {
|
|
|
108
104
|
* either applies whole or was never built.
|
|
109
105
|
*/
|
|
110
106
|
applyUpdate(update: SimDynamoDbTableUpdate): void;
|
|
111
|
-
/**
|
|
112
|
-
* Refuse a delete this table is not in a state to take.
|
|
113
|
-
*/
|
|
107
|
+
/** Refuse a delete this table is not in a state to take. */
|
|
114
108
|
assertDeletable(): void;
|
|
115
109
|
/**
|
|
116
110
|
* Simulate the table entering DELETING status.
|
|
@@ -119,52 +113,21 @@ export declare class SimDynamoDbTable {
|
|
|
119
113
|
* AWS. What removes it is the background task the delete schedules.
|
|
120
114
|
*/
|
|
121
115
|
beginDeletion(): void;
|
|
122
|
-
/**
|
|
123
|
-
* Describe this table the way DynamoDB reports it.
|
|
124
|
-
*/
|
|
116
|
+
/** Describe this table the way DynamoDB reports it. */
|
|
125
117
|
toDescription(): SimDynamoDbTableDescription;
|
|
126
|
-
/**
|
|
127
|
-
* Put an item into the table, and answer with whatever it replaced. The item
|
|
128
|
-
* is there by the time this returns, since real DynamoDB acknowledges a write
|
|
129
|
-
* once it is durable.
|
|
130
|
-
*/
|
|
118
|
+
/** Put an item into the table, and answer with whatever it replaced. */
|
|
131
119
|
putItem(item: SimDynamoDbItem): SimDynamoDbItem | undefined;
|
|
132
|
-
/**
|
|
133
|
-
* The item already stored under the same primary key as this one.
|
|
134
|
-
*
|
|
135
|
-
* A conditional write is checked against what is there before it, and what is
|
|
136
|
-
* there is found by the key inside the item rather than by a Key of its own.
|
|
137
|
-
* The key is read the same way a write reads it, so an item that could not be
|
|
138
|
-
* written does not quietly find nothing here either.
|
|
139
|
-
*/
|
|
120
|
+
/** The item already stored under the same primary key as this one. */
|
|
140
121
|
itemUnder(item: SimDynamoDbItem): SimDynamoDbItem | undefined;
|
|
141
|
-
/**
|
|
142
|
-
* The primary key an item is stored under, as this table marshals it.
|
|
143
|
-
*
|
|
144
|
-
* A batch write tells two operations on the same item apart by comparing
|
|
145
|
-
* these, which is why the key is readable rather than only usable. Reading it
|
|
146
|
-
* checks the item against the key schema, so a key a write would refuse is
|
|
147
|
-
* refused here too.
|
|
148
|
-
*/
|
|
122
|
+
/** The primary key an item is stored under, as this table marshals it. */
|
|
149
123
|
keyOfItem(item: SimDynamoDbItem): string;
|
|
150
|
-
/**
|
|
151
|
-
* The primary key a request's Key names, as this table marshals it.
|
|
152
|
-
*/
|
|
124
|
+
/** The primary key a request's Key names, as this table marshals it. */
|
|
153
125
|
keyOfKey(key: SimDynamoDbItem): string;
|
|
154
|
-
/**
|
|
155
|
-
* Read the item a primary key names, if the table holds one.
|
|
156
|
-
*
|
|
157
|
-
* Every write has landed by the time it returns, so this reads the latest
|
|
158
|
-
* one. That is what real DynamoDB gives a strongly consistent read.
|
|
159
|
-
*/
|
|
126
|
+
/** Read the item a primary key names, if the table holds one. */
|
|
160
127
|
getItem(key: SimDynamoDbItem): SimDynamoDbItem | undefined;
|
|
161
|
-
/**
|
|
162
|
-
* Remove the item a primary key names, and answer with whatever was removed.
|
|
163
|
-
*/
|
|
128
|
+
/** Remove the item a primary key names, and what was removed with it. */
|
|
164
129
|
deleteItem(key: SimDynamoDbItem): SimDynamoDbItem | undefined;
|
|
165
|
-
/**
|
|
166
|
-
* What a Query or a Scan reads: this table, or one of its indexes.
|
|
167
|
-
*/
|
|
130
|
+
/** What a Query or a Scan reads: this table, or one of its indexes. */
|
|
168
131
|
view(indexName: string | undefined): SimDynamoDbReadView;
|
|
169
132
|
}
|
|
170
133
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-dynamodb-table.d.ts","sourceRoot":"","sources":["../../../../src/service/dynamodb/table/sim-dynamodb-table.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EACV,qBAAqB,EACrB,2BAA2B,EAC3B,s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E;IAED,uEAAuE;IAChE,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,mBAAmB,CAE9D;CACF"}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { randomUUID } from "node:crypto";
|
|
2
2
|
import { BackgroundTasks, } from "../../../util/background/background.js";
|
|
3
|
-
import {
|
|
3
|
+
import { SimDynamoDbTableStream } from "../stream/sim-dynamodb-table-stream.js";
|
|
4
4
|
import { SimDynamoDbSecondaryIndexes } from "../secondary-index/sim-dynamodb-secondary-indexes.js";
|
|
5
5
|
import { describeSimDynamoDbTable } from "./sim-dynamodb-table-description.js";
|
|
6
6
|
import { SimDynamoDbTableDefinition } from "./sim-dynamodb-table-definition.js";
|
|
7
|
-
import { SimDynamoDbTableItems } from "./sim-dynamodb-table-items.js";
|
|
8
7
|
import { SimDynamoDbTableLifecycle } from "./sim-dynamodb-table-lifecycle.js";
|
|
9
|
-
import {
|
|
8
|
+
import { SimDynamoDbTableStorage } from "./sim-dynamodb-table-storage.js";
|
|
10
9
|
import { SimDynamoDbTableTags } from "./sim-dynamodb-table-tags.js";
|
|
11
|
-
import { SimDynamoDbTableWrites } from "./sim-dynamodb-table-writes.js";
|
|
12
10
|
/**
|
|
13
11
|
* One simulated DynamoDB Table.
|
|
14
12
|
*
|
|
@@ -39,17 +37,16 @@ export class SimDynamoDbTable {
|
|
|
39
37
|
*/
|
|
40
38
|
tags;
|
|
41
39
|
/**
|
|
42
|
-
* This table's
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
*
|
|
47
|
-
* lets a transaction prepare all of its writes before committing any.
|
|
40
|
+
* This table's stream, and the item changes captured on it.
|
|
41
|
+
*
|
|
42
|
+
* A table always has one of these, and it holds no stream until one is
|
|
43
|
+
* enabled. That is what lets the item store report every change to the same
|
|
44
|
+
* place whether or not anything is listening.
|
|
48
45
|
*/
|
|
49
|
-
|
|
50
|
-
items = new SimDynamoDbTableItems();
|
|
46
|
+
stream;
|
|
51
47
|
definition;
|
|
52
48
|
lifecycle;
|
|
49
|
+
storage;
|
|
53
50
|
constructor(properties) {
|
|
54
51
|
const { name, keySchema, attributeDefinitions, billing, indexes = SimDynamoDbSecondaryIndexes.none(), deletionProtectionEnabled = false, tags = SimDynamoDbTableTags.fromInput([]), background = new BackgroundTasks(), } = properties;
|
|
55
52
|
this.tableName = name.value;
|
|
@@ -68,49 +65,51 @@ export class SimDynamoDbTable {
|
|
|
68
65
|
tableName: name.value,
|
|
69
66
|
deletionProtectionEnabled,
|
|
70
67
|
});
|
|
71
|
-
this.
|
|
68
|
+
this.stream = new SimDynamoDbTableStream({
|
|
72
69
|
tableName: name.value,
|
|
73
|
-
|
|
74
|
-
|
|
70
|
+
tableArn: this.arn,
|
|
71
|
+
keySchema,
|
|
72
|
+
clock: background,
|
|
73
|
+
activity: properties.streamActivity,
|
|
75
74
|
});
|
|
76
|
-
this.
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
this.stream.apply(properties.stream);
|
|
76
|
+
this.storage = new SimDynamoDbTableStorage({
|
|
77
|
+
tableName: name.value,
|
|
79
78
|
definition: this.definition,
|
|
80
79
|
indexes: this.indexes,
|
|
80
|
+
stream: this.stream,
|
|
81
|
+
background,
|
|
81
82
|
});
|
|
82
83
|
this.creationDateTime = background.now();
|
|
83
84
|
}
|
|
84
|
-
/**
|
|
85
|
-
* Get the current table status.
|
|
86
|
-
*/
|
|
85
|
+
/** Get the current table status. */
|
|
87
86
|
get status() {
|
|
88
87
|
return this.lifecycle.status;
|
|
89
88
|
}
|
|
90
|
-
/**
|
|
91
|
-
* The attributes this table's keys are made of.
|
|
92
|
-
*/
|
|
89
|
+
/** The attributes this table's keys are made of. */
|
|
93
90
|
get attributeDefinitions() {
|
|
94
91
|
return this.definition.attributeDefinitions;
|
|
95
92
|
}
|
|
96
|
-
/**
|
|
97
|
-
* How this table is billed, and what it is provisioned for.
|
|
98
|
-
*/
|
|
93
|
+
/** How this table is billed, and what it is provisioned for. */
|
|
99
94
|
get billing() {
|
|
100
95
|
return this.definition.billing;
|
|
101
96
|
}
|
|
102
|
-
/**
|
|
103
|
-
* The class this table is stored under, when it was given one.
|
|
104
|
-
*/
|
|
97
|
+
/** The class this table is stored under, when it was given one. */
|
|
105
98
|
get tableClass() {
|
|
106
99
|
return this.definition.tableClass;
|
|
107
100
|
}
|
|
108
|
-
/**
|
|
109
|
-
* Whether this table is protected from deletion.
|
|
110
|
-
*/
|
|
101
|
+
/** Whether this table is protected from deletion. */
|
|
111
102
|
get deletionProtectionEnabled() {
|
|
112
103
|
return this.lifecycle.deletionProtectionEnabled;
|
|
113
104
|
}
|
|
105
|
+
/** This table's time to live, and the item removals it drives. */
|
|
106
|
+
get timeToLive() {
|
|
107
|
+
return this.storage.timeToLive;
|
|
108
|
+
}
|
|
109
|
+
/** How this table takes a write, as a check and then a commit. */
|
|
110
|
+
get writes() {
|
|
111
|
+
return this.storage.writes;
|
|
112
|
+
}
|
|
114
113
|
/**
|
|
115
114
|
* Simulate the table entering ACTIVE status, with its indexes.
|
|
116
115
|
*
|
|
@@ -125,9 +124,7 @@ export class SimDynamoDbTable {
|
|
|
125
124
|
this.indexes.global.activate();
|
|
126
125
|
return Promise.resolve();
|
|
127
126
|
}
|
|
128
|
-
/**
|
|
129
|
-
* Refuse an update this table is not in a state to take.
|
|
130
|
-
*/
|
|
127
|
+
/** Refuse an update this table is not in a state to take. */
|
|
131
128
|
assertUpdatable() {
|
|
132
129
|
this.lifecycle.assertUpdatable();
|
|
133
130
|
}
|
|
@@ -142,10 +139,9 @@ export class SimDynamoDbTable {
|
|
|
142
139
|
this.definition.apply(update);
|
|
143
140
|
this.indexes.global.applyUpdate(update);
|
|
144
141
|
this.lifecycle.applyUpdate(update);
|
|
142
|
+
this.stream.apply(update.stream);
|
|
145
143
|
}
|
|
146
|
-
/**
|
|
147
|
-
* Refuse a delete this table is not in a state to take.
|
|
148
|
-
*/
|
|
144
|
+
/** Refuse a delete this table is not in a state to take. */
|
|
149
145
|
assertDeletable() {
|
|
150
146
|
this.lifecycle.assertDeletable();
|
|
151
147
|
}
|
|
@@ -158,76 +154,37 @@ export class SimDynamoDbTable {
|
|
|
158
154
|
beginDeletion() {
|
|
159
155
|
this.lifecycle.beginDeletion();
|
|
160
156
|
}
|
|
161
|
-
/**
|
|
162
|
-
* Describe this table the way DynamoDB reports it.
|
|
163
|
-
*/
|
|
157
|
+
/** Describe this table the way DynamoDB reports it. */
|
|
164
158
|
toDescription() {
|
|
165
159
|
return describeSimDynamoDbTable(this);
|
|
166
160
|
}
|
|
167
|
-
/**
|
|
168
|
-
* Put an item into the table, and answer with whatever it replaced. The item
|
|
169
|
-
* is there by the time this returns, since real DynamoDB acknowledges a write
|
|
170
|
-
* once it is durable.
|
|
171
|
-
*/
|
|
161
|
+
/** Put an item into the table, and answer with whatever it replaced. */
|
|
172
162
|
putItem(item) {
|
|
173
|
-
return this.
|
|
163
|
+
return this.storage.putItem(item);
|
|
174
164
|
}
|
|
175
|
-
/**
|
|
176
|
-
* The item already stored under the same primary key as this one.
|
|
177
|
-
*
|
|
178
|
-
* A conditional write is checked against what is there before it, and what is
|
|
179
|
-
* there is found by the key inside the item rather than by a Key of its own.
|
|
180
|
-
* The key is read the same way a write reads it, so an item that could not be
|
|
181
|
-
* written does not quietly find nothing here either.
|
|
182
|
-
*/
|
|
165
|
+
/** The item already stored under the same primary key as this one. */
|
|
183
166
|
itemUnder(item) {
|
|
184
|
-
return this.
|
|
167
|
+
return this.storage.itemUnder(item);
|
|
185
168
|
}
|
|
186
|
-
/**
|
|
187
|
-
* The primary key an item is stored under, as this table marshals it.
|
|
188
|
-
*
|
|
189
|
-
* A batch write tells two operations on the same item apart by comparing
|
|
190
|
-
* these, which is why the key is readable rather than only usable. Reading it
|
|
191
|
-
* checks the item against the key schema, so a key a write would refuse is
|
|
192
|
-
* refused here too.
|
|
193
|
-
*/
|
|
169
|
+
/** The primary key an item is stored under, as this table marshals it. */
|
|
194
170
|
keyOfItem(item) {
|
|
195
|
-
return this.
|
|
171
|
+
return this.storage.keyOfItem(item);
|
|
196
172
|
}
|
|
197
|
-
/**
|
|
198
|
-
* The primary key a request's Key names, as this table marshals it.
|
|
199
|
-
*/
|
|
173
|
+
/** The primary key a request's Key names, as this table marshals it. */
|
|
200
174
|
keyOfKey(key) {
|
|
201
|
-
return this.
|
|
175
|
+
return this.storage.keyOfKey(key);
|
|
202
176
|
}
|
|
203
|
-
/**
|
|
204
|
-
* Read the item a primary key names, if the table holds one.
|
|
205
|
-
*
|
|
206
|
-
* Every write has landed by the time it returns, so this reads the latest
|
|
207
|
-
* one. That is what real DynamoDB gives a strongly consistent read.
|
|
208
|
-
*/
|
|
177
|
+
/** Read the item a primary key names, if the table holds one. */
|
|
209
178
|
getItem(key) {
|
|
210
|
-
return this.
|
|
179
|
+
return this.storage.getItem(key);
|
|
211
180
|
}
|
|
212
|
-
/**
|
|
213
|
-
* Remove the item a primary key names, and answer with whatever was removed.
|
|
214
|
-
*/
|
|
181
|
+
/** Remove the item a primary key names, and what was removed with it. */
|
|
215
182
|
deleteItem(key) {
|
|
216
|
-
return this.
|
|
183
|
+
return this.storage.deleteItem(key);
|
|
217
184
|
}
|
|
218
|
-
/**
|
|
219
|
-
* What a Query or a Scan reads: this table, or one of its indexes.
|
|
220
|
-
*/
|
|
185
|
+
/** What a Query or a Scan reads: this table, or one of its indexes. */
|
|
221
186
|
view(indexName) {
|
|
222
|
-
return
|
|
223
|
-
tableName: this.tableName,
|
|
224
|
-
indexName,
|
|
225
|
-
items: this.items.entries().values().toArray(),
|
|
226
|
-
keySchema: this.keySchema,
|
|
227
|
-
attributeDefinitions: this.attributeDefinitions,
|
|
228
|
-
indexes: this.indexes,
|
|
229
|
-
itemKey: this.definition.itemKey,
|
|
230
|
-
});
|
|
187
|
+
return this.storage.view(indexName);
|
|
231
188
|
}
|
|
232
189
|
}
|
|
233
190
|
//# sourceMappingURL=sim-dynamodb-table.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-dynamodb-table.js","sourceRoot":"","sources":["../../../../src/service/dynamodb/table/sim-dynamodb-table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAEL,eAAe,GAChB,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-dynamodb-table.js","sourceRoot":"","sources":["../../../../src/service/dynamodb/table/sim-dynamodb-table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAEL,eAAe,GAChB,MAAM,wCAAwC,CAAC;AAShD,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAEhF,OAAO,EAAE,2BAA2B,EAAE,MAAM,sDAAsD,CAAC;AAEnG,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AA0BpE;;;;;;;GAOG;AACH,MAAM,OAAO,gBAAgB;IACX,gBAAgB,CAAO;IACvB,SAAS,CAAoB;IAC7B,GAAG,CAAS;IACZ,OAAO,CAAS;IAChB,SAAS,CAAuB;IAEhD;;;;;;OAMG;IACa,OAAO,CAA8B;IAErD;;;;;OAKG;IACa,IAAI,CAAuB;IAE3C;;;;;;OAMG;IACa,MAAM,CAAyB;IAE9B,UAAU,CAA6B;IACvC,SAAS,CAA4B;IACrC,OAAO,CAA0B;IAElD,YAAY,UAAsC;QAChD,MAAM,EACJ,IAAI,EACJ,SAAS,EACT,oBAAoB,EACpB,OAAO,EACP,OAAO,GAAG,2BAA2B,CAAC,IAAI,EAAE,EAC5C,yBAAyB,GAAG,KAA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-index/sim-dynamodb-secondary-indexes.js";
|
|
3
|
+
import type { SimDynamoDbTableStream } from "../stream/sim-dynamodb-table-stream.js";
|
|
3
4
|
import type { SimDynamoDbAttributeDefinitions } from "./sim-dynamodb-attribute-definitions.js";
|
|
4
5
|
import type { SimDynamoDbKeySchema } from "./sim-dynamodb-key-schema.js";
|
|
5
6
|
import type { SimDynamoDbTableBilling } from "./sim-dynamodb-table-billing.js";
|
|
6
7
|
/**
|
|
7
8
|
* What an update needs to know about the table it is going to be applied to.
|
|
8
9
|
*
|
|
9
|
-
* An index is declared against the table that will carry it,
|
|
10
|
-
*
|
|
11
|
-
*
|
|
10
|
+
* An index is declared against the table that will carry it, a capacity change
|
|
11
|
+
* is read against the mode the table is already billed under, and a stream
|
|
12
|
+
* change is read against the stream the table already has, so the request
|
|
13
|
+
* cannot be checked without it.
|
|
12
14
|
*/
|
|
13
15
|
export interface SimDynamoDbUpdatableTable {
|
|
14
16
|
readonly tableName: string;
|
|
@@ -17,5 +19,6 @@ export interface SimDynamoDbUpdatableTable {
|
|
|
17
19
|
readonly attributeDefinitions: SimDynamoDbAttributeDefinitions;
|
|
18
20
|
readonly billing: SimDynamoDbTableBilling;
|
|
19
21
|
readonly indexes: SimDynamoDbSecondaryIndexes;
|
|
22
|
+
readonly stream: SimDynamoDbTableStream;
|
|
20
23
|
}
|
|
21
24
|
//# sourceMappingURL=sim-dynamodb-updatable-table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-dynamodb-updatable-table.d.ts","sourceRoot":"","sources":["../../../../src/service/dynamodb/table/sim-dynamodb-updatable-table.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sDAAsD,CAAC;AACxG,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAC/F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE/E
|
|
1
|
+
{"version":3,"file":"sim-dynamodb-updatable-table.d.ts","sourceRoot":"","sources":["../../../../src/service/dynamodb/table/sim-dynamodb-updatable-table.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sDAAsD,CAAC;AACxG,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AACrF,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAC/F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE/E;;;;;;;GAOG;AACH,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,SAAS,EAAE,oBAAoB,CAAC;IACzC,QAAQ,CAAC,oBAAoB,EAAE,+BAA+B,CAAC;IAC/D,QAAQ,CAAC,OAAO,EAAE,uBAAuB,CAAC;IAC1C,QAAQ,CAAC,OAAO,EAAE,2BAA2B,CAAC;IAC9C,QAAQ,CAAC,MAAM,EAAE,sBAAsB,CAAC;CACzC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-dynamodb-table-time-to-live.d.ts","sourceRoot":"","sources":["../../../../src/service/dynamodb/time-to-live/sim-dynamodb-table-time-to-live.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,+CAA+C,CAAC;AACtG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAGlF,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,8CAA8C,CAAC;AAEvG,UAAU,oCAAoC;IAC5C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,KAAK,EAAE,qBAAqB,CAAC;IACtC,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC;CAC1C;AAED;;;;;;;;;;;GAWG;AACH,qBAAa,0BAA0B;IACrC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAwB;IAC9C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAwB;IACnD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAsB;IAEjD,YAAY,UAAU,EAAE,oCAAoC,EAI3D;IAED;;;;;OAKG;IACH,MAAM,CAAC,aAAa,EAAE,kCAAkC,EAAE,EAAE,EAAE,IAAI,GAAG,IAAI,CAGxE;IAED;;OAEG;IACH,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAItB;IAED;;OAEG;IACH,WAAW,IAAI,gCAAgC,CAE9C;IAED;;;;;;;;;;OAUG;IACH,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,GAAG,IAAI,CAsBpD;IAED;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAMtB;;;;;;;;OAQG;IACH,OAAO,CAAC,eAAe;
|
|
1
|
+
{"version":3,"file":"sim-dynamodb-table-time-to-live.d.ts","sourceRoot":"","sources":["../../../../src/service/dynamodb/time-to-live/sim-dynamodb-table-time-to-live.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,+CAA+C,CAAC;AACtG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAGlF,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,8CAA8C,CAAC;AAEvG,UAAU,oCAAoC;IAC5C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,KAAK,EAAE,qBAAqB,CAAC;IACtC,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC;CAC1C;AAED;;;;;;;;;;;GAWG;AACH,qBAAa,0BAA0B;IACrC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAwB;IAC9C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAwB;IACnD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAsB;IAEjD,YAAY,UAAU,EAAE,oCAAoC,EAI3D;IAED;;;;;OAKG;IACH,MAAM,CAAC,aAAa,EAAE,kCAAkC,EAAE,EAAE,EAAE,IAAI,GAAG,IAAI,CAGxE;IAED;;OAEG;IACH,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAItB;IAED;;OAEG;IACH,WAAW,IAAI,gCAAgC,CAE9C;IAED;;;;;;;;;;OAUG;IACH,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,GAAG,IAAI,CAsBpD;IAED;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAMtB;;;;;;;;OAQG;IACH,OAAO,CAAC,eAAe;CA0BxB"}
|
|
@@ -103,7 +103,11 @@ export class SimDynamoDbTableTimeToLive {
|
|
|
103
103
|
if (at === undefined || at.getTime() > now.getTime()) {
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
106
|
-
|
|
106
|
+
// Expiring an item is not the same as deleting one. A stream record for a
|
|
107
|
+
// removal DynamoDB made itself carries a `userIdentity`, which is how an
|
|
108
|
+
// application tells it from one it asked for, so the item store is told
|
|
109
|
+
// which of the two this is.
|
|
110
|
+
this.items.expire(key);
|
|
107
111
|
}
|
|
108
112
|
}
|
|
109
113
|
//# sourceMappingURL=sim-dynamodb-table-time-to-live.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-dynamodb-table-time-to-live.js","sourceRoot":"","sources":["../../../../src/service/dynamodb/time-to-live/sim-dynamodb-table-time-to-live.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AASvE;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,0BAA0B;IACpB,KAAK,CAAwB;IAC7B,UAAU,CAAwB;IAClC,UAAU,CAAsB;IAEjD,YAAY,UAAgD;QAC1D,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;QAC9B,IAAI,CAAC,UAAU,GAAG,IAAI,qBAAqB,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;QAClE,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;IAC1C,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,aAAiD,EAAE,EAAQ;QAChE,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;QAC1C,IAAI,CAAC,cAAc,EAAE,CAAC;IACxB,CAAC;IAED;;OAEG;IACH,MAAM;QACJ,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC;QAEzB,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;IAED;;OAEG;IACH,WAAW;QACT,OAAO,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC;IACvC,CAAC;IAED;;;;;;;;;;OAUG;IACH,WAAW,CAAC,GAAW,EAAE,IAAqB;QAC5C,MAAM,aAAa,GAAG,IAAI,CAAC,UAAU,CAAC,oBAAoB,EAAE,CAAC;QAE7D,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;YAChC,OAAO;QACT,CAAC;QAED,MAAM,EAAE,G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
|
|
1
|
+
{"version":3,"file":"sim-dynamodb-table-time-to-live.js","sourceRoot":"","sources":["../../../../src/service/dynamodb/time-to-live/sim-dynamodb-table-time-to-live.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AASvE;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,0BAA0B;IACpB,KAAK,CAAwB;IAC7B,UAAU,CAAwB;IAClC,UAAU,CAAsB;IAEjD,YAAY,UAAgD;QAC1D,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;QAC9B,IAAI,CAAC,UAAU,GAAG,IAAI,qBAAqB,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;QAClE,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;IAC1C,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,aAAiD,EAAE,EAAQ;QAChE,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;QAC1C,IAAI,CAAC,cAAc,EAAE,CAAC;IACxB,CAAC;IAED;;OAEG;IACH,MAAM;QACJ,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC;QAEzB,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;IAED;;OAEG;IACH,WAAW;QACT,OAAO,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC;IACvC,CAAC;IAED;;;;;;;;;;OAUG;IACH,WAAW,CAAC,GAAW,EAAE,IAAqB;QAC5C,MAAM,aAAa,GAAG,IAAI,CAAC,UAAU,CAAC,oBAAoB,EAAE,CAAC;QAE7D,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;YAChC,OAAO;QACT,CAAC;QAED,MAAM,EAAE,GAAG,8BAA8B,CACvC,IAAI,EACJ,aAAa,EACb,IAAI,CAAC,UAAU,CAA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package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SimAwsAccountRegionScope } from "../../../aws/sim-aws-account-region-scope.js";
|
|
2
|
-
import {
|
|
2
|
+
import { type SimLambdaEventSourceArn } from "../../event-source/sim-lambda-event-source-arn.js";
|
|
3
3
|
import type { SimLambdaFunctionResponseType } from "../../event-source/sim-lambda-event-source-mapping.js";
|
|
4
4
|
import type { SimCreateEventSourceMappingCommandInput } from "./event-source-mapping.command.js";
|
|
5
5
|
/**
|
|
@@ -8,9 +8,12 @@ import type { SimCreateEventSourceMappingCommandInput } from "./event-source-map
|
|
|
8
8
|
* Everything the request is refused for is decided here, before a mapping
|
|
9
9
|
* exists: a mapping that cannot poll the way it was asked to would look like a
|
|
10
10
|
* working subscription and deliver nothing.
|
|
11
|
+
*
|
|
12
|
+
* The event source ARN is read first, because what a mapping may ask for
|
|
13
|
+
* depends on the kind of source it names.
|
|
11
14
|
*/
|
|
12
15
|
export declare class SimLambdaEventSourceMappingInput {
|
|
13
|
-
readonly eventSourceArn:
|
|
16
|
+
readonly eventSourceArn: SimLambdaEventSourceArn;
|
|
14
17
|
readonly functionName: string;
|
|
15
18
|
readonly batchSize: number;
|
|
16
19
|
readonly enabled: boolean;
|
package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-event-source-mapping-input.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/command/event-source-mapping/create-event-source-mapping-input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAC;AAC7F,OAAO,
|
|
1
|
+
{"version":3,"file":"create-event-source-mapping-input.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/command/event-source-mapping/create-event-source-mapping-input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAC;AAC7F,OAAO,EACL,KAAK,uBAAuB,EAE7B,MAAM,mDAAmD,CAAC;AAC3D,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,uDAAuD,CAAC;AAW3G,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,mCAAmC,CAAC;AAUjG;;;;;;;;;GASG;AACH,qBAAa,gCAAgC;IAC3C,SAAgB,cAAc,EAAE,uBAAuB,CAAC;IACxD,SAAgB,YAAY,EAAE,MAAM,CAAC;IACrC,SAAgB,SAAS,EAAE,MAAM,CAAC;IAClC,SAAgB,OAAO,EAAE,OAAO,CAAC;IACjC,SAAgB,qBAAqB,EAAE,SAAS,6BAA6B,EAAE,CAAC;IAEhF,OAAO,eAMN;IAED;;;OAGG;IACH,MAAM,CAAC,EAAE,CACP,KAAK,EAAE,uCAAuC,EAC9C,KAAK,EAAE,wBAAwB,GAC9B,gCAAgC,CAelC;CACF"}
|
package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.js
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { simLambdaEventSourceArnOf, } from "../../event-source/sim-lambda-event-source-arn.js";
|
|
2
2
|
import { SimLambdaInvalidParameterValueException } from "../../error/sim-lambda.error.js";
|
|
3
3
|
import { simLambdaFunctionNameOf } from "../../function/sim-lambda-function-name.js";
|
|
4
|
-
import {
|
|
5
|
-
import { refuseUnsimulatedInput } from "./create-event-source-mapping-refusals.js";
|
|
4
|
+
import { functionResponseTypesIn, requiredString, } from "./create-event-source-mapping-values.js";
|
|
5
|
+
import { refuseUnsimulatedInput, refuseUnsupportedEventSourceInput, } from "./create-event-source-mapping-refusals.js";
|
|
6
6
|
/**
|
|
7
7
|
* One checked CreateEventSourceMapping request.
|
|
8
8
|
*
|
|
9
9
|
* Everything the request is refused for is decided here, before a mapping
|
|
10
10
|
* exists: a mapping that cannot poll the way it was asked to would look like a
|
|
11
11
|
* working subscription and deliver nothing.
|
|
12
|
+
*
|
|
13
|
+
* The event source ARN is read first, because what a mapping may ask for
|
|
14
|
+
* depends on the kind of source it names.
|
|
12
15
|
*/
|
|
13
16
|
export class SimLambdaEventSourceMappingInput {
|
|
14
17
|
eventSourceArn;
|
|
@@ -28,22 +31,24 @@ export class SimLambdaEventSourceMappingInput {
|
|
|
28
31
|
* cannot deliver as asked.
|
|
29
32
|
*/
|
|
30
33
|
static of(input, scope) {
|
|
34
|
+
const eventSourceArn = eventSourceArnIn(input, scope);
|
|
35
|
+
refuseUnsupportedEventSourceInput(input);
|
|
31
36
|
refuseUnsimulatedInput(input);
|
|
32
37
|
return new this({
|
|
33
|
-
eventSourceArn
|
|
38
|
+
eventSourceArn,
|
|
34
39
|
functionName: simLambdaFunctionNameOf(requiredString(input.FunctionName, "functionName")),
|
|
35
|
-
batchSize:
|
|
40
|
+
batchSize: eventSourceArn.batchRules.sizeIn(input.BatchSize),
|
|
36
41
|
enabled: input.Enabled ?? true,
|
|
37
42
|
functionResponseTypes: functionResponseTypesIn(input),
|
|
38
43
|
});
|
|
39
44
|
}
|
|
40
45
|
}
|
|
41
46
|
/**
|
|
42
|
-
* The
|
|
43
|
-
*
|
|
47
|
+
* The event source an ARN names, refusing one this simulated Lambda cannot
|
|
48
|
+
* poll.
|
|
44
49
|
*/
|
|
45
50
|
function eventSourceArnIn(input, scope) {
|
|
46
|
-
const eventSourceArn =
|
|
51
|
+
const eventSourceArn = simLambdaEventSourceArnOf(requiredString(input.EventSourceArn, "eventSourceArn"));
|
|
47
52
|
if (!eventSourceArn.isIn(scope.accountId, scope.regionName)) {
|
|
48
53
|
throw new SimLambdaInvalidParameterValueException(`EventSourceArn ${eventSourceArn.value} names Account ` +
|
|
49
54
|
`${eventSourceArn.accountId} in ${eventSourceArn.regionName}, and a ` +
|
package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-event-source-mapping-input.js","sourceRoot":"","sources":["../../../../../src/service/lambda/command/event-source-mapping/create-event-source-mapping-input.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"create-event-source-mapping-input.js","sourceRoot":"","sources":["../../../../../src/service/lambda/command/event-source-mapping/create-event-source-mapping-input.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,yBAAyB,GAC1B,MAAM,mDAAmD,CAAC;AAE3D,OAAO,EAAE,uCAAuC,EAAE,MAAM,iCAAiC,CAAC;AAC1F,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EACL,uBAAuB,EACvB,cAAc,GACf,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACL,sBAAsB,EACtB,iCAAiC,GAClC,MAAM,2CAA2C,CAAC;AAWnD;;;;;;;;;GASG;AACH,MAAM,OAAO,gCAAgC;IAC3B,cAAc,CAA0B;IACxC,YAAY,CAAS;IACrB,SAAS,CAAS;IAClB,OAAO,CAAU;IACjB,qBAAqB,CAA2C;IAEhF,YAAoB,UAAsD;QACxE,IAAI,CAAC,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;QAChD,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,YAAY,CAAC;QAC5C,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC;QACtC,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC;QAClC,IAAI,CAAC,qBAAqB,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAChE,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,EAAE,CACP,KAA8C,EAC9C,KAA+B;QAE/B,MAAM,cAAc,GAAG,gBAAgB,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QAEtD,iCAAiC,CAAC,KAAK,CAAC,CAAC;QACzC,sBAAsB,CAAC,KAAK,CAAC,CAAC;QAE9B,OAAO,IAAI,IAAI,CAAC;YACd,cAAc;YACd,YAAY,EAAE,uBAAuB,CACnC,cAAc,CAAC,KAAK,CAAC,YAAY,EAAE,cAAc,CAAC,CACnD;YACD,SAAS,EAAE,cAAc,CAAC,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC;YAC5D,OAAO,EAAE,KAAK,CAAC,OAAO,IAAI,IAAI;YAC9B,qBAAqB,EAAE,uBAAuB,CAAC,KAAK,CAAC;SACtD,CAAC,CAAC;IACL,CAAC;CACF;AAED;;;GAGG;AACH,SAAS,gBAAgB,CACvB,KAA8C,EAC9C,KAA+B;IAE/B,MAAM,cAAc,GAAG,yBAAyB,CAC9C,cAAc,CAAC,KAAK,CAAC,cAAc,EAAE,gBAAgB,CAAC,CACvD,CAAC;IAEF,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,UAAU,CAAC,EAAE,CAAC;QAC5D,MAAM,IAAI,uCAAuC,CAC/C,kBAAkB,cAAc,CAAC,KAAK,iBAAiB;YACrD,GAAG,cAAc,CAAC,SAAS,OAAO,cAAc,CAAC,UAAU,UAAU;YACrE,uBAAuB,KAAK,CAAC,SAAS,OAAO,KAAK,CAAC,UAAU,OAAO;YACpE,yDAAyD,CAC5D,CAAC;IACJ,CAAC;IAED,OAAO,cAAc,CAAC;AACxB,CAAC"}
|
package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-refusals.d.ts
CHANGED
|
@@ -3,4 +3,8 @@ import type { SimCreateEventSourceMappingCommandInput } from "./event-source-map
|
|
|
3
3
|
* Refuse an input this simulation has no behaviour for.
|
|
4
4
|
*/
|
|
5
5
|
export declare function refuseUnsimulatedInput(input: SimCreateEventSourceMappingCommandInput): void;
|
|
6
|
+
/**
|
|
7
|
+
* Refuse an input belonging to an event source this simulation does not have.
|
|
8
|
+
*/
|
|
9
|
+
export declare function refuseUnsupportedEventSourceInput(input: SimCreateEventSourceMappingCommandInput): void;
|
|
6
10
|
//# sourceMappingURL=create-event-source-mapping-refusals.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-event-source-mapping-refusals.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/command/event-source-mapping/create-event-source-mapping-refusals.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-event-source-mapping-refusals.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/command/event-source-mapping/create-event-source-mapping-refusals.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,mCAAmC,CAAC;AAgDjG;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,uCAAuC,GAC7C,IAAI,CAqBN;AAED;;GAEG;AACH,wBAAgB,iCAAiC,CAC/C,KAAK,EAAE,uCAAuC,GAC7C,IAAI,CASN"}
|