async-lambda-unstable 0.2.2__tar.gz → 0.2.3__tar.gz
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.
- {async-lambda-unstable-0.2.2 → async-lambda-unstable-0.2.3}/PKG-INFO +1 -1
- {async-lambda-unstable-0.2.2 → async-lambda-unstable-0.2.3}/async_lambda/__init__.py +1 -1
- {async-lambda-unstable-0.2.2 → async-lambda-unstable-0.2.3}/async_lambda/models/task.py +6 -6
- {async-lambda-unstable-0.2.2 → async-lambda-unstable-0.2.3}/async_lambda_unstable.egg-info/PKG-INFO +1 -1
- {async-lambda-unstable-0.2.2 → async-lambda-unstable-0.2.3}/README.md +0 -0
- {async-lambda-unstable-0.2.2 → async-lambda-unstable-0.2.3}/async_lambda/build_config.py +0 -0
- {async-lambda-unstable-0.2.2 → async-lambda-unstable-0.2.3}/async_lambda/cli.py +0 -0
- {async-lambda-unstable-0.2.2 → async-lambda-unstable-0.2.3}/async_lambda/config.py +0 -0
- {async-lambda-unstable-0.2.2 → async-lambda-unstable-0.2.3}/async_lambda/controller.py +0 -0
- {async-lambda-unstable-0.2.2 → async-lambda-unstable-0.2.3}/async_lambda/env.py +0 -0
- {async-lambda-unstable-0.2.2 → async-lambda-unstable-0.2.3}/async_lambda/models/__init__.py +0 -0
- {async-lambda-unstable-0.2.2 → async-lambda-unstable-0.2.3}/async_lambda/models/events/__init__.py +0 -0
- {async-lambda-unstable-0.2.2 → async-lambda-unstable-0.2.3}/async_lambda/models/events/api_event.py +0 -0
- {async-lambda-unstable-0.2.2 → async-lambda-unstable-0.2.3}/async_lambda/models/events/base_event.py +0 -0
- {async-lambda-unstable-0.2.2 → async-lambda-unstable-0.2.3}/async_lambda/models/events/managed_sqs_event.py +0 -0
- {async-lambda-unstable-0.2.2 → async-lambda-unstable-0.2.3}/async_lambda/models/events/scheduled_event.py +0 -0
- {async-lambda-unstable-0.2.2 → async-lambda-unstable-0.2.3}/async_lambda/models/events/unmanaged_sqs_event.py +0 -0
- {async-lambda-unstable-0.2.2 → async-lambda-unstable-0.2.3}/async_lambda/models/mock/mock_context.py +0 -0
- {async-lambda-unstable-0.2.2 → async-lambda-unstable-0.2.3}/async_lambda/models/mock/mock_event.py +0 -0
- {async-lambda-unstable-0.2.2 → async-lambda-unstable-0.2.3}/async_lambda/py.typed +0 -0
- {async-lambda-unstable-0.2.2 → async-lambda-unstable-0.2.3}/async_lambda_unstable.egg-info/SOURCES.txt +0 -0
- {async-lambda-unstable-0.2.2 → async-lambda-unstable-0.2.3}/async_lambda_unstable.egg-info/dependency_links.txt +0 -0
- {async-lambda-unstable-0.2.2 → async-lambda-unstable-0.2.3}/async_lambda_unstable.egg-info/entry_points.txt +0 -0
- {async-lambda-unstable-0.2.2 → async-lambda-unstable-0.2.3}/async_lambda_unstable.egg-info/requires.txt +0 -0
- {async-lambda-unstable-0.2.2 → async-lambda-unstable-0.2.3}/async_lambda_unstable.egg-info/top_level.txt +0 -0
- {async-lambda-unstable-0.2.2 → async-lambda-unstable-0.2.3}/pyproject.toml +0 -0
- {async-lambda-unstable-0.2.2 → async-lambda-unstable-0.2.3}/setup.cfg +0 -0
|
@@ -12,4 +12,4 @@ from .models.events.managed_sqs_event import ManagedSQSEvent as ManagedSQSEvent
|
|
|
12
12
|
from .models.events.scheduled_event import ScheduledEvent as ScheduledEvent
|
|
13
13
|
from .models.events.unmanaged_sqs_event import UnmanagedSQSEvent as UnmanagedSQSEvent
|
|
14
14
|
|
|
15
|
-
__version__ = "0.2.
|
|
15
|
+
__version__ = "0.2.3"
|
|
@@ -55,8 +55,8 @@ class AsyncLambdaTask(Generic[EventType]):
|
|
|
55
55
|
def validate_task_id(task_id: str):
|
|
56
56
|
if not task_id.isalnum():
|
|
57
57
|
raise ValueError("Task ID must contain only A-Za-z0-9")
|
|
58
|
-
if len(task_id) >
|
|
59
|
-
raise ValueError("Task ID must be less than
|
|
58
|
+
if len(task_id) > 32:
|
|
59
|
+
raise ValueError("Task ID must be less than 32 characters long.")
|
|
60
60
|
|
|
61
61
|
def get_managed_queue_name(self):
|
|
62
62
|
"""
|
|
@@ -90,7 +90,7 @@ class AsyncLambdaTask(Generic[EventType]):
|
|
|
90
90
|
def get_template_events(self):
|
|
91
91
|
if self.trigger_type == TaskTriggerType.MANAGED_SQS:
|
|
92
92
|
return {
|
|
93
|
-
|
|
93
|
+
"ManagedSQS": {
|
|
94
94
|
"Type": "SQS",
|
|
95
95
|
"Properties": {
|
|
96
96
|
"BatchSize": 1,
|
|
@@ -106,7 +106,7 @@ class AsyncLambdaTask(Generic[EventType]):
|
|
|
106
106
|
}
|
|
107
107
|
elif self.trigger_type == TaskTriggerType.UNMANAGED_SQS:
|
|
108
108
|
return {
|
|
109
|
-
|
|
109
|
+
"UnmanagedSQS": {
|
|
110
110
|
"Type": "SQS",
|
|
111
111
|
"Properties": {
|
|
112
112
|
"BatchSize": 1,
|
|
@@ -117,7 +117,7 @@ class AsyncLambdaTask(Generic[EventType]):
|
|
|
117
117
|
}
|
|
118
118
|
elif self.trigger_type == TaskTriggerType.SCHEDULED_EVENT:
|
|
119
119
|
return {
|
|
120
|
-
|
|
120
|
+
"ScheduledEvent": {
|
|
121
121
|
"Type": "ScheduleV2",
|
|
122
122
|
"Properties": {
|
|
123
123
|
"ScheduleExpression": self.trigger_config[
|
|
@@ -128,7 +128,7 @@ class AsyncLambdaTask(Generic[EventType]):
|
|
|
128
128
|
}
|
|
129
129
|
elif self.trigger_type == TaskTriggerType.API_EVENT:
|
|
130
130
|
return {
|
|
131
|
-
|
|
131
|
+
"APIEvent": {
|
|
132
132
|
"Type": "Api",
|
|
133
133
|
"Properties": {
|
|
134
134
|
"Path": self.trigger_config["path"],
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{async-lambda-unstable-0.2.2 → async-lambda-unstable-0.2.3}/async_lambda/models/events/__init__.py
RENAMED
|
File without changes
|
{async-lambda-unstable-0.2.2 → async-lambda-unstable-0.2.3}/async_lambda/models/events/api_event.py
RENAMED
|
File without changes
|
{async-lambda-unstable-0.2.2 → async-lambda-unstable-0.2.3}/async_lambda/models/events/base_event.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{async-lambda-unstable-0.2.2 → async-lambda-unstable-0.2.3}/async_lambda/models/mock/mock_context.py
RENAMED
|
File without changes
|
{async-lambda-unstable-0.2.2 → async-lambda-unstable-0.2.3}/async_lambda/models/mock/mock_event.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|