AWS code-library documentation change
Summary
Added scenario for EventBridge scheduled Lambda function with SNS notifications
Security assessment
New use case example for anniversary notifications. No security features or vulnerabilities addressed.
Diff
diff --git a/code-library/latest/ug/java_2_cloudwatch-logs_code_examples.md index 2199cc4c1..98106196e 100644 --- a/code-library/latest/ug/java_2_cloudwatch-logs_code_examples.md +++ b/code-library/latest/ug/java_2_cloudwatch-logs_code_examples.md @@ -5 +5 @@ -Actions +ActionsScenarios @@ -14,0 +15,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. + @@ -19,0 +22 @@ Each example includes a link to the complete source code, where you can find ins + * Scenarios @@ -428,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 + + + +