Skip to content

Commit 4f6d8c6

Browse files
authored
Fixed S3 issues (#4755)
* Fixed S3 issues
1 parent c15c807 commit 4f6d8c6

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

.doc_gen/metadata/s3_metadata.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2064,6 +2064,22 @@ s3_Scenario_UsingLargeFiles:
20642064
title: Uploading an object using multipart upload
20652065
url: AmazonS3/latest/userguide/mpu-upload-object.html
20662066
languages:
2067+
Java:
2068+
versions:
2069+
- sdk_version: 2
2070+
github: javav2/example_code/s3
2071+
sdkguide:
2072+
excerpts:
2073+
- description: Call functions that transfer files to and from an S3 bucket
2074+
using the S3TransferManager.
2075+
snippet_tags:
2076+
- s3.tm.java2.downloadtodirectory.main
2077+
- description: Upload an entire local directory.
2078+
snippet_tags:
2079+
- s3.tm.java2.uploadadirectory.main
2080+
- description: Upload a single file.
2081+
snippet_tags:
2082+
- s3.tm.java2.uploadfile.main
20672083
.NET:
20682084
versions:
20692085
- sdk_version: 3

javav2/example_code/s3/src/main/java/com/example/s3/GetPDFandSave.java renamed to java/example_code/s3/src/main/java/aws/example/s3/GetPDFandSave.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
SPDX-License-Identifier: Apache-2.0 */
33
`
4-
package main.java.com.example.s3;
4+
package aws.example.s3;
55

66
import java.io.InputStream;
77
import java.io.File;

javav2/example_code/s3/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@
6666
<artifactId>junit-platform-commons</artifactId>
6767
<version>1.9.2</version>
6868
</dependency>
69+
<dependency>
70+
<groupId>software.amazon.awssdk.crt</groupId>
71+
<artifactId>aws-crt</artifactId>
72+
<version>0.21.12</version>
73+
</dependency>
6974
<dependency>
7075
<groupId>org.junit.platform</groupId>
7176
<artifactId>junit-platform-launcher</artifactId>

0 commit comments

Comments
 (0)