Skip to content

Commit bf457f5

Browse files
author
Joris Conijn
committed
feat: initial implementation as the proposed gist is
1 parent 319c363 commit bf457f5

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# -*- coding: utf-8 -*-
2+
3+
"""
4+
Note: this code is used only by the static type checker!
5+
This is copied from: https://gist.github.com/alexcasalboni/a545b68ee164b165a74a20a5fee9d133
6+
"""
7+
from typing import Any, Dict
8+
9+
LambdaDict = Dict[str, Any]
10+
11+
12+
class LambdaCognitoIdentity(object):
13+
cognito_identity_id: str
14+
cognito_identity_pool_id: str
15+
16+
17+
class LambdaClientContextMobileClient(object):
18+
installation_id: str
19+
app_title: str
20+
app_version_name: str
21+
app_version_code: str
22+
app_package_name: str
23+
24+
25+
class LambdaClientContext(object):
26+
client: LambdaClientContextMobileClient
27+
custom: LambdaDict
28+
env: LambdaDict
29+
30+
31+
class LambdaContext(object):
32+
function_name: str
33+
function_version: str
34+
invoked_function_arn: str
35+
memory_limit_in_mb: int
36+
aws_request_id: str
37+
log_group_name: str
38+
log_stream_name: str
39+
identity: LambdaCognitoIdentity
40+
client_context: LambdaClientContext
41+
42+
@staticmethod
43+
def get_remaining_time_in_millis() -> int:
44+
return 0

0 commit comments

Comments
 (0)