Skip to content

Commit

Permalink
Update GeneratePresignedUrlAndUploadObject.java
Browse files Browse the repository at this point in the history
  • Loading branch information
scmacdon authored Jul 6, 2020
1 parent 6c4505b commit 37b645e
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ public class GeneratePresignedUrlAndUploadObject {

public static void main(String[] args) {

// if (args.length < 2) {
// System.out.println("Please specify a bucket name and a key name that represents a PDF document");
// System.exit(1);
// }
if (args.length < 2) {
System.out.println("Please specify a bucket name and a key name that represents a PDF document");
System.exit(1);
}

String bucketName = "bucketscott2"; //args[0];
String keyName = "notejuly5.txt"; //args[1];
String bucketName = args[0];
String keyName = args[1];

// Create a S3Presigner by using the default AWS Region and credentials
S3Presigner presigner = S3Presigner.create();
Expand Down

0 comments on commit 37b645e

Please sign in to comment.