modmex-lambda 0.5.12__py3-none-any.whl → 0.6.0__py3-none-any.whl
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.
- modmex_lambda/connectors/eventbridge_scheduler.py +24 -0
- modmex_lambda/connectors/ieventbridge_scheduler.py +21 -0
- modmex_lambda/connectors/module.py +10 -0
- modmex_lambda/stream/flavors/__init__.py +24 -0
- modmex_lambda/stream/flavors/base_flavor.py +15 -0
- modmex_lambda/stream/flavors/schedule.py +162 -0
- modmex_lambda/stream/operators/scheduler.py +36 -0
- {modmex_lambda-0.5.12.dist-info → modmex_lambda-0.6.0.dist-info}/METADATA +56 -1
- {modmex_lambda-0.5.12.dist-info → modmex_lambda-0.6.0.dist-info}/RECORD +11 -7
- {modmex_lambda-0.5.12.dist-info → modmex_lambda-0.6.0.dist-info}/WHEEL +0 -0
- {modmex_lambda-0.5.12.dist-info → modmex_lambda-0.6.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from modmex_lambda.connectors.ieventbridge_scheduler import (
|
|
2
|
+
IEventBridgeSchedulerConnector,
|
|
3
|
+
)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Connector(IEventBridgeSchedulerConnector):
|
|
7
|
+
"""Lazy adapter for the EventBridge Scheduler API."""
|
|
8
|
+
|
|
9
|
+
def __init__(self, client=None) -> None:
|
|
10
|
+
self._client = client
|
|
11
|
+
|
|
12
|
+
@property
|
|
13
|
+
def client(self):
|
|
14
|
+
if self._client is None:
|
|
15
|
+
import boto3
|
|
16
|
+
|
|
17
|
+
self._client = boto3.client("scheduler")
|
|
18
|
+
return self._client
|
|
19
|
+
|
|
20
|
+
def create_schedule(self, params):
|
|
21
|
+
return self.client.create_schedule(**params)
|
|
22
|
+
|
|
23
|
+
def delete_schedule(self, params):
|
|
24
|
+
return self.client.delete_schedule(**params)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from abc import ABC, abstractmethod
|
|
2
|
+
from typing import Any, Dict
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class IEventBridgeSchedulerConnector(ABC):
|
|
6
|
+
"""Schedules one-time EventBridge deliveries."""
|
|
7
|
+
|
|
8
|
+
@property
|
|
9
|
+
def client(self) -> Any:
|
|
10
|
+
"""Returns the EventBridge Scheduler client."""
|
|
11
|
+
raise NotImplementedError("client property must be implemented")
|
|
12
|
+
|
|
13
|
+
@abstractmethod
|
|
14
|
+
def create_schedule(self, params: Dict[str, Any]) -> Dict[str, Any]:
|
|
15
|
+
"""Creates a one-time schedule."""
|
|
16
|
+
raise NotImplementedError("create_schedule method must be implemented")
|
|
17
|
+
|
|
18
|
+
@abstractmethod
|
|
19
|
+
def delete_schedule(self, params: Dict[str, Any]) -> Dict[str, Any]:
|
|
20
|
+
"""Deletes a previously created schedule."""
|
|
21
|
+
raise NotImplementedError("delete_schedule method must be implemented")
|
|
@@ -7,6 +7,9 @@ from injector import Module, provider, singleton
|
|
|
7
7
|
from modmex_lambda.connectors.icloudwatch import ICloudWatchConnector
|
|
8
8
|
from modmex_lambda.connectors.idynamodb import IDynamodbConnector
|
|
9
9
|
from modmex_lambda.connectors.ieventbridge import IEventBridgeConnector
|
|
10
|
+
from modmex_lambda.connectors.ieventbridge_scheduler import (
|
|
11
|
+
IEventBridgeSchedulerConnector,
|
|
12
|
+
)
|
|
10
13
|
from modmex_lambda.connectors.ilambda import ILambdaConnector
|
|
11
14
|
from modmex_lambda.connectors.is3 import IS3Connector
|
|
12
15
|
from modmex_lambda.connectors.isns import ISNSConnector
|
|
@@ -38,6 +41,13 @@ class AwsConnectorsModule(Module):
|
|
|
38
41
|
|
|
39
42
|
return Connector()
|
|
40
43
|
|
|
44
|
+
@singleton
|
|
45
|
+
@provider
|
|
46
|
+
def provide_eventbridge_scheduler(self) -> IEventBridgeSchedulerConnector:
|
|
47
|
+
from modmex_lambda.connectors.eventbridge_scheduler import Connector
|
|
48
|
+
|
|
49
|
+
return Connector()
|
|
50
|
+
|
|
41
51
|
@singleton
|
|
42
52
|
@provider
|
|
43
53
|
def provide_lambda(self) -> ILambdaConnector:
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from importlib import import_module
|
|
2
|
+
from typing import Any
|
|
3
|
+
|
|
4
|
+
_EXPORTS = {
|
|
5
|
+
"Schedule": ("modmex_lambda.stream.flavors.schedule", "Schedule"),
|
|
6
|
+
"ScheduleRule": ("modmex_lambda.stream.flavors.schedule", "ScheduleRule"),
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
__all__ = list(_EXPORTS)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def __getattr__(name: str) -> Any:
|
|
13
|
+
target = _EXPORTS.get(name)
|
|
14
|
+
if target is None:
|
|
15
|
+
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
|
|
16
|
+
|
|
17
|
+
module_name, attr = target
|
|
18
|
+
value = getattr(import_module(module_name), attr)
|
|
19
|
+
globals()[name] = value
|
|
20
|
+
return value
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def __dir__() -> list[str]:
|
|
24
|
+
return sorted([*globals().keys(), *__all__])
|
|
@@ -3,6 +3,9 @@ from typing import TYPE_CHECKING, Any, Generic, Optional, Type, TypeVar
|
|
|
3
3
|
from modmex_lambda.connectors.icloudwatch import ICloudWatchConnector
|
|
4
4
|
from modmex_lambda.connectors.idynamodb import IDynamodbConnector
|
|
5
5
|
from modmex_lambda.connectors.ieventbridge import IEventBridgeConnector
|
|
6
|
+
from modmex_lambda.connectors.ieventbridge_scheduler import (
|
|
7
|
+
IEventBridgeSchedulerConnector,
|
|
8
|
+
)
|
|
6
9
|
from modmex_lambda.connectors.ilambda import ILambdaConnector
|
|
7
10
|
from modmex_lambda.connectors.is3 import IS3Connector
|
|
8
11
|
from modmex_lambda.connectors.isns import ISNSConnector
|
|
@@ -24,6 +27,7 @@ if TYPE_CHECKING:
|
|
|
24
27
|
from modmex_lambda.stream.operators.s3 import S3Ops
|
|
25
28
|
from modmex_lambda.stream.operators.sns import SNSOps
|
|
26
29
|
from modmex_lambda.stream.operators.sqs import SQSOps
|
|
30
|
+
from modmex_lambda.stream.operators.scheduler import SchedulerOps
|
|
27
31
|
|
|
28
32
|
|
|
29
33
|
TEvent = TypeVar("TEvent", bound=Event)
|
|
@@ -50,6 +54,7 @@ class BaseFlavor(Generic[TEvent], IFlavor):
|
|
|
50
54
|
self._s3_ops: Optional["S3Ops"] = None
|
|
51
55
|
self._sns_ops: Optional["SNSOps"] = None
|
|
52
56
|
self._sqs_ops: Optional["SQSOps"] = None
|
|
57
|
+
self._scheduler_ops: Optional["SchedulerOps"] = None
|
|
53
58
|
|
|
54
59
|
def bind(self, dependency_resolver: DependencyResolver) -> "BaseFlavor[TEvent]":
|
|
55
60
|
if self.dependency_resolver is None:
|
|
@@ -120,6 +125,16 @@ class BaseFlavor(Generic[TEvent], IFlavor):
|
|
|
120
125
|
)
|
|
121
126
|
return self._sqs_ops
|
|
122
127
|
|
|
128
|
+
@property
|
|
129
|
+
def scheduler_ops(self) -> "SchedulerOps":
|
|
130
|
+
if self._scheduler_ops is None:
|
|
131
|
+
from modmex_lambda.stream.operators.scheduler import SchedulerOps
|
|
132
|
+
|
|
133
|
+
self._scheduler_ops = SchedulerOps(
|
|
134
|
+
self.resolve(IEventBridgeSchedulerConnector)
|
|
135
|
+
)
|
|
136
|
+
return self._scheduler_ops
|
|
137
|
+
|
|
123
138
|
@property
|
|
124
139
|
def publisher(self) -> Publisher[TEvent]:
|
|
125
140
|
if self._publisher is None:
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import json
|
|
2
|
+
import os
|
|
3
|
+
from datetime import datetime, timedelta, timezone
|
|
4
|
+
from typing import Any, Callable, Optional
|
|
5
|
+
|
|
6
|
+
from reactivex import Observable, operators as ops
|
|
7
|
+
|
|
8
|
+
from modmex_lambda.connectors.ieventbridge import IEventBridgeConnector
|
|
9
|
+
from modmex_lambda.dependencies import DependencyResolver
|
|
10
|
+
from modmex_lambda.stream.flavors.base_flavor import BaseFlavor
|
|
11
|
+
from modmex_lambda.stream.operators.publisher import PublisherOptions
|
|
12
|
+
from modmex_lambda.stream.utils.contracts import BaseRule, Event, Uow
|
|
13
|
+
from modmex_lambda.stream.utils.faults import faulty
|
|
14
|
+
from modmex_lambda.stream.utils.filters import on_content, on_event_type
|
|
15
|
+
from modmex_lambda.stream.utils.operators import try_filter, try_map
|
|
16
|
+
from modmex_lambda.stream.utils.print import print_end, print_start
|
|
17
|
+
from modmex_lambda.stream.utils.tags import adorn_standard_tags
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class ScheduleRule(BaseRule, total=False):
|
|
21
|
+
"""Declares a one-time future delivery of a standard domain event."""
|
|
22
|
+
|
|
23
|
+
schedule_at: Callable[[Uow], datetime]
|
|
24
|
+
delay_minutes: int | Callable[[Uow], int]
|
|
25
|
+
schedule_name: str | Callable[[Uow], str]
|
|
26
|
+
to_event: Callable[[Uow, "Schedule", Event], Event]
|
|
27
|
+
bus_arn: str | Callable[[Uow], str]
|
|
28
|
+
role_arn: str | Callable[[Uow], str]
|
|
29
|
+
group_name: str | Callable[[Uow], str]
|
|
30
|
+
source: str | Callable[[Uow], str]
|
|
31
|
+
client_token: str | Callable[[Uow], str]
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class Schedule(BaseFlavor):
|
|
35
|
+
"""Schedules a standard domain event for one future point in time."""
|
|
36
|
+
|
|
37
|
+
def __init__(
|
|
38
|
+
self,
|
|
39
|
+
rule: ScheduleRule,
|
|
40
|
+
*,
|
|
41
|
+
logger: Optional[Any] = None,
|
|
42
|
+
connector: Optional[IEventBridgeConnector] = None,
|
|
43
|
+
dependency_resolver: Optional[DependencyResolver] = None,
|
|
44
|
+
publisher_options: Optional[PublisherOptions] = None,
|
|
45
|
+
) -> None:
|
|
46
|
+
super().__init__(
|
|
47
|
+
logger=logger,
|
|
48
|
+
connector=connector,
|
|
49
|
+
dependency_resolver=dependency_resolver,
|
|
50
|
+
publisher_options=publisher_options,
|
|
51
|
+
)
|
|
52
|
+
self.rule = rule
|
|
53
|
+
|
|
54
|
+
@property
|
|
55
|
+
def id(self):
|
|
56
|
+
return self.rule["id"]
|
|
57
|
+
|
|
58
|
+
def __call__(self, source: Observable):
|
|
59
|
+
return source.pipe(
|
|
60
|
+
try_filter(on_event_type(self.rule)),
|
|
61
|
+
ops.do_action(print_start(self.logger)),
|
|
62
|
+
try_filter(on_content(self.rule)),
|
|
63
|
+
try_map(faulty(self._to_schedule_request)),
|
|
64
|
+
self.scheduler_ops,
|
|
65
|
+
ops.do_action(print_end(self.logger)),
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
def _to_schedule_request(self, uow: Uow) -> Uow:
|
|
69
|
+
schedule_at = self._resolve_schedule_at(uow)
|
|
70
|
+
if schedule_at.tzinfo is None:
|
|
71
|
+
raise ValueError("schedule_at must return a timezone-aware datetime.")
|
|
72
|
+
|
|
73
|
+
scheduled_event = self._to_event(uow, schedule_at)
|
|
74
|
+
bus_arn = self._value(
|
|
75
|
+
"bus_arn", uow, os.getenv("BUS_ARN")
|
|
76
|
+
)
|
|
77
|
+
role_arn = self._value("role_arn", uow, os.getenv("SCHEDULER_ROLE_ARN"))
|
|
78
|
+
if not bus_arn:
|
|
79
|
+
raise ValueError("bus_arn or BUS_ARN is required.")
|
|
80
|
+
if not role_arn:
|
|
81
|
+
raise ValueError("role_arn or SCHEDULER_ROLE_ARN is required.")
|
|
82
|
+
return {
|
|
83
|
+
**uow,
|
|
84
|
+
"scheduled_event": scheduled_event,
|
|
85
|
+
"schedule_request": {
|
|
86
|
+
"Name": self._value("schedule_name", uow),
|
|
87
|
+
"GroupName": self._value("group_name", uow, "default"),
|
|
88
|
+
"ScheduleExpression": self._schedule_expression(schedule_at),
|
|
89
|
+
"FlexibleTimeWindow": {"Mode": "OFF"},
|
|
90
|
+
"ActionAfterCompletion": "DELETE",
|
|
91
|
+
"ClientToken": self._value("client_token", uow, scheduled_event["id"]),
|
|
92
|
+
"Target": {
|
|
93
|
+
"Arn": self._value(
|
|
94
|
+
"bus_arn", uow, bus_arn
|
|
95
|
+
),
|
|
96
|
+
"RoleArn": self._value(
|
|
97
|
+
"role_arn", uow, role_arn
|
|
98
|
+
),
|
|
99
|
+
"EventBridgeParameters": {
|
|
100
|
+
"Source": self._value(
|
|
101
|
+
"source", uow, os.getenv("BUS_SRC", "custom")
|
|
102
|
+
),
|
|
103
|
+
"DetailType": scheduled_event["type"],
|
|
104
|
+
},
|
|
105
|
+
"Input": json.dumps(scheduled_event),
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
def _to_event(self, uow: Uow, schedule_at: datetime) -> Event:
|
|
111
|
+
template: Event = {
|
|
112
|
+
"id": self._value("client_token", uow, self._value("schedule_name", uow)),
|
|
113
|
+
"timestamp": int(schedule_at.timestamp() * 1000),
|
|
114
|
+
"partition_key": uow["event"].get("partition_key"),
|
|
115
|
+
"triggers": [
|
|
116
|
+
{
|
|
117
|
+
"id": uow["event"]["id"],
|
|
118
|
+
"type": uow["event"]["type"],
|
|
119
|
+
"timestamp": uow["event"].get("timestamp"),
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
}
|
|
123
|
+
event = self.rule["to_event"](uow, self, template)
|
|
124
|
+
return adorn_standard_tags("scheduled_event")({
|
|
125
|
+
**uow,
|
|
126
|
+
"scheduled_event": event,
|
|
127
|
+
})["scheduled_event"]
|
|
128
|
+
|
|
129
|
+
def _resolve_schedule_at(self, uow: Uow) -> datetime:
|
|
130
|
+
has_schedule_at = "schedule_at" in self.rule
|
|
131
|
+
has_delay_minutes = "delay_minutes" in self.rule
|
|
132
|
+
if has_schedule_at == has_delay_minutes:
|
|
133
|
+
raise ValueError(
|
|
134
|
+
"Schedule requires exactly one of schedule_at or delay_minutes."
|
|
135
|
+
)
|
|
136
|
+
|
|
137
|
+
if has_schedule_at:
|
|
138
|
+
return self.rule["schedule_at"](uow)
|
|
139
|
+
|
|
140
|
+
delay_minutes = self._value("delay_minutes", uow)
|
|
141
|
+
if isinstance(delay_minutes, bool) or not isinstance(delay_minutes, int):
|
|
142
|
+
raise ValueError("delay_minutes must resolve to a non-negative integer.")
|
|
143
|
+
if delay_minutes < 0:
|
|
144
|
+
raise ValueError("delay_minutes must resolve to a non-negative integer.")
|
|
145
|
+
|
|
146
|
+
timestamp = uow["event"].get("timestamp")
|
|
147
|
+
if timestamp is None:
|
|
148
|
+
raise ValueError("delay_minutes requires event.timestamp.")
|
|
149
|
+
return datetime.fromtimestamp(
|
|
150
|
+
timestamp / 1000,
|
|
151
|
+
tz=timezone.utc,
|
|
152
|
+
) + timedelta(minutes=delay_minutes)
|
|
153
|
+
|
|
154
|
+
def _value(self, key: str, uow: Uow, default=None):
|
|
155
|
+
value = self.rule.get(key, default)
|
|
156
|
+
return value(uow) if callable(value) else value
|
|
157
|
+
|
|
158
|
+
@staticmethod
|
|
159
|
+
def _schedule_expression(value: datetime) -> str:
|
|
160
|
+
return "at({})".format(
|
|
161
|
+
value.astimezone(timezone.utc).strftime("%Y-%m-%dT%H:%M:%S")
|
|
162
|
+
)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
from reactivex import Observable
|
|
2
|
+
|
|
3
|
+
from modmex_lambda.connectors.ieventbridge_scheduler import (
|
|
4
|
+
IEventBridgeSchedulerConnector,
|
|
5
|
+
)
|
|
6
|
+
from modmex_lambda.stream.operators.ioperator import IOperator
|
|
7
|
+
from modmex_lambda.stream.utils.faults import faulty
|
|
8
|
+
from modmex_lambda.stream.utils.operators import try_map
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class SchedulerOps(IOperator):
|
|
12
|
+
"""Reactive operator that submits prepared EventBridge schedules."""
|
|
13
|
+
|
|
14
|
+
def __init__(
|
|
15
|
+
self,
|
|
16
|
+
connector: IEventBridgeSchedulerConnector,
|
|
17
|
+
*,
|
|
18
|
+
request_field="schedule_request",
|
|
19
|
+
response_field="schedule_response",
|
|
20
|
+
) -> None:
|
|
21
|
+
self.connector = connector
|
|
22
|
+
self.request_field = request_field
|
|
23
|
+
self.response_field = response_field
|
|
24
|
+
|
|
25
|
+
def __call__(self, source: Observable) -> Observable:
|
|
26
|
+
return source.pipe(try_map(faulty(self.invoke)))
|
|
27
|
+
|
|
28
|
+
def invoke(self, uow):
|
|
29
|
+
if not uow.get(self.request_field):
|
|
30
|
+
return uow
|
|
31
|
+
return {
|
|
32
|
+
**uow,
|
|
33
|
+
self.response_field: self.connector.create_schedule(
|
|
34
|
+
uow[self.request_field]
|
|
35
|
+
),
|
|
36
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: modmex-lambda
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.6.0
|
|
4
4
|
Summary: Ultra-lightweight AWS Lambda utilities for API Gateway routing and event handling.
|
|
5
5
|
Author: Modmex
|
|
6
6
|
License: MIT
|
|
@@ -1135,6 +1135,59 @@ control_registry = (
|
|
|
1135
1135
|
handler = DynamoDBSource(control_registry, concurrency=False).handle
|
|
1136
1136
|
```
|
|
1137
1137
|
|
|
1138
|
+
### Deferred Domain Events
|
|
1139
|
+
|
|
1140
|
+
Use `Schedule` when a process needs a durable, one-time future event: an
|
|
1141
|
+
approval deadline, a retry window, an SLA check, or reconciliation after a
|
|
1142
|
+
communication ends. It creates an EventBridge Scheduler entry; it does not keep
|
|
1143
|
+
a Lambda invocation waiting.
|
|
1144
|
+
|
|
1145
|
+
```text
|
|
1146
|
+
domain event -> Schedule -> EventBridge Scheduler -> EventBridge -> listener
|
|
1147
|
+
```
|
|
1148
|
+
|
|
1149
|
+
The event delivered later uses the same domain-event envelope as every other
|
|
1150
|
+
event. Give the schedule a deterministic name and client token so a duplicate
|
|
1151
|
+
source event represents the same business deadline.
|
|
1152
|
+
|
|
1153
|
+
```python
|
|
1154
|
+
from modmex_lambda.stream.flavors.schedule import Schedule
|
|
1155
|
+
from modmex_lambda.stream.rules_registry import RulesRegistry
|
|
1156
|
+
from modmex_lambda.stream.sources import KinesisSource
|
|
1157
|
+
|
|
1158
|
+
registry = RulesRegistry().registry(
|
|
1159
|
+
Schedule({
|
|
1160
|
+
"id": "schedule-script-result-deadline",
|
|
1161
|
+
"event_type": "communication-completed",
|
|
1162
|
+
"delay_minutes": 5,
|
|
1163
|
+
"schedule_name": lambda uow: (
|
|
1164
|
+
f"script-result-deadline-{uow['event']['script_run']['id']}"
|
|
1165
|
+
),
|
|
1166
|
+
"client_token": lambda uow: (
|
|
1167
|
+
f"deadline-{uow['event']['script_run']['id']}"
|
|
1168
|
+
),
|
|
1169
|
+
"to_event": lambda uow, _schedule, template: {
|
|
1170
|
+
**template,
|
|
1171
|
+
"type": "script_run-result_deadline_reached",
|
|
1172
|
+
"script_run": uow["event"]["script_run"],
|
|
1173
|
+
},
|
|
1174
|
+
})
|
|
1175
|
+
)
|
|
1176
|
+
|
|
1177
|
+
handler = KinesisSource(registry, concurrency=False).handle
|
|
1178
|
+
```
|
|
1179
|
+
|
|
1180
|
+
Set `BUS_ARN` and `SCHEDULER_ROLE_ARN`, or provide `bus_arn` and
|
|
1181
|
+
`role_arn` in the rule. The Lambda that creates schedules needs Scheduler API
|
|
1182
|
+
permissions; the Scheduler execution role needs `events:PutEvents` on the
|
|
1183
|
+
target bus. `Schedule` uses `ActionAfterCompletion=DELETE`, so AWS removes a
|
|
1184
|
+
one-time schedule after delivery.
|
|
1185
|
+
|
|
1186
|
+
Use `schedule_at` when the deadline is already an explicit, timezone-aware
|
|
1187
|
+
`datetime`. Use `delay_minutes` for the common case of a relative deadline; it
|
|
1188
|
+
is calculated from the source event's millisecond `timestamp`, not from Lambda
|
|
1189
|
+
processing time. Declare exactly one of those fields.
|
|
1190
|
+
|
|
1138
1191
|
### Event Hub
|
|
1139
1192
|
|
|
1140
1193
|
EventBridge is a natural hub for domain events. Flavors like
|
|
@@ -1154,6 +1207,8 @@ language and should be routed by event type, source, account, or bus.
|
|
|
1154
1207
|
per-item results.
|
|
1155
1208
|
- `Expired`: consumes DynamoDB TTL `REMOVE` records and publishes expiration
|
|
1156
1209
|
events.
|
|
1210
|
+
- `Schedule`: schedules one standard domain event for a future time through
|
|
1211
|
+
EventBridge Scheduler.
|
|
1157
1212
|
- `S3`: writes objects to S3.
|
|
1158
1213
|
- `Sns`: publishes messages to SNS.
|
|
1159
1214
|
- `Update`: queries, gets, and updates DynamoDB records.
|
|
@@ -16,15 +16,17 @@ modmex_lambda/connectors/__init__.py,sha256=-3G8Q5Qo_O6xlD8oWLYW7XCgMln50BTjhrUn
|
|
|
16
16
|
modmex_lambda/connectors/cloudwatch.py,sha256=8NnP6m7IGZwwFZaHw6EO2Q1g4yHUfFqagpkVpzlgW8E,455
|
|
17
17
|
modmex_lambda/connectors/dynamodb.py,sha256=QTUtud8pmsmPER2N0foQB9dBg3yCrfEacYk8FfU1XfQ,8821
|
|
18
18
|
modmex_lambda/connectors/eventbridge.py,sha256=atY6R4XqRL-n6y5-ajn3b-t0gDwaBvz1w5rU4yMmq1U,473
|
|
19
|
+
modmex_lambda/connectors/eventbridge_scheduler.py,sha256=3iFM8iYXTPwip8xmxAsG8RZDZuetKTd0gh9niitFCmk,648
|
|
19
20
|
modmex_lambda/connectors/icloudwatch.py,sha256=LAxYgMgzda4wtGGRwhsPlZikpGlA3oiUsk73jlJ7ghk,463
|
|
20
21
|
modmex_lambda/connectors/idynamodb.py,sha256=oZiOztqY59U9O5VpxsAG_b1H2L4VaMH0lWhGGapHfYo,2538
|
|
21
22
|
modmex_lambda/connectors/ieventbridge.py,sha256=ulKTx7eERb5AXzjrCblI0Vf7SAiJeRVIlHqjdSOzHsk,473
|
|
23
|
+
modmex_lambda/connectors/ieventbridge_scheduler.py,sha256=Kc_SVW2hq1_EyclQLJd2kBIyEIR7e7BIr-twfU-BcdM,780
|
|
22
24
|
modmex_lambda/connectors/ilambda.py,sha256=DApLaXNNBibvue2jur4z1ZuST4vTwuHjNZCSaOm3KXI,448
|
|
23
25
|
modmex_lambda/connectors/is3.py,sha256=o3NCwCUqyK7vchSBVusVxhnTjaWaej1TaCmAKiwFAs8,1141
|
|
24
26
|
modmex_lambda/connectors/isns.py,sha256=7EgdIUuVC1V0wsdNaZthdepRDZkpw6XBUUzWr6C8NW8,717
|
|
25
27
|
modmex_lambda/connectors/isqs.py,sha256=qd-MPGuJKeKFJ3wK-RvvPCl_f0x6NC9n8GRsiqI5krQ,706
|
|
26
28
|
modmex_lambda/connectors/lambda_.py,sha256=kHpQxGSX-5tAtSZlI0VdR3WLP9KCCPIjcnACqTI9vqE,421
|
|
27
|
-
modmex_lambda/connectors/module.py,sha256=
|
|
29
|
+
modmex_lambda/connectors/module.py,sha256=fFTec4y5BUWD3j5N5OU7aAoMo9zXt3z7hwvZB233quE,2281
|
|
28
30
|
modmex_lambda/connectors/s3.py,sha256=sEf4_xV-kQXkOTIwo_Ez9RJxmJWDzRu0mLe0SLjY8-I,1135
|
|
29
31
|
modmex_lambda/connectors/sns.py,sha256=1X_5laGHTtyOH5gXqhDWk9YnclHzEac1R76xaijZQ_U,879
|
|
30
32
|
modmex_lambda/connectors/sqs.py,sha256=LwzO3gkQ6bfE6WMJW1KrhsymUqtdZ94RK1suXL7G-k0,806
|
|
@@ -83,8 +85,8 @@ modmex_lambda/stream/filters/content.py,sha256=L_QDPuMgB2mNvj0Ccr-Ng-clMgzTu-_LP
|
|
|
83
85
|
modmex_lambda/stream/filters/event_type.py,sha256=ho_H2vEwbICHznPiX5nZj76Hs3mfNOSzmK7X3SWMmuI,639
|
|
84
86
|
modmex_lambda/stream/filters/latch.py,sha256=RopPT2lDMeoaMaGk4EMzI2edepKnPMhXDNZawDv2rFI,754
|
|
85
87
|
modmex_lambda/stream/filters/skip.py,sha256=_BL9V6mMGUCb0f3NCfkmyloAa1eTENAmthrGYVTUAy0,504
|
|
86
|
-
modmex_lambda/stream/flavors/__init__.py,sha256=
|
|
87
|
-
modmex_lambda/stream/flavors/base_flavor.py,sha256
|
|
88
|
+
modmex_lambda/stream/flavors/__init__.py,sha256=WdaD-IwmjzjZGPT66mh2RVxCQBfwaRCj3WM7rAHm9q8,632
|
|
89
|
+
modmex_lambda/stream/flavors/base_flavor.py,sha256=2TA4pja_LmGM8oT4YPTEoi1hOTr6uCvOsZCnfuidPz8,5653
|
|
88
90
|
modmex_lambda/stream/flavors/cdc.py,sha256=gDzFYdTLM9RyruFcy7HXO7KdEmM1QZOKE218HRFHaOA,2477
|
|
89
91
|
modmex_lambda/stream/flavors/collect.py,sha256=Iu-ydymAlFGIbaexxNYBjzpJWyCWzDM2QH5lgTFyw9c,3765
|
|
90
92
|
modmex_lambda/stream/flavors/correlate.py,sha256=FGRFENN7J1m905uzE-ExoxDeDMMwfFWjEGEbkeMkRQ0,4038
|
|
@@ -94,6 +96,7 @@ modmex_lambda/stream/flavors/iflavor.py,sha256=KuaYO0koDCo9C8wV0nW1MV9XwZF1tvulj
|
|
|
94
96
|
modmex_lambda/stream/flavors/job.py,sha256=enIBW5A-c-bnpzL8f6vPLfr_HbQu4ucgc_YJ08vb7FM,10155
|
|
95
97
|
modmex_lambda/stream/flavors/materialize.py,sha256=-00aBf7L_egPbMzUBXAleiRVWlUQT6hbrDvL9yZrwxI,2335
|
|
96
98
|
modmex_lambda/stream/flavors/s3.py,sha256=08PzZetQFZJsiEmHf6aBJXTh8FKMFJk8Ruoqojh-NvE,2133
|
|
99
|
+
modmex_lambda/stream/flavors/schedule.py,sha256=yYJ9CD9nBW_xh8M4ZeaZDJ4tKUk3snUp3ZEjXKcF7RM,6396
|
|
97
100
|
modmex_lambda/stream/flavors/sns.py,sha256=L-yRQFYzstdj53Dspn6EC_YLX-gvjfQCLLfbmE9zsHI,2009
|
|
98
101
|
modmex_lambda/stream/flavors/task.py,sha256=PhRMLh4oCXv2jWw-ZoeZ8ioA40Ju9e5szcnWsBayai4,4265
|
|
99
102
|
modmex_lambda/stream/flavors/update.py,sha256=QUhkXKAD18w5GT2OKcCKnkYySJyX5ao4llil-AZVLJI,6141
|
|
@@ -104,6 +107,7 @@ modmex_lambda/stream/operators/ioperator.py,sha256=Mv7EqXWrDETpJkVGKUASfP174o4xd
|
|
|
104
107
|
modmex_lambda/stream/operators/lambda_.py,sha256=6-4uT4NchzkCUYn5e0dotuSJPS_7632HOiG-bYZ8mc4,999
|
|
105
108
|
modmex_lambda/stream/operators/publisher.py,sha256=Ge7_1dYryWYqC5rRSKjAArSB6TRSDfI8zeM3glUhVew,3835
|
|
106
109
|
modmex_lambda/stream/operators/s3.py,sha256=hGptuorkRRFHiGtBdtYvJofmDwfQ9St0jyR19RXFrIU,4341
|
|
110
|
+
modmex_lambda/stream/operators/scheduler.py,sha256=KlVXQswqmD2XrpYNyT-nKV3lfu05TQv3Edo40MZAX1k,1109
|
|
107
111
|
modmex_lambda/stream/operators/sns.py,sha256=9LoaQp_JsmP0xPzLF9XMcd5qbK7lg7daViaU4vkozG0,1740
|
|
108
112
|
modmex_lambda/stream/operators/sqs.py,sha256=4y2wrfVCl-TygrieFpfTEPjGUYcFV9gpYUT77cfyYm4,2464
|
|
109
113
|
modmex_lambda/stream/sources/__init__.py,sha256=1jVyYJhfHxxQJD6xA0fGa-WICbQkzcLAC6COYt-tP0k,1850
|
|
@@ -140,7 +144,7 @@ modmex_lambda/stream/utils/time.py,sha256=dnsL2xeWpa1FXm2p8y9rWXtICMBlCBkgLaJ_en
|
|
|
140
144
|
modmex_lambda/stream/utils/uow.py,sha256=8WSPVE7AiHInkFDfBEeKOvdirY6GAgBoS7qkF1f1JVM,3207
|
|
141
145
|
modmex_lambda/stream/utils/data_classes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
142
146
|
modmex_lambda/stream/utils/data_classes/dynamodb.py,sha256=h_7MtUyRkvvV1r2QECrRDu7RR4Hh94SwSjc_8K2_XGM,363
|
|
143
|
-
modmex_lambda-0.
|
|
144
|
-
modmex_lambda-0.
|
|
145
|
-
modmex_lambda-0.
|
|
146
|
-
modmex_lambda-0.
|
|
147
|
+
modmex_lambda-0.6.0.dist-info/METADATA,sha256=MQuHh4t3CGQrfPWs8HxmCwaN15y3Zf4gYcCzqmAp4Js,35220
|
|
148
|
+
modmex_lambda-0.6.0.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
|
|
149
|
+
modmex_lambda-0.6.0.dist-info/licenses/LICENSE,sha256=_C2TDTOsYeJvE4vn9VB51laKvleBKbdNnn96wJVtXhQ,1063
|
|
150
|
+
modmex_lambda-0.6.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|