There was an error while loading. Please reload this page.
1 parent 037af19 commit 9a5558eCopy full SHA for 9a5558e
awslambdainvoke-capi/lambdainvoke.py
@@ -1,7 +1,7 @@
1
#!/usr/bin/python
2
# -*- coding: utf-8 -*-
3
# lambdainvoke.py
4
-# It is an example that handles S3 buckets on AWS.
+# It is an example that handles Lambda functions on AWS.
5
# It uses Client API (low-level) of Boto3.
6
# Invoke a Lambda function.
7
# You must provide 1 parameter:
@@ -48,6 +48,7 @@ def main():
48
print(response)
49
print('\nFunction response payload:')
50
print(json.loads(response['Payload'].read()))
51
+
52
except botocore.exceptions.ClientError as e:
53
if e.response['Error']['Code'] == "ResourceNotFoundException":
54
print("Error: Function Not Found!!")
0 commit comments