File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed
aws_lambda_powertools/utilities Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments