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_cloudwatch-logs_code_examples.md

Summary

Added a new scenario example for creating EventBridge scheduled events invoking Lambda functions with anniversary notification use case.

Security assessment

The change adds a general code example scenario involving multiple AWS services. While security best practices may be implied, there is no explicit security documentation or vulnerability being addressed.

Diff

diff --git a/sdk-for-java/latest/developer-guide/java_cloudwatch-logs_code_examples.md
index 06aacc7df..6fef36ae1 100644
--- a/sdk-for-java/latest/developer-guide/java_cloudwatch-logs_code_examples.md
+++ b/sdk-for-java/latest/developer-guide/java_cloudwatch-logs_code_examples.md
@@ -5 +5 @@
-Actions
+ActionsScenarios
@@ -12,0 +13,2 @@ _Actions_ are code excerpts from larger programs and must be run in context. Whi
+_Scenarios_ are code examples that show you how to accomplish specific tasks by calling multiple functions within a service or combined with other AWS services.
+
@@ -18,0 +21,3 @@ Each example includes a link to the complete source code, where you can find ins
+  * Scenarios
+
+
@@ -426,0 +432,26 @@ Stop the Live Tail session after a period of time has elapsed.
+## Scenarios
+
+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
+
+
+
+