Skip to content

Commit

Permalink
remove unused or replaced files; remove metadata.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
tkhill-AWS committed Oct 23, 2023
1 parent b7c8874 commit 6bab845
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 340 deletions.
119 changes: 0 additions & 119 deletions javav2/example_code/s3/metadata.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,15 @@ public static void main(String[] args) {
String keyName = "k-" + UUID.randomUUID();
String resourcePath = "multipartUploadFiles/s3-userguide.pdf";
String contentType = "application/pdf";
// Uncomment the following two lines and comment out the previous two lines to use an image file instead of a PDF file.
//String resourcePath = "image.png";
//String contentType = "image/png";

Map<String, String> metadata = Map.of(
"author", "Mary Doe",
"version", "1.0.0.0"
);

//String resourcePath = "image.png";
//String contentType = "image/png";

PresignUrlUtils.createBucket(bucketName, s3Client);
GeneratePresignedUrlAndPutFileWithMetadata presign = new GeneratePresignedUrlAndPutFileWithMetadata();
Expand All @@ -73,7 +74,6 @@ public static void main(String[] args) {
}

// snippet-start:[presigned.java2.generatepresignedurlandputfilewithmetadata.main]

/**
* Create a presigned URL for uploading with a PUT request.
* @param bucketName - The name of the bucket.
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit 6bab845

Please sign in to comment.