@reventlessdev/reventless-aws 3.0.0-alpha.167
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/CHANGELOG.md +1564 -0
- package/README.md +62 -0
- package/__mocks__/emptyModule.js +1 -0
- package/all-licenses.csv +565 -0
- package/docker-compose.dynamodb-local.yml +12 -0
- package/jest.setup.cjs +5 -0
- package/licenses-analysis.ods +0 -0
- package/package.json +73 -0
- package/rescript.json +39 -0
- package/reventless-licenses-analysis.xls +0 -0
- package/scripts/run-integration-tests.sh +43 -0
- package/src/Platform.res +1940 -0
- package/src/Platform.res.mjs +2281 -0
- package/src/Platform_Casts.res +106 -0
- package/src/Platform_Casts.res.mjs +13 -0
- package/src/Platform_Stack.res +153 -0
- package/src/Platform_Stack.res.mjs +121 -0
- package/src/Types.res +39 -0
- package/src/Types.res.mjs +21 -0
- package/src/adapter/AWS.res +96 -0
- package/src/adapter/AWS.res.mjs +186 -0
- package/src/adapter/AWS_Tags.res +16 -0
- package/src/adapter/AWS_Tags.res.mjs +48 -0
- package/src/adapter/Adapter_Helpers.res +19 -0
- package/src/adapter/Adapter_Helpers.res.mjs +37 -0
- package/src/adapter/Api/AppSync_EventsApi.res +172 -0
- package/src/adapter/Api/AppSync_EventsApi.res.mjs +96 -0
- package/src/adapter/Api/AppSync_Resolver_Native.res +93 -0
- package/src/adapter/Api/AppSync_Resolver_Native.res.mjs +67 -0
- package/src/adapter/Api/AppSync_Resolver_Retrying.res +653 -0
- package/src/adapter/Api/AppSync_Resolver_Retrying.res.mjs +462 -0
- package/src/adapter/Api/CommandSubscriptionResolvers_AppSync.res +29 -0
- package/src/adapter/Api/CommandSubscriptionResolvers_AppSync.res.mjs +15 -0
- package/src/adapter/Api/Platform_ComponentDefinitions_Lambda.res +238 -0
- package/src/adapter/Api/Platform_ComponentDefinitions_Lambda.res.mjs +179 -0
- package/src/adapter/Api/Platform_UIFragments_Lambda.res +229 -0
- package/src/adapter/Api/Platform_UIFragments_Lambda.res.mjs +245 -0
- package/src/adapter/Auth/Auth_Cognito.res +209 -0
- package/src/adapter/Auth/Auth_Cognito.res.mjs +135 -0
- package/src/adapter/CommandGenerator/CommandGeneratorResolvers.res +2 -0
- package/src/adapter/CommandGenerator/CommandGeneratorResolvers.res.mjs +12 -0
- package/src/adapter/CommandGenerator/CommandGeneratorResolvers_AppSync.res +251 -0
- package/src/adapter/CommandGenerator/CommandGeneratorResolvers_AppSync.res.mjs +126 -0
- package/src/adapter/CommandGenerator/CommandGeneratorResolvers_AppSync_NoOp.res +20 -0
- package/src/adapter/CommandGenerator/CommandGeneratorResolvers_AppSync_NoOp.res.mjs +23 -0
- package/src/adapter/CommandGenerator/CommandGeneratorResolvers_AppSync_Runtime.res +1 -0
- package/src/adapter/CommandGenerator/CommandGeneratorResolvers_AppSync_Runtime.res.mjs +11 -0
- package/src/adapter/CommandGenerator/InboundTranslationResolvers_AppSync.res +95 -0
- package/src/adapter/CommandGenerator/InboundTranslationResolvers_AppSync.res.mjs +50 -0
- package/src/adapter/CommandTopic/CommandTopicChannel.res +6 -0
- package/src/adapter/CommandTopic/CommandTopicChannel.res.mjs +21 -0
- package/src/adapter/CommandTopic/CommandTopicChannel_Helpers.res +196 -0
- package/src/adapter/CommandTopic/CommandTopicChannel_Helpers.res.mjs +145 -0
- package/src/adapter/CommandTopic/CommandTopicChannel_SQS.res +91 -0
- package/src/adapter/CommandTopic/CommandTopicChannel_SQS.res.mjs +74 -0
- package/src/adapter/CommandTopic/CommandTopicChannel_SQS_Async.res +69 -0
- package/src/adapter/CommandTopic/CommandTopicChannel_SQS_Async.res.mjs +62 -0
- package/src/adapter/CommandTopic/CommandTopicChannel_SQS_FIFO.res +60 -0
- package/src/adapter/CommandTopic/CommandTopicChannel_SQS_FIFO.res.mjs +56 -0
- package/src/adapter/CommandTopic/CommandTopicChannel_SQS_Runtime.res +73 -0
- package/src/adapter/CommandTopic/CommandTopicChannel_SQS_Runtime.res.mjs +65 -0
- package/src/adapter/CommandTopic/CommandTopicChannel_SQS_Sync.res +88 -0
- package/src/adapter/CommandTopic/CommandTopicChannel_SQS_Sync.res.mjs +76 -0
- package/src/adapter/CommandTopic/CommandTopicRemoteChannel.res +1 -0
- package/src/adapter/CommandTopic/CommandTopicRemoteChannel.res.mjs +9 -0
- package/src/adapter/CommandTopic/CommandTopicRemoteChannel_SQS.res +7 -0
- package/src/adapter/CommandTopic/CommandTopicRemoteChannel_SQS.res.mjs +17 -0
- package/src/adapter/Counter/CounterHandler_DynamoDbStream.res +103 -0
- package/src/adapter/Counter/CounterHandler_DynamoDbStream.res.mjs +68 -0
- package/src/adapter/Counter/CounterHandler_DynamoDbStream_Runtime.res +107 -0
- package/src/adapter/Counter/CounterHandler_DynamoDbStream_Runtime.res.mjs +145 -0
- package/src/adapter/DcbEventLog/DcbEventLogStorage.res +1 -0
- package/src/adapter/DcbEventLog/DcbEventLogStorage.res.mjs +9 -0
- package/src/adapter/DcbEventLog/DcbEventLogStorage_DynamoDb.res +84 -0
- package/src/adapter/DcbEventLog/DcbEventLogStorage_DynamoDb.res.mjs +52 -0
- package/src/adapter/DcbEventLog/DcbEventLogStorage_DynamoDb_Runtime.res +1436 -0
- package/src/adapter/DcbEventLog/DcbEventLogStorage_DynamoDb_Runtime.res.mjs +1143 -0
- package/src/adapter/EventCollector/EventCollectorChannel.res +6 -0
- package/src/adapter/EventCollector/EventCollectorChannel.res.mjs +21 -0
- package/src/adapter/EventCollector/EventCollectorChannel_DynamoDbStream.res +63 -0
- package/src/adapter/EventCollector/EventCollectorChannel_DynamoDbStream.res.mjs +56 -0
- package/src/adapter/EventCollector/EventCollectorChannel_DynamoDbStream_Runtime.res +20 -0
- package/src/adapter/EventCollector/EventCollectorChannel_DynamoDbStream_Runtime.res.mjs +32 -0
- package/src/adapter/EventCollector/EventCollectorChannel_Helpers.res +266 -0
- package/src/adapter/EventCollector/EventCollectorChannel_Helpers.res.mjs +166 -0
- package/src/adapter/EventCollector/EventCollectorChannel_SQS.res +81 -0
- package/src/adapter/EventCollector/EventCollectorChannel_SQS.res.mjs +54 -0
- package/src/adapter/EventCollector/EventCollectorChannel_SQS_FIFO.res +59 -0
- package/src/adapter/EventCollector/EventCollectorChannel_SQS_FIFO.res.mjs +45 -0
- package/src/adapter/EventCollector/EventCollectorChannel_SQS_Runtime.res +91 -0
- package/src/adapter/EventCollector/EventCollectorChannel_SQS_Runtime.res.mjs +89 -0
- package/src/adapter/EventLog/EventLogStorage.res +3 -0
- package/src/adapter/EventLog/EventLogStorage.res.mjs +15 -0
- package/src/adapter/EventLog/EventLogStorage_DynamoDb.res +25 -0
- package/src/adapter/EventLog/EventLogStorage_DynamoDb.res.mjs +34 -0
- package/src/adapter/EventLog/EventLogStorage_DynamoDbStream.res +26 -0
- package/src/adapter/EventLog/EventLogStorage_DynamoDbStream.res.mjs +35 -0
- package/src/adapter/EventLog/EventLogStorage_DynamoDb_Runtime.res +121 -0
- package/src/adapter/EventLog/EventLogStorage_DynamoDb_Runtime.res.mjs +137 -0
- package/src/adapter/EventLogSubscription/EventLogSubscription_AppSync.res +265 -0
- package/src/adapter/EventLogSubscription/EventLogSubscription_AppSync.res.mjs +185 -0
- package/src/adapter/EventTopic/EventTopicPublisher.res +6 -0
- package/src/adapter/EventTopic/EventTopicPublisher.res.mjs +21 -0
- package/src/adapter/EventTopic/EventTopicPublisher_DynamoDbStream.res +25 -0
- package/src/adapter/EventTopic/EventTopicPublisher_DynamoDbStream.res.mjs +28 -0
- package/src/adapter/EventTopic/EventTopicPublisher_SNS.res +40 -0
- package/src/adapter/EventTopic/EventTopicPublisher_SNS.res.mjs +39 -0
- package/src/adapter/EventTopic/EventTopicPublisher_SNS_FIFO.res +39 -0
- package/src/adapter/EventTopic/EventTopicPublisher_SNS_FIFO.res.mjs +38 -0
- package/src/adapter/EventTopic/EventTopicPublisher_SNS_Runtime.res +5 -0
- package/src/adapter/EventTopic/EventTopicPublisher_SNS_Runtime.res.mjs +18 -0
- package/src/adapter/Mcp/MCP_Lambda.res +502 -0
- package/src/adapter/Mcp/MCP_Lambda.res.mjs +289 -0
- package/src/adapter/QueryDb/NodeResolver_AppSync.res +71 -0
- package/src/adapter/QueryDb/NodeResolver_AppSync.res.mjs +44 -0
- package/src/adapter/QueryDb/QueryDbResolvers.res +2 -0
- package/src/adapter/QueryDb/QueryDbResolvers.res.mjs +12 -0
- package/src/adapter/QueryDb/QueryDbResolvers_AppSync.res +434 -0
- package/src/adapter/QueryDb/QueryDbResolvers_AppSync.res.mjs +243 -0
- package/src/adapter/QueryDb/QueryDbResolvers_AppSync_NoOp.res +21 -0
- package/src/adapter/QueryDb/QueryDbResolvers_AppSync_NoOp.res.mjs +14 -0
- package/src/adapter/QueryDb/QueryDbResolvers_NoOp.res +21 -0
- package/src/adapter/QueryDb/QueryDbResolvers_NoOp.res.mjs +14 -0
- package/src/adapter/QueryDb/QueryDbStorage.res +5 -0
- package/src/adapter/QueryDb/QueryDbStorage.res.mjs +18 -0
- package/src/adapter/QueryDb/QueryDbStorage_DynamoDb.res +115 -0
- package/src/adapter/QueryDb/QueryDbStorage_DynamoDb.res.mjs +100 -0
- package/src/adapter/QueryDb/QueryDbStorage_DynamoDbStream.res +52 -0
- package/src/adapter/QueryDb/QueryDbStorage_DynamoDbStream.res.mjs +38 -0
- package/src/adapter/QueryDb/QueryDbStorage_DynamoDb_Runtime.res +271 -0
- package/src/adapter/QueryDb/QueryDbStorage_DynamoDb_Runtime.res.mjs +306 -0
- package/src/adapter/QueryDb/QueryInterceptor_Lambda.res +20 -0
- package/src/adapter/QueryDb/QueryInterceptor_Lambda.res.mjs +22 -0
- package/src/adapter/QueryEngine/QueryEngine.res +3 -0
- package/src/adapter/QueryEngine/QueryEngine.res.mjs +12 -0
- package/src/adapter/QueryEngine/QueryEngine_DynamoDb.res +184 -0
- package/src/adapter/QueryEngine/QueryEngine_DynamoDb.res.mjs +221 -0
- package/src/adapter/Runtime/AdminEventCollectorEntryPoint.mjs +879 -0
- package/src/adapter/Runtime/AggregateEntryPoint.mjs +313 -0
- package/src/adapter/Runtime/AggregateRuntime_Builder_Micro.res +327 -0
- package/src/adapter/Runtime/AggregateRuntime_Builder_Micro.res.mjs +239 -0
- package/src/adapter/Runtime/AggregateRuntime_Builder_Micro_Async.res +331 -0
- package/src/adapter/Runtime/AggregateRuntime_Builder_Micro_Async.res.mjs +240 -0
- package/src/adapter/Runtime/AggregateRuntime_Builder_PerAggregate.res +247 -0
- package/src/adapter/Runtime/AggregateRuntime_Builder_PerAggregate.res.mjs +185 -0
- package/src/adapter/Runtime/AggregateRuntime_Builder_PerAggregate_Async.res +244 -0
- package/src/adapter/Runtime/AggregateRuntime_Builder_PerAggregate_Async.res.mjs +185 -0
- package/src/adapter/Runtime/AggregateRuntime_Builder_Single.res +347 -0
- package/src/adapter/Runtime/AggregateRuntime_Builder_Single.res.mjs +244 -0
- package/src/adapter/Runtime/AggregateRuntime_Builder_Single_Async.res +285 -0
- package/src/adapter/Runtime/AggregateRuntime_Builder_Single_Async.res.mjs +212 -0
- package/src/adapter/Runtime/AutomationSliceEntryPoint.mjs +124 -0
- package/src/adapter/Runtime/AutomationSliceRuntime_Builder_Single.res +187 -0
- package/src/adapter/Runtime/AutomationSliceRuntime_Builder_Single.res.mjs +147 -0
- package/src/adapter/Runtime/CounterEntryPoint.mjs +91 -0
- package/src/adapter/Runtime/DcbCommandTopicEntryPoint.mjs +265 -0
- package/src/adapter/Runtime/EventCollectorRuntime_Builder_PerEventCollector.res +122 -0
- package/src/adapter/Runtime/EventCollectorRuntime_Builder_PerEventCollector.res.mjs +89 -0
- package/src/adapter/Runtime/EventCollectorRuntime_Builder_Single.res +193 -0
- package/src/adapter/Runtime/EventCollectorRuntime_Builder_Single.res.mjs +137 -0
- package/src/adapter/Runtime/EventMapperEntryPoint.mjs +97 -0
- package/src/adapter/Runtime/ExtensionPointEntryPoint.mjs +101 -0
- package/src/adapter/Runtime/ExtensionPointRuntime_Builder_PerExtensionPoint.res +83 -0
- package/src/adapter/Runtime/ExtensionPointRuntime_Builder_PerExtensionPoint.res.mjs +59 -0
- package/src/adapter/Runtime/HandlerFactoryHelpers.mjs +142 -0
- package/src/adapter/Runtime/HeartbeatEntryPoint.mjs +38 -0
- package/src/adapter/Runtime/PluginExtensionPointEntryPoint.mjs +137 -0
- package/src/adapter/Runtime/ReadModelEntryPoint.mjs +143 -0
- package/src/adapter/Runtime/RuntimeEnvironment.res +1 -0
- package/src/adapter/Runtime/RuntimeEnvironment.res.mjs +9 -0
- package/src/adapter/Runtime/RuntimeEnvironment_Lambda.res +254 -0
- package/src/adapter/Runtime/RuntimeEnvironment_Lambda.res.mjs +169 -0
- package/src/adapter/Runtime/SideEffectEntryPoint.mjs +81 -0
- package/src/adapter/Runtime/SideEffectHandlerRuntime_Builder_Single.res +178 -0
- package/src/adapter/Runtime/SideEffectHandlerRuntime_Builder_Single.res.mjs +129 -0
- package/src/adapter/Runtime/StateChangeSliceRuntime_Builder_Single.res +166 -0
- package/src/adapter/Runtime/StateChangeSliceRuntime_Builder_Single.res.mjs +87 -0
- package/src/adapter/Runtime/StateViewSliceEntryPoint.mjs +136 -0
- package/src/adapter/Runtime/StateViewSliceRuntime_Builder_Single.res +344 -0
- package/src/adapter/Runtime/StateViewSliceRuntime_Builder_Single.res.mjs +242 -0
- package/src/adapter/Runtime/TaskBucketEntryPoint.mjs +150 -0
- package/src/adapter/Runtime/TaskRuntime_Builder_PerBucket.res +123 -0
- package/src/adapter/Runtime/TaskRuntime_Builder_PerBucket.res.mjs +74 -0
- package/src/adapter/ScheduledPublisher/ScheduledPublisher.res +2 -0
- package/src/adapter/ScheduledPublisher/ScheduledPublisher.res.mjs +12 -0
- package/src/adapter/ScheduledPublisher/ScheduledPublisher_CloudWatchEvents.res +54 -0
- package/src/adapter/ScheduledPublisher/ScheduledPublisher_CloudWatchEvents.res.mjs +41 -0
- package/src/adapter/ScheduledPublisher/ScheduledPublisher_CloudWatchEvents_Runtime.res +97 -0
- package/src/adapter/ScheduledPublisher/ScheduledPublisher_CloudWatchEvents_Runtime.res.mjs +85 -0
- package/src/adapter/StateTopic/StateTopic_AppSync.res +418 -0
- package/src/adapter/StateTopic/StateTopic_AppSync.res.mjs +295 -0
- package/src/adapter/Task/TaskBucket.res +1 -0
- package/src/adapter/Task/TaskBucket.res.mjs +9 -0
- package/src/adapter/Task/TaskBucket_S3.res +157 -0
- package/src/adapter/Task/TaskBucket_S3.res.mjs +108 -0
- package/src/adapter/Task/TaskBucket_S3_Runtime.res +11 -0
- package/src/adapter/Task/TaskBucket_S3_Runtime.res.mjs +15 -0
- package/src/components/Aggregate_Builder.res +1 -0
- package/src/components/Aggregate_Builder.res.mjs +25 -0
- package/src/components/Aggregate_Builder_Micro.res +63 -0
- package/src/components/Aggregate_Builder_Micro.res.mjs +80 -0
- package/src/components/Aggregate_Builder_NoResolver.res +61 -0
- package/src/components/Aggregate_Builder_NoResolver.res.mjs +80 -0
- package/src/components/Aggregate_Builder_PerAggregate.res +57 -0
- package/src/components/Aggregate_Builder_PerAggregate.res.mjs +80 -0
- package/src/components/Aggregate_Builder_Single.res +59 -0
- package/src/components/Aggregate_Builder_Single.res.mjs +80 -0
- package/src/components/Aggregate_Builder_Single_Async.res +59 -0
- package/src/components/Aggregate_Builder_Single_Async.res.mjs +80 -0
- package/src/components/Api/AppSync_Adapter.res +500 -0
- package/src/components/Api/AppSync_Adapter.res.mjs +396 -0
- package/src/components/AutomationSlice_Builder.res +52 -0
- package/src/components/AutomationSlice_Builder.res.mjs +72 -0
- package/src/components/AutomationSlice_Builder_Bundled.res.mjs +70 -0
- package/src/components/Counter_Builder.res +10 -0
- package/src/components/Counter_Builder.res.mjs +16 -0
- package/src/components/DataCleaner.res +170 -0
- package/src/components/DataCleaner.res.mjs +2 -0
- package/src/components/DcbEventLog_Builder.res +8 -0
- package/src/components/DcbEventLog_Builder.res.mjs +14 -0
- package/src/components/ExtensionPoint_Builder.res +16 -0
- package/src/components/ExtensionPoint_Builder.res.mjs +37 -0
- package/src/components/ForeignReadModel_Builder.res +19 -0
- package/src/components/ForeignReadModel_Builder.res.mjs +48 -0
- package/src/components/InboundTranslationSlice_Builder.res +25 -0
- package/src/components/InboundTranslationSlice_Builder.res.mjs +31 -0
- package/src/components/OutboundTranslationSlice_Builder.res +60 -0
- package/src/components/OutboundTranslationSlice_Builder.res.mjs +76 -0
- package/src/components/OutboundTranslationSlice_Builder_Bundled.res.mjs +75 -0
- package/src/components/Plugin.res +29 -0
- package/src/components/Plugin.res.mjs +63 -0
- package/src/components/ReadModel_Builder.res +1 -0
- package/src/components/ReadModel_Builder.res.mjs +19 -0
- package/src/components/ReadModel_Builder_NoResolver.res +55 -0
- package/src/components/ReadModel_Builder_NoResolver.res.mjs +64 -0
- package/src/components/ReadModel_Builder_NoResolver_Stream.res +60 -0
- package/src/components/ReadModel_Builder_NoResolver_Stream.res.mjs +64 -0
- package/src/components/ReadModel_Builder_PerReadModel.res +53 -0
- package/src/components/ReadModel_Builder_PerReadModel.res.mjs +66 -0
- package/src/components/ReadModel_Builder_Single.res +52 -0
- package/src/components/ReadModel_Builder_Single.res.mjs +66 -0
- package/src/components/ReadModel_Builder_Single_Stream.res +60 -0
- package/src/components/ReadModel_Builder_Single_Stream.res.mjs +66 -0
- package/src/components/Scheduler.res +1 -0
- package/src/components/Scheduler.res.mjs +13 -0
- package/src/components/SideEffectHandler.res +1 -0
- package/src/components/SideEffectHandler.res.mjs +19 -0
- package/src/components/SideEffectHandler_PerSideEffectHandler.res +13 -0
- package/src/components/SideEffectHandler_PerSideEffectHandler.res.mjs +52 -0
- package/src/components/SideEffectHandler_Single.res +54 -0
- package/src/components/SideEffectHandler_Single.res.mjs +60 -0
- package/src/components/StateChangeSlice_Builder.res +17 -0
- package/src/components/StateChangeSlice_Builder.res.mjs +23 -0
- package/src/components/StateViewSlice_Builder.res +46 -0
- package/src/components/StateViewSlice_Builder.res.mjs +68 -0
- package/src/components/StateViewSlice_Builder_Bundled.res.mjs +69 -0
- package/src/components/StateViewSlice_Builder_Stream.res +50 -0
- package/src/components/StateViewSlice_Builder_Stream.res.mjs +68 -0
- package/src/components/Task_Builder.res +1 -0
- package/src/components/Task_Builder.res.mjs +28 -0
- package/src/components/Task_Builder_PerBucket.res +22 -0
- package/src/components/Task_Builder_PerBucket.res.mjs +63 -0
- package/src/components/Vpc.res +214 -0
- package/src/components/Vpc.res.mjs +117 -0
- package/src/components/Vpc.resi +22 -0
- package/src/errors/AppSync_Error.res +36 -0
- package/src/errors/AppSync_Error.res.mjs +38 -0
- package/src/errors/Cognito_Error.res +36 -0
- package/src/errors/Cognito_Error.res.mjs +38 -0
- package/src/errors/DynamoDb_Error.res +75 -0
- package/src/errors/DynamoDb_Error.res.mjs +86 -0
- package/src/errors/Kinesis_Error.res +36 -0
- package/src/errors/Kinesis_Error.res.mjs +38 -0
- package/src/errors/SNS_Error.res +34 -0
- package/src/errors/SNS_Error.res.mjs +38 -0
- package/src/errors/SQS_Error.res +40 -0
- package/src/errors/SQS_Error.res.mjs +41 -0
- package/src/plugin/cloner/ClonerRunner.res +1 -0
- package/src/plugin/cloner/ClonerRunner.res.mjs +9 -0
- package/src/plugin/cloner/ClonerRunner_Fargate.res +362 -0
- package/src/plugin/cloner/ClonerRunner_Fargate.res.mjs +246 -0
- package/src/plugin/cloner/ClonerRunner_Fargate_Runtime.res +42 -0
- package/src/plugin/cloner/ClonerRunner_Fargate_Runtime.res.mjs +45 -0
- package/src/plugin/heartbeat/HeartbeatRunner.res +1 -0
- package/src/plugin/heartbeat/HeartbeatRunner.res.mjs +9 -0
- package/src/plugin/heartbeat/HeartbeatRunner_CloudWatchEvents.res +96 -0
- package/src/plugin/heartbeat/HeartbeatRunner_CloudWatchEvents.res.mjs +69 -0
- package/src/plugin/runtime/PluginExtensionPointRuntime_Builder.res +115 -0
- package/src/plugin/runtime/PluginExtensionPointRuntime_Builder.res.mjs +88 -0
- package/src/plugin/runtime/PluginRuntimeOperations.res +5 -0
- package/src/plugin/runtime/PluginRuntimeOperations.res.mjs +14 -0
- package/src/plugin/runtime/PluginRuntime_Builder.res +769 -0
- package/src/plugin/runtime/PluginRuntime_Builder.res.mjs +464 -0
- package/src/plugin/runtime/Util_PluginMessage_Runtime.res +13 -0
- package/src/plugin/runtime/Util_PluginMessage_Runtime.res.mjs +19 -0
- package/src/plugin/stack/Plugin_ExtensionPoint_Builder.res +28 -0
- package/src/plugin/stack/Plugin_ExtensionPoint_Builder.res.mjs +67 -0
- package/src/plugin/stack/Plugin_Stack.res +439 -0
- package/src/plugin/stack/Plugin_Stack.res.mjs +263 -0
- package/src/util/Util.res +29 -0
- package/src/util/Util.res.mjs +93 -0
- package/src/util/Util_AppSync.res +36 -0
- package/src/util/Util_AppSync.res.mjs +35 -0
- package/src/util/Util_AppSync_Caller.res +213 -0
- package/src/util/Util_AppSync_Caller.res.mjs +170 -0
- package/src/util/Util_Bundle.res +255 -0
- package/src/util/Util_Bundle.res.mjs +179 -0
- package/src/util/Util_Cloudwatch.res +14 -0
- package/src/util/Util_Cloudwatch.res.mjs +19 -0
- package/src/util/Util_CognitoGroupUser.res +39 -0
- package/src/util/Util_CognitoGroupUser.res.mjs +32 -0
- package/src/util/Util_CognitoGroupUser_Runtime.res +65 -0
- package/src/util/Util_CognitoGroupUser_Runtime.res.mjs +50 -0
- package/src/util/Util_Cognito_Runtime.res +52 -0
- package/src/util/Util_Cognito_Runtime.res.mjs +35 -0
- package/src/util/Util_DeadLetterQueue.res +154 -0
- package/src/util/Util_DeadLetterQueue.res.mjs +158 -0
- package/src/util/Util_DynamoDb.res +210 -0
- package/src/util/Util_DynamoDb.res.mjs +218 -0
- package/src/util/Util_DynamoDbStream.res +138 -0
- package/src/util/Util_DynamoDbStream.res.mjs +134 -0
- package/src/util/Util_DynamoDbStream_Runtime.res +94 -0
- package/src/util/Util_DynamoDbStream_Runtime.res.mjs +131 -0
- package/src/util/Util_DynamoDb_Runtime.res +216 -0
- package/src/util/Util_DynamoDb_Runtime.res.mjs +257 -0
- package/src/util/Util_DynamoDb_TableManager.res +23 -0
- package/src/util/Util_DynamoDb_TableManager.res.mjs +35 -0
- package/src/util/Util_DynamoDb_TableManager.resi +3 -0
- package/src/util/Util_Env.res +5 -0
- package/src/util/Util_Env.res.mjs +2 -0
- package/src/util/Util_EventSourceMapping.res +49 -0
- package/src/util/Util_EventSourceMapping.res.mjs +32 -0
- package/src/util/Util_HostUiDomain.res +28 -0
- package/src/util/Util_HostUiDomain.res.mjs +26 -0
- package/src/util/Util_IAM_Role.res +14 -0
- package/src/util/Util_IAM_Role.res.mjs +28 -0
- package/src/util/Util_Kinesis_Runtime.res +20 -0
- package/src/util/Util_Kinesis_Runtime.res.mjs +24 -0
- package/src/util/Util_Lambda.res +39 -0
- package/src/util/Util_Lambda.res.mjs +45 -0
- package/src/util/Util_LocalConfig.res +119 -0
- package/src/util/Util_LocalConfig.res.mjs +112 -0
- package/src/util/Util_ResourceNaming.res +15 -0
- package/src/util/Util_ResourceNaming.res.mjs +26 -0
- package/src/util/Util_S3.res +17 -0
- package/src/util/Util_S3.res.mjs +30 -0
- package/src/util/Util_S3_Runtime.res +11 -0
- package/src/util/Util_S3_Runtime.res.mjs +15 -0
- package/src/util/Util_SNS.res +33 -0
- package/src/util/Util_SNS.res.mjs +50 -0
- package/src/util/Util_SNS_FIFO.res +21 -0
- package/src/util/Util_SNS_FIFO.res.mjs +27 -0
- package/src/util/Util_SNS_Runtime.res +33 -0
- package/src/util/Util_SNS_Runtime.res.mjs +27 -0
- package/src/util/Util_SQS.res +70 -0
- package/src/util/Util_SQS.res.mjs +83 -0
- package/src/util/Util_SQS_FIFO.res +16 -0
- package/src/util/Util_SQS_FIFO.res.mjs +28 -0
- package/src/util/Util_SQS_Runtime.res +169 -0
- package/src/util/Util_SQS_Runtime.res.mjs +150 -0
- package/src/util/Util_SesPolicy_Runtime.res +54 -0
- package/src/util/Util_SesPolicy_Runtime.res.mjs +55 -0
- package/src/util/Util_StaticBundle.res +124 -0
- package/src/util/Util_StaticBundle.res.mjs +132 -0
- package/src/util/Util_Vpc.res +22 -0
- package/src/util/Util_Vpc.res.mjs +27 -0
- package/tests/AppSync_AdapterTest.res +396 -0
- package/tests/AppSync_AdapterTest.res.mjs +326 -0
- package/tests/AppSync_Resolver_RetryingTest.res +59 -0
- package/tests/AppSync_Resolver_RetryingTest.res.mjs +66 -0
- package/tests/Auth_CognitoTest.res +203 -0
- package/tests/Auth_CognitoTest.res.mjs +248 -0
- package/tests/DcbEventLogStorage_DynamoDb_RuntimeTest.res +602 -0
- package/tests/DcbEventLogStorage_DynamoDb_RuntimeTest.res.mjs +742 -0
- package/tests/EventLogStorage_DynamoDb_RuntimeTest.res +57 -0
- package/tests/EventLogStorage_DynamoDb_RuntimeTest.res.mjs +68 -0
- package/tests/MCP_LambdaTest.res +101 -0
- package/tests/MCP_LambdaTest.res.mjs +56 -0
- package/tests/Util_HostUiDomainTest.res +90 -0
- package/tests/Util_HostUiDomainTest.res.mjs +50 -0
- package/tests/Util_SQS_RuntimeTest.res +46 -0
- package/tests/Util_SQS_RuntimeTest.res.mjs +45 -0
- package/tests/Util_StaticBundleTest.res +136 -0
- package/tests/Util_StaticBundleTest.res.mjs +149 -0
- package/tests/integration/DcbCommandTopicEntryPoint_IntegrationTest.res +101 -0
- package/tests/integration/DcbCommandTopicEntryPoint_IntegrationTest.res.mjs +91 -0
- package/tests/integration/DcbEventLogStorage_DynamoDb_IntegrationTest.res +315 -0
- package/tests/integration/DcbEventLogStorage_DynamoDb_IntegrationTest.res.mjs +435 -0
- package/tests/integration/DcbIntegrationHarness.res +102 -0
- package/tests/integration/DcbIntegrationHarness.res.mjs +163 -0
- package/tests/integration/EpTestSlice.res +28 -0
- package/tests/integration/EpTestSlice.res.mjs +43 -0
- package/tests/integration/EpTestSliceBehavior.res +18 -0
- package/tests/integration/EpTestSliceBehavior.res.mjs +35 -0
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
open PulumiAws.PolicyDocument
|
|
2
|
+
open Adapter_Helpers
|
|
3
|
+
|
|
4
|
+
let createQueuePolicy = (
|
|
5
|
+
queue: PulumiAws.SQS.Queue.t,
|
|
6
|
+
name,
|
|
7
|
+
lambda: Pulumi.Output.t<PulumiAws.Lambda.Function.t>,
|
|
8
|
+
opts,
|
|
9
|
+
) => {
|
|
10
|
+
let _ =
|
|
11
|
+
(queue.arn, queue.id, lambda->Pulumi.Output.flatMap(lambda => lambda.arn))
|
|
12
|
+
->Pulumi.Output.all3
|
|
13
|
+
->Pulumi.Output.apply(((queueArn, queueId, lambdaArn)) => {
|
|
14
|
+
let queuePolicyDocument =
|
|
15
|
+
PulumiAws.PolicyDocument.make(
|
|
16
|
+
~id=name ++ "QueuePolicy",
|
|
17
|
+
~statements=[
|
|
18
|
+
{
|
|
19
|
+
sid: "AllowLambdaToAccessQueue",
|
|
20
|
+
effect: Allow,
|
|
21
|
+
principal: Principals({
|
|
22
|
+
service: PrincipalId("lambda.amazonaws.com"),
|
|
23
|
+
}),
|
|
24
|
+
actions: Actions([
|
|
25
|
+
"sqs:ReceiveMessage",
|
|
26
|
+
"sqs:DeleteMessage",
|
|
27
|
+
"sqs:GetQueueAttributes",
|
|
28
|
+
]),
|
|
29
|
+
resources: Resource(queueArn),
|
|
30
|
+
conditions: {
|
|
31
|
+
arnEquals: [("AWS:SourceArn", ConditionValue(lambdaArn))]->Dict.fromArray,
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
sid: "AllowCloudWatchEventsToSendToQueue",
|
|
36
|
+
effect: Allow,
|
|
37
|
+
principal: Principals({
|
|
38
|
+
service: PrincipalId("events.amazonaws.com"),
|
|
39
|
+
}),
|
|
40
|
+
actions: Actions(["sqs:SendMessage"]),
|
|
41
|
+
resources: Resource(queueArn),
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
)
|
|
45
|
+
->toJsonString
|
|
46
|
+
->Pulumi.Input.make
|
|
47
|
+
let _queuePolicy = PulumiAws.SQS.QueuePolicy.make(
|
|
48
|
+
~name,
|
|
49
|
+
~args={queueUrl: queueId->Pulumi.Input.make, policy: queuePolicyDocument},
|
|
50
|
+
~opts=Some(opts),
|
|
51
|
+
)
|
|
52
|
+
})
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
let createLambdaPolicy = (
|
|
56
|
+
lambdaRole: PulumiAws.IAM.Role.t,
|
|
57
|
+
name: string,
|
|
58
|
+
queue: PulumiAws.SQS.Queue.t,
|
|
59
|
+
resources: array<ReventlessInfra.Adapter.resource>,
|
|
60
|
+
opts: Pulumi.CustomResourceOptions.t,
|
|
61
|
+
) => {
|
|
62
|
+
let _ =
|
|
63
|
+
(queue.arn, resources->ReventlessCore.Adapter.resourcesToResolvedOutput)
|
|
64
|
+
->Pulumi.Output.all2
|
|
65
|
+
->Pulumi.Output.apply(((queueArn, resources)) => {
|
|
66
|
+
let allowSQSSendLambda =
|
|
67
|
+
resources->sqsResources->Array.length > 0
|
|
68
|
+
? Some(
|
|
69
|
+
PulumiAws.PolicyDocument.make(
|
|
70
|
+
~id=name ++ "RemoteSQSLambdaPolicy",
|
|
71
|
+
~statements=[
|
|
72
|
+
{
|
|
73
|
+
sid: "AllowLambdaSendMessageSQS",
|
|
74
|
+
effect: Allow,
|
|
75
|
+
actions: Action("sqs:SendMessage"),
|
|
76
|
+
resources: Resources(
|
|
77
|
+
resources->sqsResources->Array.map(sqsResource => sqsResource.urn),
|
|
78
|
+
),
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
),
|
|
82
|
+
)
|
|
83
|
+
: None
|
|
84
|
+
|
|
85
|
+
let allowLambdaReadWriteDynamoDb =
|
|
86
|
+
resources->dynamoDbResources->Array.length > 0
|
|
87
|
+
? Some(
|
|
88
|
+
PulumiAws.PolicyDocument.make(
|
|
89
|
+
~id=name ++ "LambdaDynamoDbAccessPolicy",
|
|
90
|
+
~statements=[
|
|
91
|
+
{
|
|
92
|
+
sid: "AllowLambdaReadWriteDynamoDb",
|
|
93
|
+
effect: Allow,
|
|
94
|
+
actions: Actions([
|
|
95
|
+
"dynamodb:GetItem",
|
|
96
|
+
"dynamodb:Query",
|
|
97
|
+
"dynamodb:Scan",
|
|
98
|
+
"dynamodb:BatchGetItem",
|
|
99
|
+
"dynamodb:PutItem",
|
|
100
|
+
"dynamodb:UpdateItem",
|
|
101
|
+
"dynamodb:DeleteItem",
|
|
102
|
+
"dynamodb:BatchWriteItem",
|
|
103
|
+
// Phase 7 cross-partition fences emit read-only
|
|
104
|
+
// `ConditionCheck` entries inside `TransactWriteItems`
|
|
105
|
+
// when a write doesn't touch the cross-partition tag's
|
|
106
|
+
// partition itself; this needs its own IAM action.
|
|
107
|
+
"dynamodb:ConditionCheckItem",
|
|
108
|
+
]),
|
|
109
|
+
resources: Resources(
|
|
110
|
+
resources
|
|
111
|
+
->dynamoDbResources
|
|
112
|
+
->Array.flatMap(dynamoDbResource => [
|
|
113
|
+
dynamoDbResource.urn,
|
|
114
|
+
dynamoDbResource.urn ++ "/index/*",
|
|
115
|
+
]),
|
|
116
|
+
),
|
|
117
|
+
},
|
|
118
|
+
],
|
|
119
|
+
),
|
|
120
|
+
)
|
|
121
|
+
: None
|
|
122
|
+
|
|
123
|
+
let allowLambdaWriteCloudWatchEvents = PulumiAws.PolicyDocument.make(
|
|
124
|
+
~id=name ++ "LambdaCloudWatchEventsPolicy",
|
|
125
|
+
~statements=[
|
|
126
|
+
{
|
|
127
|
+
sid: "AllowLambdaWriteCloudWatchEvents",
|
|
128
|
+
effect: Allow,
|
|
129
|
+
actions: Actions([
|
|
130
|
+
"events:PutRule",
|
|
131
|
+
"events:PutTargets",
|
|
132
|
+
"events:DeleteRule",
|
|
133
|
+
"events:RemoveTargets",
|
|
134
|
+
]),
|
|
135
|
+
resources: Resource("*"),
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
)
|
|
139
|
+
|
|
140
|
+
let allowLambdaReceiveSQS = PulumiAws.PolicyDocument.make(
|
|
141
|
+
~id=name ++ "SQSLambdaPolicy",
|
|
142
|
+
~statements=[
|
|
143
|
+
{
|
|
144
|
+
sid: "AllowLambdaReceiveSQS",
|
|
145
|
+
effect: Allow,
|
|
146
|
+
actions: Actions([
|
|
147
|
+
"sqs:ReceiveMessage",
|
|
148
|
+
"sqs:DeleteMessage",
|
|
149
|
+
"sqs:GetQueueAttributes",
|
|
150
|
+
"sqs:ChangeMessageVisibility",
|
|
151
|
+
]),
|
|
152
|
+
resources: Resource(queueArn),
|
|
153
|
+
},
|
|
154
|
+
],
|
|
155
|
+
)
|
|
156
|
+
|
|
157
|
+
let allowLambdaPassRoleToEvents = PulumiAws.PolicyDocument.make(
|
|
158
|
+
~id=name ++ "LambdaPassRoleToCloudWatchEventsRule",
|
|
159
|
+
~statements=[
|
|
160
|
+
{
|
|
161
|
+
sid: "AllowLambdaPassRoleToEvents",
|
|
162
|
+
effect: Allow,
|
|
163
|
+
actions: Action("iam:PassRole"),
|
|
164
|
+
resources: Resource("*"),
|
|
165
|
+
conditions: {
|
|
166
|
+
stringEquals: Dict.fromArray([
|
|
167
|
+
("iam:PassedToService", ConditionValue("events.amazonaws.com")),
|
|
168
|
+
]),
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
],
|
|
172
|
+
)
|
|
173
|
+
|
|
174
|
+
let _lambdaPolicy = PulumiAws.IAM.RolePolicy.make(
|
|
175
|
+
~name,
|
|
176
|
+
~args={
|
|
177
|
+
policy: PulumiAws.PolicyDocument.mergePolicyDocuments(
|
|
178
|
+
name ++ "LambdaPolicy",
|
|
179
|
+
[
|
|
180
|
+
Some(PulumiAws.Lambda.defaultLoggingPolicyDocument),
|
|
181
|
+
Some(allowLambdaReceiveSQS),
|
|
182
|
+
Some(allowLambdaWriteCloudWatchEvents),
|
|
183
|
+
Some(allowLambdaPassRoleToEvents),
|
|
184
|
+
allowLambdaReadWriteDynamoDb,
|
|
185
|
+
allowSQSSendLambda,
|
|
186
|
+
]->Array.keepSome,
|
|
187
|
+
)->Pulumi.Output.asInput,
|
|
188
|
+
role: lambdaRole.id->Pulumi.Output.asInput,
|
|
189
|
+
},
|
|
190
|
+
~opts,
|
|
191
|
+
)
|
|
192
|
+
})
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
let subscribeLambda2SqsTopic = (~batchSize=?, lambda, name, queue, opts) =>
|
|
196
|
+
Util_EventSourceMapping.subscribeSqs(~lambda, ~name, ~queue, ~batchSize?, ~opts)
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
|
+
|
|
3
|
+
import * as Aws from "@pulumi/aws";
|
|
4
|
+
import * as Stdlib_Array from "@rescript/runtime/lib/es6/Stdlib_Array.js";
|
|
5
|
+
import * as Output$Pulumi from "@reventlessdev/rescript-pulumi-pulumi/src/Output.res.mjs";
|
|
6
|
+
import * as Pulumi from "@pulumi/pulumi";
|
|
7
|
+
import * as Lambda$PulumiAws from "@reventlessdev/rescript-pulumi-aws/src/Lambda/Lambda.res.mjs";
|
|
8
|
+
import * as Adapter$ReventlessCore from "@reventlessdev/reventless-core/src/adapter/Adapter.res.mjs";
|
|
9
|
+
import * as PolicyDocument$PulumiAws from "@reventlessdev/rescript-pulumi-aws/src/IAM/PolicyDocument.res.mjs";
|
|
10
|
+
import * as Adapter_Helpers$ReventlessAws from "../Adapter_Helpers.res.mjs";
|
|
11
|
+
import * as Util_EventSourceMapping$ReventlessAws from "../../util/Util_EventSourceMapping.res.mjs";
|
|
12
|
+
|
|
13
|
+
function createQueuePolicy(queue, name, lambda, opts) {
|
|
14
|
+
Pulumi.all([
|
|
15
|
+
queue.arn,
|
|
16
|
+
queue.id,
|
|
17
|
+
Output$Pulumi.flatMap(lambda, lambda => lambda.arn)
|
|
18
|
+
]).apply(param => {
|
|
19
|
+
let queueArn = param[0];
|
|
20
|
+
let queuePolicyDocument = PolicyDocument$PulumiAws.toJsonString(PolicyDocument$PulumiAws.make(undefined, name + "QueuePolicy", [
|
|
21
|
+
{
|
|
22
|
+
Sid: "AllowLambdaToAccessQueue",
|
|
23
|
+
Principal: {
|
|
24
|
+
Service: "lambda.amazonaws.com"
|
|
25
|
+
},
|
|
26
|
+
Effect: "Allow",
|
|
27
|
+
Action: [
|
|
28
|
+
"sqs:ReceiveMessage",
|
|
29
|
+
"sqs:DeleteMessage",
|
|
30
|
+
"sqs:GetQueueAttributes"
|
|
31
|
+
],
|
|
32
|
+
Resource: queueArn,
|
|
33
|
+
Condition: {
|
|
34
|
+
ArnEquals: Object.fromEntries([[
|
|
35
|
+
"AWS:SourceArn",
|
|
36
|
+
param[2]
|
|
37
|
+
]])
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
Sid: "AllowCloudWatchEventsToSendToQueue",
|
|
42
|
+
Principal: {
|
|
43
|
+
Service: "events.amazonaws.com"
|
|
44
|
+
},
|
|
45
|
+
Effect: "Allow",
|
|
46
|
+
Action: ["sqs:SendMessage"],
|
|
47
|
+
Resource: queueArn
|
|
48
|
+
}
|
|
49
|
+
]));
|
|
50
|
+
new (Aws.sqs.QueuePolicy)(name, {
|
|
51
|
+
policy: queuePolicyDocument,
|
|
52
|
+
queueUrl: param[1]
|
|
53
|
+
}, opts);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function createLambdaPolicy(lambdaRole, name, queue, resources, opts) {
|
|
58
|
+
Pulumi.all([
|
|
59
|
+
queue.arn,
|
|
60
|
+
Adapter$ReventlessCore.resourcesToResolvedOutput(resources)
|
|
61
|
+
]).apply(param => {
|
|
62
|
+
let resources = param[1];
|
|
63
|
+
let allowSQSSendLambda = Adapter_Helpers$ReventlessAws.sqsResources(resources).length !== 0 ? PolicyDocument$PulumiAws.make(undefined, name + "RemoteSQSLambdaPolicy", [{
|
|
64
|
+
Sid: "AllowLambdaSendMessageSQS",
|
|
65
|
+
Effect: "Allow",
|
|
66
|
+
Action: "sqs:SendMessage",
|
|
67
|
+
Resource: Adapter_Helpers$ReventlessAws.sqsResources(resources).map(sqsResource => sqsResource.urn)
|
|
68
|
+
}]) : undefined;
|
|
69
|
+
let allowLambdaReadWriteDynamoDb = Adapter_Helpers$ReventlessAws.dynamoDbResources(resources).length !== 0 ? PolicyDocument$PulumiAws.make(undefined, name + "LambdaDynamoDbAccessPolicy", [{
|
|
70
|
+
Sid: "AllowLambdaReadWriteDynamoDb",
|
|
71
|
+
Effect: "Allow",
|
|
72
|
+
Action: [
|
|
73
|
+
"dynamodb:GetItem",
|
|
74
|
+
"dynamodb:Query",
|
|
75
|
+
"dynamodb:Scan",
|
|
76
|
+
"dynamodb:BatchGetItem",
|
|
77
|
+
"dynamodb:PutItem",
|
|
78
|
+
"dynamodb:UpdateItem",
|
|
79
|
+
"dynamodb:DeleteItem",
|
|
80
|
+
"dynamodb:BatchWriteItem",
|
|
81
|
+
"dynamodb:ConditionCheckItem"
|
|
82
|
+
],
|
|
83
|
+
Resource: Adapter_Helpers$ReventlessAws.dynamoDbResources(resources).flatMap(dynamoDbResource => [
|
|
84
|
+
dynamoDbResource.urn,
|
|
85
|
+
dynamoDbResource.urn + "/index/*"
|
|
86
|
+
])
|
|
87
|
+
}]) : undefined;
|
|
88
|
+
let allowLambdaWriteCloudWatchEvents = PolicyDocument$PulumiAws.make(undefined, name + "LambdaCloudWatchEventsPolicy", [{
|
|
89
|
+
Sid: "AllowLambdaWriteCloudWatchEvents",
|
|
90
|
+
Effect: "Allow",
|
|
91
|
+
Action: [
|
|
92
|
+
"events:PutRule",
|
|
93
|
+
"events:PutTargets",
|
|
94
|
+
"events:DeleteRule",
|
|
95
|
+
"events:RemoveTargets"
|
|
96
|
+
],
|
|
97
|
+
Resource: "*"
|
|
98
|
+
}]);
|
|
99
|
+
let allowLambdaReceiveSQS = PolicyDocument$PulumiAws.make(undefined, name + "SQSLambdaPolicy", [{
|
|
100
|
+
Sid: "AllowLambdaReceiveSQS",
|
|
101
|
+
Effect: "Allow",
|
|
102
|
+
Action: [
|
|
103
|
+
"sqs:ReceiveMessage",
|
|
104
|
+
"sqs:DeleteMessage",
|
|
105
|
+
"sqs:GetQueueAttributes",
|
|
106
|
+
"sqs:ChangeMessageVisibility"
|
|
107
|
+
],
|
|
108
|
+
Resource: param[0]
|
|
109
|
+
}]);
|
|
110
|
+
let allowLambdaPassRoleToEvents = PolicyDocument$PulumiAws.make(undefined, name + "LambdaPassRoleToCloudWatchEventsRule", [{
|
|
111
|
+
Sid: "AllowLambdaPassRoleToEvents",
|
|
112
|
+
Effect: "Allow",
|
|
113
|
+
Action: "iam:PassRole",
|
|
114
|
+
Resource: "*",
|
|
115
|
+
Condition: {
|
|
116
|
+
StringEquals: Object.fromEntries([[
|
|
117
|
+
"iam:PassedToService",
|
|
118
|
+
"events.amazonaws.com"
|
|
119
|
+
]])
|
|
120
|
+
}
|
|
121
|
+
}]);
|
|
122
|
+
new (Aws.iam.RolePolicy)(name, {
|
|
123
|
+
policy: PolicyDocument$PulumiAws.mergePolicyDocuments(name + "LambdaPolicy", Stdlib_Array.keepSome([
|
|
124
|
+
Lambda$PulumiAws.defaultLoggingPolicyDocument,
|
|
125
|
+
allowLambdaReceiveSQS,
|
|
126
|
+
allowLambdaWriteCloudWatchEvents,
|
|
127
|
+
allowLambdaPassRoleToEvents,
|
|
128
|
+
allowLambdaReadWriteDynamoDb,
|
|
129
|
+
allowSQSSendLambda
|
|
130
|
+
])),
|
|
131
|
+
role: lambdaRole.id
|
|
132
|
+
}, opts);
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
function subscribeLambda2SqsTopic(batchSize, lambda, name, queue, opts) {
|
|
137
|
+
return Util_EventSourceMapping$ReventlessAws.subscribeSqs(lambda, name, queue, batchSize, opts);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export {
|
|
141
|
+
createQueuePolicy,
|
|
142
|
+
createLambdaPolicy,
|
|
143
|
+
subscribeLambda2SqsTopic,
|
|
144
|
+
}
|
|
145
|
+
/* @pulumi/aws Not a pure module */
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
type callbackEvent = PulumiAws.SQS.Queue.event
|
|
2
|
+
type runtimeParts = Util.Lambda.runtimeParts
|
|
3
|
+
type channelParts = Util.SQS.channelParts
|
|
4
|
+
|
|
5
|
+
// Optional override for the SQS event-source mapping `batchSize`. Set from the
|
|
6
|
+
// runtime builder's `finish()` (or `forDcbCommandTopic`) just before invoking
|
|
7
|
+
// the connect callbacks, using the per-flavor `commandHandlerConfig.sqsBatchSize`.
|
|
8
|
+
// `None` => AWS SQS default of 10 messages per batch (mirrored as
|
|
9
|
+
// `CommandHandlerDefaults.sqsBatchSize`).
|
|
10
|
+
let batchSizeRef: ref<option<int>> = ref(None)
|
|
11
|
+
let setBatchSize = (n: int) => batchSizeRef := Some(n)
|
|
12
|
+
let clearBatchSize = () => batchSizeRef := None
|
|
13
|
+
|
|
14
|
+
let connect = (
|
|
15
|
+
~name,
|
|
16
|
+
~channel: ReventlessCore.CommandTopic_Adapter.channel<
|
|
17
|
+
callbackEvent,
|
|
18
|
+
'context,
|
|
19
|
+
Util.SQS.channelParts,
|
|
20
|
+
runtimeParts,
|
|
21
|
+
>,
|
|
22
|
+
~runtime: ReventlessCore.Runtime.environment<runtimeParts>,
|
|
23
|
+
~resources: array<ReventlessInfra.Adapter.resource>,
|
|
24
|
+
~opts,
|
|
25
|
+
) => {
|
|
26
|
+
let opts = opts->ReventlessCore.Util.Pulumi.ComponentResourceOptions.toCustomResourceOptions
|
|
27
|
+
|
|
28
|
+
let queue = channel.parts.queue
|
|
29
|
+
let lambda = runtime.parts.lambda
|
|
30
|
+
let lambdaRole = runtime.parts.lambdaRole
|
|
31
|
+
|
|
32
|
+
open CommandTopicChannel_Helpers
|
|
33
|
+
|
|
34
|
+
queue->createQueuePolicy(name, lambda, opts)
|
|
35
|
+
lambdaRole->createLambdaPolicy(name, queue, resources, opts)
|
|
36
|
+
let subscribeResource =
|
|
37
|
+
lambda->subscribeLambda2SqsTopic(~batchSize=?batchSizeRef.contents, name, queue, opts)
|
|
38
|
+
|
|
39
|
+
[subscribeResource]
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
let make: ReventlessCore.CommandTopic_Adapter.channelMaker<
|
|
43
|
+
callbackEvent,
|
|
44
|
+
'context,
|
|
45
|
+
Util.SQS.channelParts,
|
|
46
|
+
Util.Lambda.runtimeParts,
|
|
47
|
+
> = (~name, ~opts=?) => {
|
|
48
|
+
let opts =
|
|
49
|
+
opts->Option.map(ReventlessCore.Util.Pulumi.ComponentResourceOptions.toCustomResourceOptions)
|
|
50
|
+
|
|
51
|
+
let tags = AWS.Tags.make(~name, ReventlessCore.CommandTopic.componentType)
|
|
52
|
+
let queue = PulumiAws.SQS.Queue.make(
|
|
53
|
+
~name,
|
|
54
|
+
~args={
|
|
55
|
+
PulumiAws.SQS.Queue.visibilityTimeoutSeconds: (6 * 30)->Pulumi.Input.make, // TODO rethink timeout
|
|
56
|
+
redrivePolicy: Util_DeadLetterQueue.queue.arn
|
|
57
|
+
->Pulumi.Output.apply(dlqArn =>
|
|
58
|
+
PulumiAws.SQS.Queue.RedrivePolicy.make(~deadLetterTargetArn=dlqArn, ~maxReceiveCount=5)
|
|
59
|
+
)
|
|
60
|
+
->Pulumi.Output.asInput,
|
|
61
|
+
sqsManagedSseEnabled: false->Pulumi.Input.make,
|
|
62
|
+
tags,
|
|
63
|
+
},
|
|
64
|
+
~opts?,
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
let resolvedQueueOutput = queue->Util_SQS.toResolvedQueueOutput
|
|
68
|
+
|
|
69
|
+
{
|
|
70
|
+
ReventlessCore.CommandTopic_Adapter.parts: {queue: queue},
|
|
71
|
+
resources: [queue->Util_SQS.toResource(~tags=tags->Pulumi.Output.fromInput)],
|
|
72
|
+
publishJsons: resolvedQueueOutput->Pulumi.Output.apply(resolvedQueue =>
|
|
73
|
+
resolvedQueue->CommandTopicChannel_SQS_Runtime.publishJsons(AWS.SQS, ...)
|
|
74
|
+
),
|
|
75
|
+
publishJsonsStream: resolvedQueueOutput->Pulumi.Output.apply(resolvedQueue => {
|
|
76
|
+
let publishJsons = resolvedQueue->CommandTopicChannel_SQS_Runtime.publishJsons(AWS.SQS, ...)
|
|
77
|
+
stream =>
|
|
78
|
+
stream
|
|
79
|
+
->Stream.grouped(10)
|
|
80
|
+
->Stream.runForEach(jsons =>
|
|
81
|
+
Effect.promise(() => publishJsons(jsons))
|
|
82
|
+
)
|
|
83
|
+
}),
|
|
84
|
+
publishJsonsAndWait: None->Pulumi.Output.make,
|
|
85
|
+
connect,
|
|
86
|
+
handleChannelEvent: handleCommands =>
|
|
87
|
+
resolvedQueueOutput->Pulumi.Output.apply(resolvedQueue =>
|
|
88
|
+
resolvedQueue->CommandTopicChannel_SQS_Runtime.handleQueueEvent(handleCommands, ...)
|
|
89
|
+
),
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
|
+
|
|
3
|
+
import * as Stream from "@reventlessdev/rescript-effect/src/Stream.res.mjs";
|
|
4
|
+
import * as Aws from "@pulumi/aws";
|
|
5
|
+
import * as Stdlib_Option from "@rescript/runtime/lib/es6/Stdlib_Option.js";
|
|
6
|
+
import * as Effect from "effect/Effect";
|
|
7
|
+
import * as Stream$1 from "effect/Stream";
|
|
8
|
+
import * as Pulumi from "@pulumi/pulumi";
|
|
9
|
+
import * as Primitive_option from "@rescript/runtime/lib/es6/Primitive_option.js";
|
|
10
|
+
import * as SQS_Queue$PulumiAws from "@reventlessdev/rescript-pulumi-aws/src/SQS/SQS_Queue.res.mjs";
|
|
11
|
+
import * as AWS_Tags$ReventlessAws from "../AWS_Tags.res.mjs";
|
|
12
|
+
import * as Util_SQS$ReventlessAws from "../../util/Util_SQS.res.mjs";
|
|
13
|
+
import * as Util_Pulumi$ReventlessCore from "@reventlessdev/reventless-core/src/util/Util_Pulumi.res.mjs";
|
|
14
|
+
import * as CommandTopic$ReventlessCore from "@reventlessdev/reventless-core/src/components/CommandTopic/CommandTopic.res.mjs";
|
|
15
|
+
import * as Util_DeadLetterQueue$ReventlessAws from "../../util/Util_DeadLetterQueue.res.mjs";
|
|
16
|
+
import * as CommandTopicChannel_Helpers$ReventlessAws from "./CommandTopicChannel_Helpers.res.mjs";
|
|
17
|
+
import * as CommandTopicChannel_SQS_Runtime$ReventlessAws from "./CommandTopicChannel_SQS_Runtime.res.mjs";
|
|
18
|
+
|
|
19
|
+
let batchSizeRef = {
|
|
20
|
+
contents: undefined
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
function setBatchSize(n) {
|
|
24
|
+
batchSizeRef.contents = n;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function clearBatchSize() {
|
|
28
|
+
batchSizeRef.contents = undefined;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function connect(name, channel, runtime, resources, opts) {
|
|
32
|
+
let opts$1 = Util_Pulumi$ReventlessCore.ComponentResourceOptions.toCustomResourceOptions(opts);
|
|
33
|
+
let queue = channel.parts.queue;
|
|
34
|
+
let lambda = runtime.parts.lambda;
|
|
35
|
+
let lambdaRole = runtime.parts.lambdaRole;
|
|
36
|
+
CommandTopicChannel_Helpers$ReventlessAws.createQueuePolicy(queue, name, lambda, opts$1);
|
|
37
|
+
CommandTopicChannel_Helpers$ReventlessAws.createLambdaPolicy(lambdaRole, name, queue, resources, opts$1);
|
|
38
|
+
return [CommandTopicChannel_Helpers$ReventlessAws.subscribeLambda2SqsTopic(batchSizeRef.contents, lambda, name, queue, opts$1)];
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function make(name, opts) {
|
|
42
|
+
let opts$1 = Stdlib_Option.map(opts, Util_Pulumi$ReventlessCore.ComponentResourceOptions.toCustomResourceOptions);
|
|
43
|
+
let tags = AWS_Tags$ReventlessAws.make(name, CommandTopic$ReventlessCore.componentType);
|
|
44
|
+
let queue = new (Aws.sqs.Queue)(name, {
|
|
45
|
+
redrivePolicy: Util_DeadLetterQueue$ReventlessAws.queue.arn.apply(dlqArn => SQS_Queue$PulumiAws.RedrivePolicy.make(dlqArn, 5)),
|
|
46
|
+
tags: tags,
|
|
47
|
+
visibilityTimeoutSeconds: 180,
|
|
48
|
+
sqsManagedSseEnabled: false
|
|
49
|
+
}, opts$1 !== undefined ? Primitive_option.valFromOption(opts$1) : undefined);
|
|
50
|
+
let resolvedQueueOutput = Util_SQS$ReventlessAws.toResolvedQueueOutput(queue);
|
|
51
|
+
return {
|
|
52
|
+
parts: {
|
|
53
|
+
queue: queue
|
|
54
|
+
},
|
|
55
|
+
resources: [Util_SQS$ReventlessAws.toResource(tags, queue)],
|
|
56
|
+
publishJsons: resolvedQueueOutput.apply(resolvedQueue => CommandTopicChannel_SQS_Runtime$ReventlessAws.publishJsons(resolvedQueue, "SQS")),
|
|
57
|
+
publishJsonsStream: resolvedQueueOutput.apply(resolvedQueue => {
|
|
58
|
+
let publishJsons = CommandTopicChannel_SQS_Runtime$ReventlessAws.publishJsons(resolvedQueue, "SQS");
|
|
59
|
+
return stream => Stream$1.runForEach(Stream.grouped(stream, 10), jsons => Effect.promise(() => publishJsons(jsons)));
|
|
60
|
+
}),
|
|
61
|
+
publishJsonsAndWait: Pulumi.output(undefined),
|
|
62
|
+
handleChannelEvent: handleCommands => resolvedQueueOutput.apply(resolvedQueue => CommandTopicChannel_SQS_Runtime$ReventlessAws.handleQueueEvent(resolvedQueue, handleCommands)),
|
|
63
|
+
connect: connect
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export {
|
|
68
|
+
batchSizeRef,
|
|
69
|
+
setBatchSize,
|
|
70
|
+
clearBatchSize,
|
|
71
|
+
connect,
|
|
72
|
+
make,
|
|
73
|
+
}
|
|
74
|
+
/* Stream Not a pure module */
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
// FIFO SQS-backed CommandTopic channel with fire-and-forget semantics.
|
|
2
|
+
// Opt-in for high-contention aggregates and internal automation where
|
|
3
|
+
// ordering guarantees matter more than synchronous command results.
|
|
4
|
+
// Mutations return CommandPending — the client subscribes for the eventual result.
|
|
5
|
+
|
|
6
|
+
type callbackEvent = PulumiAws.SQS.Queue.event
|
|
7
|
+
type runtimeParts = Util.Lambda.runtimeParts
|
|
8
|
+
type channelParts = Util.SQS.channelParts
|
|
9
|
+
|
|
10
|
+
let connect = CommandTopicChannel_SQS.connect
|
|
11
|
+
|
|
12
|
+
// Re-export per-flavor SQS event-source `batchSize` setters from the shared
|
|
13
|
+
// SQS connect impl, so runtime builders can configure them via the aliased
|
|
14
|
+
// module (`CommandTopicChannel.SQS_Async.setBatchSize`).
|
|
15
|
+
let setBatchSize = CommandTopicChannel_SQS.setBatchSize
|
|
16
|
+
let clearBatchSize = CommandTopicChannel_SQS.clearBatchSize
|
|
17
|
+
|
|
18
|
+
let make: ReventlessCore.CommandTopic_Adapter.channelMaker<
|
|
19
|
+
callbackEvent,
|
|
20
|
+
'context,
|
|
21
|
+
Util.SQS.channelParts,
|
|
22
|
+
Util.Lambda.runtimeParts,
|
|
23
|
+
> = (~name, ~opts=?) => {
|
|
24
|
+
let opts =
|
|
25
|
+
opts->Option.map(ReventlessCore.Util.Pulumi.ComponentResourceOptions.toCustomResourceOptions)
|
|
26
|
+
let tags = AWS.Tags.make(~name, ReventlessCore.CommandTopic.componentType)
|
|
27
|
+
let queue = PulumiAws.SQS.Queue.make(
|
|
28
|
+
~name,
|
|
29
|
+
~args={
|
|
30
|
+
PulumiAws.SQS.Queue.fifoQueue: true->Pulumi.Input.make,
|
|
31
|
+
contentBasedDeduplication: true->Pulumi.Input.make,
|
|
32
|
+
visibilityTimeoutSeconds: (6 * 30)->Pulumi.Input.make,
|
|
33
|
+
redrivePolicy: Util_DeadLetterQueue.fifoQueue.arn
|
|
34
|
+
->Pulumi.Output.apply(dlqArn => {
|
|
35
|
+
PulumiAws.SQS.Queue.RedrivePolicy.make(~deadLetterTargetArn=dlqArn, ~maxReceiveCount=5)
|
|
36
|
+
})
|
|
37
|
+
->Pulumi.Output.asInput,
|
|
38
|
+
sqsManagedSseEnabled: false->Pulumi.Input.make,
|
|
39
|
+
deduplicationScope: MessageGroup,
|
|
40
|
+
fifoThroughputLimit: PerMessageGroupId,
|
|
41
|
+
tags,
|
|
42
|
+
},
|
|
43
|
+
~opts?,
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
let resolvedQueueOutput = queue->Util_SQS.toResolvedQueueOutput
|
|
47
|
+
|
|
48
|
+
{
|
|
49
|
+
parts: {queue: queue},
|
|
50
|
+
resources: [queue->Util_SQS_FIFO.toResource(~tags=tags->Pulumi.Output.fromInput)],
|
|
51
|
+
publishJsons: resolvedQueueOutput->Pulumi.Output.apply(resolvedQueue =>
|
|
52
|
+
resolvedQueue->CommandTopicChannel_SQS_Runtime.publishJsons(AWS.SQS_FIFO, ...)
|
|
53
|
+
),
|
|
54
|
+
publishJsonsStream: resolvedQueueOutput->Pulumi.Output.apply(resolvedQueue => {
|
|
55
|
+
let publishJsons =
|
|
56
|
+
resolvedQueue->CommandTopicChannel_SQS_Runtime.publishJsons(AWS.SQS_FIFO, ...)
|
|
57
|
+
stream =>
|
|
58
|
+
stream
|
|
59
|
+
->Stream.grouped(10)
|
|
60
|
+
->Stream.runForEach(jsons => Effect.promise(() => publishJsons(jsons)))
|
|
61
|
+
}),
|
|
62
|
+
publishJsonsAndWait: None->Pulumi.Output.make,
|
|
63
|
+
connect,
|
|
64
|
+
handleChannelEvent: handleCommands =>
|
|
65
|
+
resolvedQueueOutput->Pulumi.Output.apply(resolvedQueue =>
|
|
66
|
+
resolvedQueue->CommandTopicChannel_SQS_Runtime.handleQueueEvent(handleCommands, ...)
|
|
67
|
+
),
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
|
+
|
|
3
|
+
import * as Stream from "@reventlessdev/rescript-effect/src/Stream.res.mjs";
|
|
4
|
+
import * as Aws from "@pulumi/aws";
|
|
5
|
+
import * as Stdlib_Option from "@rescript/runtime/lib/es6/Stdlib_Option.js";
|
|
6
|
+
import * as Effect from "effect/Effect";
|
|
7
|
+
import * as Stream$1 from "effect/Stream";
|
|
8
|
+
import * as Pulumi from "@pulumi/pulumi";
|
|
9
|
+
import * as Primitive_option from "@rescript/runtime/lib/es6/Primitive_option.js";
|
|
10
|
+
import * as SQS_Queue$PulumiAws from "@reventlessdev/rescript-pulumi-aws/src/SQS/SQS_Queue.res.mjs";
|
|
11
|
+
import * as AWS_Tags$ReventlessAws from "../AWS_Tags.res.mjs";
|
|
12
|
+
import * as Util_SQS$ReventlessAws from "../../util/Util_SQS.res.mjs";
|
|
13
|
+
import * as Util_Pulumi$ReventlessCore from "@reventlessdev/reventless-core/src/util/Util_Pulumi.res.mjs";
|
|
14
|
+
import * as CommandTopic$ReventlessCore from "@reventlessdev/reventless-core/src/components/CommandTopic/CommandTopic.res.mjs";
|
|
15
|
+
import * as Util_SQS_FIFO$ReventlessAws from "../../util/Util_SQS_FIFO.res.mjs";
|
|
16
|
+
import * as Util_DeadLetterQueue$ReventlessAws from "../../util/Util_DeadLetterQueue.res.mjs";
|
|
17
|
+
import * as CommandTopicChannel_SQS$ReventlessAws from "./CommandTopicChannel_SQS.res.mjs";
|
|
18
|
+
import * as CommandTopicChannel_SQS_Runtime$ReventlessAws from "./CommandTopicChannel_SQS_Runtime.res.mjs";
|
|
19
|
+
|
|
20
|
+
function make(name, opts) {
|
|
21
|
+
let opts$1 = Stdlib_Option.map(opts, Util_Pulumi$ReventlessCore.ComponentResourceOptions.toCustomResourceOptions);
|
|
22
|
+
let tags = AWS_Tags$ReventlessAws.make(name, CommandTopic$ReventlessCore.componentType);
|
|
23
|
+
let queue = new (Aws.sqs.Queue)(name, {
|
|
24
|
+
contentBasedDeduplication: true,
|
|
25
|
+
fifoQueue: true,
|
|
26
|
+
redrivePolicy: Util_DeadLetterQueue$ReventlessAws.fifoQueue.arn.apply(dlqArn => SQS_Queue$PulumiAws.RedrivePolicy.make(dlqArn, 5)),
|
|
27
|
+
tags: tags,
|
|
28
|
+
visibilityTimeoutSeconds: 180,
|
|
29
|
+
deduplicationScope: "messageGroup",
|
|
30
|
+
fifoThroughputLimit: "perMessageGroupId",
|
|
31
|
+
sqsManagedSseEnabled: false
|
|
32
|
+
}, opts$1 !== undefined ? Primitive_option.valFromOption(opts$1) : undefined);
|
|
33
|
+
let resolvedQueueOutput = Util_SQS$ReventlessAws.toResolvedQueueOutput(queue);
|
|
34
|
+
return {
|
|
35
|
+
parts: {
|
|
36
|
+
queue: queue
|
|
37
|
+
},
|
|
38
|
+
resources: [Util_SQS_FIFO$ReventlessAws.toResource(tags, queue)],
|
|
39
|
+
publishJsons: resolvedQueueOutput.apply(resolvedQueue => CommandTopicChannel_SQS_Runtime$ReventlessAws.publishJsons(resolvedQueue, "SQS_FIFO")),
|
|
40
|
+
publishJsonsStream: resolvedQueueOutput.apply(resolvedQueue => {
|
|
41
|
+
let publishJsons = CommandTopicChannel_SQS_Runtime$ReventlessAws.publishJsons(resolvedQueue, "SQS_FIFO");
|
|
42
|
+
return stream => Stream$1.runForEach(Stream.grouped(stream, 10), jsons => Effect.promise(() => publishJsons(jsons)));
|
|
43
|
+
}),
|
|
44
|
+
publishJsonsAndWait: Pulumi.output(undefined),
|
|
45
|
+
handleChannelEvent: handleCommands => resolvedQueueOutput.apply(resolvedQueue => CommandTopicChannel_SQS_Runtime$ReventlessAws.handleQueueEvent(resolvedQueue, handleCommands)),
|
|
46
|
+
connect: CommandTopicChannel_SQS$ReventlessAws.connect
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
let connect = CommandTopicChannel_SQS$ReventlessAws.connect;
|
|
51
|
+
|
|
52
|
+
let setBatchSize = CommandTopicChannel_SQS$ReventlessAws.setBatchSize;
|
|
53
|
+
|
|
54
|
+
let clearBatchSize = CommandTopicChannel_SQS$ReventlessAws.clearBatchSize;
|
|
55
|
+
|
|
56
|
+
export {
|
|
57
|
+
connect,
|
|
58
|
+
setBatchSize,
|
|
59
|
+
clearBatchSize,
|
|
60
|
+
make,
|
|
61
|
+
}
|
|
62
|
+
/* Stream Not a pure module */
|