my-aws-helpers 1.3.0__tar.gz → 1.4.0__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.
Potentially problematic release.
This version of my-aws-helpers might be problematic. Click here for more details.
- {my_aws_helpers-1.3.0 → my_aws_helpers-1.4.0}/PKG-INFO +1 -1
- {my_aws_helpers-1.3.0 → my_aws_helpers-1.4.0}/my_aws_helpers/api.py +18 -1
- {my_aws_helpers-1.3.0 → my_aws_helpers-1.4.0}/my_aws_helpers.egg-info/PKG-INFO +1 -1
- {my_aws_helpers-1.3.0 → my_aws_helpers-1.4.0}/setup.py +1 -1
- {my_aws_helpers-1.3.0 → my_aws_helpers-1.4.0}/README.md +0 -0
- {my_aws_helpers-1.3.0 → my_aws_helpers-1.4.0}/my_aws_helpers/cognito.py +0 -0
- {my_aws_helpers-1.3.0 → my_aws_helpers-1.4.0}/my_aws_helpers/dynamo.py +0 -0
- {my_aws_helpers-1.3.0 → my_aws_helpers-1.4.0}/my_aws_helpers/errors.py +0 -0
- {my_aws_helpers-1.3.0 → my_aws_helpers-1.4.0}/my_aws_helpers/s3.py +0 -0
- {my_aws_helpers-1.3.0 → my_aws_helpers-1.4.0}/my_aws_helpers/sfn.py +0 -0
- {my_aws_helpers-1.3.0 → my_aws_helpers-1.4.0}/my_aws_helpers.egg-info/SOURCES.txt +0 -0
- {my_aws_helpers-1.3.0 → my_aws_helpers-1.4.0}/my_aws_helpers.egg-info/dependency_links.txt +0 -0
- {my_aws_helpers-1.3.0 → my_aws_helpers-1.4.0}/my_aws_helpers.egg-info/requires.txt +0 -0
- {my_aws_helpers-1.3.0 → my_aws_helpers-1.4.0}/my_aws_helpers.egg-info/top_level.txt +0 -0
- {my_aws_helpers-1.3.0 → my_aws_helpers-1.4.0}/my_aws_helpers.egg-info/zip-safe +0 -0
- {my_aws_helpers-1.3.0 → my_aws_helpers-1.4.0}/setup.cfg +0 -0
|
@@ -10,9 +10,26 @@ class API:
|
|
|
10
10
|
"body": body,
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
def get_optional_query_string_param(event: dict, param: str) -> Optional[Any]:
|
|
14
|
+
query_string_params = event.get("queryStringParameters")
|
|
15
|
+
if query_string_params is None:
|
|
16
|
+
return None
|
|
17
|
+
else:
|
|
18
|
+
return query_string_params.get(param)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def get_optional_body_param(event: dict, param: str):
|
|
22
|
+
body = event.get("body")
|
|
23
|
+
if body is None:
|
|
24
|
+
return None
|
|
25
|
+
else:
|
|
26
|
+
body = json.loads(body)
|
|
27
|
+
param_value = body.get(param)
|
|
28
|
+
return param_value
|
|
29
|
+
|
|
13
30
|
def parse_payload(event: Dict[str, Any]):
|
|
14
31
|
payload = {}
|
|
15
|
-
if event.get("
|
|
32
|
+
if event.get("queryStringParameters"): payload["queryStringParameters"] = event["queryStringParameters"]
|
|
16
33
|
if event.get("pathParameters"): payload["pathParameters"] = event["pathParameters"]
|
|
17
34
|
if event.get("body"): payload["body"] = json.loads(event["body"])
|
|
18
35
|
return payload
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|