File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
javav2/example_code/cloudwatch/src/main/java/com/example/cloudwatch Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 2727public class CloudWatchReadLogs {
2828 public static void main (final String [] args ) {
2929 final String usage = """
30- Usage:
31- <logGroupName>
32- Where:
33- logGroupName - The name of the log group (for example, /aws/lambda/ChatAIHandler).
34- """ ;
35- // if (args.length != 3) {
36- // System.out.print(usage);
37- // System.exit(1);
38- // }
30+ Usage:
31+ <logGroupName>
32+ Where:
33+ logGroupName - The name of the log group (for example, /aws/lambda/ChatAIHandler).
34+ """ ;
35+ if (args .length != 3 ) {
36+ System .out .print (usage );
37+ System .exit (1 );
38+ }
3939
40- String logGroupName = "/aws/lambda/ChatAIHandler" ; // args[0];
40+ String logGroupName = args [0 ];
4141 CloudWatchLogsClient logsClient = CloudWatchLogsClient .builder ()
4242 .region (Region .US_EAST_1 )
4343 .build ();
You can’t perform that action at this time.
0 commit comments