File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
javav2/example_code/cloudwatch/src/main/java/com/example/cloudwatch Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,18 @@ cloudwatch-logs_AssociateKmsKey:
1111 - CloudWatchLogs.dotnetv3.AssociateKmsKeyExample
1212 services :
1313 cloudwatch-logs : {AssociateKmsKey}
14+ cloudwatch-logs_GetLogEvents :
15+ languages :
16+ .Java :
17+ versions :
18+ - sdk_version : 2
19+ github : javav2/example_code/cloudwatch
20+ excerpts :
21+ - description :
22+ snippet_tags :
23+ - cloudwatch.java2.get_logs.main
24+ services :
25+ cloudwatch-logs : {GetLogEvents}
1426cloudwatch-logs_CancelExportTask :
1527 languages :
1628 .NET :
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public static void main(final String[] args) {
3030 final String usage = """
3131
3232 Usage:
33- <logGroupName> <startTime> <endTime>
33+ <logGroupName>
3434
3535 Where:
3636 logGroupName - The name of the log group (for example, /aws/lambda/ChatAIHandler).
@@ -51,7 +51,7 @@ public static void main(final String[] args) {
5151 }
5252
5353 /**
54- * Retrieves and prints the log events from the specified log group and the most recent log stream within that group.
54+ * Retrieves and prints log events from the most recent log stream in the specified log group
5555 *
5656 * @param logsClient the CloudWatchLogsClient used to interact with AWS CloudWatch Logs
5757 * @param logGroupName the name of the log group from which to retrieve the log events
You can’t perform that action at this time.
0 commit comments