-
Notifications
You must be signed in to change notification settings - Fork 6
/
lambda_types.py
42 lines (31 loc) · 915 Bytes
/
lambda_types.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
"""
Copyright https://gist.github.com/alexcasalboni/a545b68ee164b165a74a20a5fee9d133
"""
from typing import Any, Dict
LambdaDict = Dict[str, Any]
class LambdaClientContextMobileClient(object):
app_package_name: str
app_title: str
app_version_code: str
app_version_name: str
installation_id: str
class LambdaClientContext(object):
client: LambdaClientContextMobileClient
custom: LambdaDict
env: LambdaDict
class LambdaCognitoIdentity(object):
cognito_identity_id: str
cognito_identity_pool_id: str
class LambdaContext(object):
aws_request_id: str
client_context: LambdaClientContext
function_name: str
function_version: str
identity: LambdaCognitoIdentity
invoked_function_arn: str
log_group_name: str
log_stream_name: str
memory_limit_in_mb: int
@staticmethod
def get_remaining_time_in_millis() -> int:
return 0