From f2da6512730fefe399cdbfbc9390777149915e0c Mon Sep 17 00:00:00 2001 From: Beck Andros Date: Thu, 9 Apr 2020 09:50:43 -0700 Subject: [PATCH] Update PutLogEvents.java Edits for description, comment strings. --- .../main/java/com/example/cloudwatch/PutLogEvents.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/javav2/example_code/cloudwatch/src/main/java/com/example/cloudwatch/PutLogEvents.java b/javav2/example_code/cloudwatch/src/main/java/com/example/cloudwatch/PutLogEvents.java index e5d5ba4fdcd..c78d7ae9825 100644 --- a/javav2/example_code/cloudwatch/src/main/java/com/example/cloudwatch/PutLogEvents.java +++ b/javav2/example_code/cloudwatch/src/main/java/com/example/cloudwatch/PutLogEvents.java @@ -1,4 +1,4 @@ -//snippet-sourcedescription:[PutEvents.java demonstrates how to put a sample CloudWatch event.] +//snippet-sourcedescription:[PutEvents.java demonstrates how to put a sample Amazon CloudWatch log event.] //snippet-keyword:[SDK for Java 2.0] //snippet-keyword:[Code Sample] //snippet-service:[Amazon CloudWatch] @@ -39,8 +39,8 @@ public class PutLogEvents { public static void main(String[] args) { final String usage = - "To run this example, supply a region id (eg. us-east-1), log group, and stream name as command line arguments\n" + - "Ex: PutLogEvents \n"; + "To run this example, supply an AWS Region ID (e.g., us-east-1), log group, and stream name as command line arguments\n" + + "Example: PutLogEvents \n"; if (args.length != 3) { System.out.println(usage); @@ -74,7 +74,7 @@ public static void putCWLogEvents(CloudWatchLogsClient logsClient, String region .build(); DescribeLogStreamsResponse describeLogStreamsResponse = logsClient.describeLogStreams(logStreamRequest); - // Assume that a single stream is returned since a specific stream name was specified in the previous request. + // Assume that a single stream is returned because a specific stream name was specified in the previous request. String sequenceToken = describeLogStreamsResponse.logStreams().get(0).uploadSequenceToken(); // Build an input log message to put to CloudWatch.