AWS Security ChangesHomeSearch

AWS sdk-for-java documentation change

Service: sdk-for-java · 2025-02-26 · Documentation low

File: sdk-for-java/latest/developer-guide/java_sns_code_examples.md

Summary

Added two code examples: video analysis with SNS and Lambda anniversary notifications via SNS

Security assessment

Adds general application examples using SNS for notifications without security-specific implementations or fixes.

Diff

diff --git a/sdk-for-java/latest/developer-guide/java_sns_code_examples.md
index a222c53a7..613a75cfd 100644
--- a/sdk-for-java/latest/developer-guide/java_sns_code_examples.md
+++ b/sdk-for-java/latest/developer-guide/java_sns_code_examples.md
@@ -1692,0 +1696,24 @@ The [test](https://github.com/awsdocs/aws-doc-sdk-examples/tree/main/javav2/exam
+The following code example shows how to detect people and objects in a video with Amazon Rekognition.
+
+**SDK for Java 2.x**
+    
+
+Shows how to use Amazon Rekognition Java API to create an app to detect faces and objects in videos located in an Amazon Simple Storage Service (Amazon S3) bucket. The app sends the admin an email notification with the results using Amazon Simple Email Service (Amazon SES). 
+
+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/javav2/usecases/video_analyzer_application). 
+
+###### Services used in this example
+
+  * Amazon Rekognition
+
+  * Amazon S3
+
+  * Amazon SES
+
+  * Amazon SNS
+
+  * Amazon SQS
+
+
+
+
@@ -2765,0 +2793,46 @@ 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 Java 2.x**
+    
+
+Shows how to create an AWS Lambda function by using the Lambda Java runtime API. This example invokes different AWS services to perform a specific use case. This example demonstrates how to create a Lambda function invoked by Amazon API Gateway that scans an Amazon DynamoDB table for work anniversaries and uses Amazon Simple Notification Service (Amazon SNS) to send a text message to your employees that congratulates them at their one year anniversary date. 
+
+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/javav2/usecases/creating_lambda_apigateway). 
+
+###### 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 Java 2.x**
+    
+
+Shows how to create an Amazon EventBridge scheduled event that invokes an AWS Lambda function. Configure EventBridge to use a cron expression to schedule when the Lambda function is invoked. In this example, you create a Lambda function by using the Lambda Java runtime API. This example invokes different AWS services to perform a specific use case. This example demonstrates how to create an app that sends a mobile text message to your employees that congratulates them at the one year anniversary date. 
+
+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/javav2/usecases/creating_scheduled_events). 
+
+###### Services used in this example
+
+  * CloudWatch Logs
+
+  * DynamoDB
+
+  * EventBridge
+
+  * Lambda
+
+  * Amazon SNS
+
+
+
+