There are more AWS SDK examples available in the AWS Doc SDK Examples
Actions for CloudWatch Logs using AWS SDKs
The following code examples show how to use Amazon CloudWatch Logs with AWS SDKs. Each example calls an individual service function.
Action examples are code excerpts from larger programs and must be run in context. You can see actions in context in Scenarios for CloudWatch Logs using AWS SDKs.