AWS Security ChangesHomeSearch

AWS code-library documentation change

Service: code-library · 2025-02-26 · Documentation low

File: code-library/latest/ug/python_3_sns_code_examples.md

Summary

Added code examples for Amazon Rekognition video analysis with SNS/SQS integration and Lambda function invocation via API Gateway/EventBridge

Security assessment

Changes demonstrate service integration patterns but contain no security vulnerability fixes or explicit security documentation. Mentions of SNS/SQS permissions and Lambda invocation are standard operational aspects.

Diff

diff --git a/code-library/latest/ug/python_3_sns_code_examples.md
index f1f3a4f5a..1ae41ea45 100644
--- a/code-library/latest/ug/python_3_sns_code_examples.md
+++ b/code-library/latest/ug/python_3_sns_code_examples.md
@@ -491,0 +492,2 @@ For complete source code and instructions on how to set up and run, see the full
+  * Amazon Cognito Identity
+
@@ -753,0 +756,24 @@ Create an Amazon SNS FIFO topic, subscribe Amazon SQS FIFO and standard queues t
+The following code example shows how to detect people and objects in a video with Amazon Rekognition.
+
+**SDK for Python (Boto3)**
+    
+
+Use Amazon Rekognition to detect faces, objects, and people in videos by starting asynchronous detection jobs. This example also configures Amazon Rekognition to notify an Amazon Simple Notification Service (Amazon SNS) topic when jobs complete and subscribes an Amazon Simple Queue Service (Amazon SQS) queue to the topic. When the queue receives a message about a job, the job is retrieved and the results are output. 
+
+This example is best viewed on GitHub. For complete source code and instructions on how to set up and run, see the full example on [GitHub](https://github.com/awsdocs/aws-doc-sdk-examples/tree/main/python/example_code/rekognition). 
+
+###### Services used in this example
+
+  * Amazon Rekognition
+
+  * Amazon S3
+
+  * Amazon SES
+
+  * Amazon SNS
+
+  * Amazon SQS
+
+
+
+
@@ -804,0 +831,74 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
+The following code example shows how to create an AWS Lambda function invoked by Amazon API Gateway.
+
+**SDK for Python (Boto3)**
+    
+
+This example shows how to create and use an Amazon API Gateway REST API that targets an AWS Lambda function. The Lambda handler demonstrates how to route based on HTTP methods; how to get data from the query string, header, and body; and how to return a JSON response. 
+
+  * Deploy a Lambda function.
+
+  * Create an API Gateway REST API.
+
+  * Create a REST resource that targets the Lambda function.
+
+  * Grant permission to let API Gateway invoke the Lambda function.
+
+  * Use the Requests package to send requests to the REST API.
+
+  * Clean up all resources created during the demo.
+
+
+
+
+This example is best viewed on GitHub. For complete source code and instructions on how to set up and run, see the full example on [GitHub](https://github.com/awsdocs/aws-doc-sdk-examples/tree/main/python/example_code/lambda#readme). 
+
+###### Services used in this example
+
+  * API Gateway
+
+  * DynamoDB
+
+  * Lambda
+
+  * Amazon SNS
+
+
+
+
+The following code example shows how to create an AWS Lambda function invoked by an Amazon EventBridge scheduled event.
+
+**SDK for Python (Boto3)**
+    
+
+This example shows how to register an AWS Lambda function as the target of a scheduled Amazon EventBridge event. The Lambda handler writes a friendly message and the full event data to Amazon CloudWatch Logs for later retrieval. 
+
+  * Deploys a Lambda function.
+
+  * Creates an EventBridge scheduled event and makes the Lambda function the target.
+
+  * Grants permission to let EventBridge invoke the Lambda function.
+
+  * Prints the latest data from CloudWatch Logs to show the result of the scheduled invocations.
+
+  * Cleans up all resources created during the demo.
+
+
+
+
+This example is best viewed on GitHub. For complete source code and instructions on how to set up and run, see the full example on [GitHub](https://github.com/awsdocs/aws-doc-sdk-examples/tree/main/python/example_code/lambda#readme). 
+
+###### Services used in this example
+
+  * CloudWatch Logs
+
+  * DynamoDB
+
+  * EventBridge
+
+  * Lambda
+
+  * Amazon SNS
+
+
+
+