Skip to content

Commit 71c8e11

Browse files
committed
remove old dataset
1 parent c906e46 commit 71c8e11

File tree

1 file changed

+1
-38
lines changed

1 file changed

+1
-38
lines changed

src/main/java/org/embulk/output/s3/S3FileOutputPlugin.java

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
import org.slf4j.Logger;
5050

5151
import com.amazonaws.ClientConfiguration;
52-
import com.amazonaws.services.s3.AmazonS3Client;
5352
import com.amazonaws.services.s3.model.CannedAccessControlList;
5453
import com.amazonaws.services.s3.model.PutObjectRequest;
5554
import org.embulk.util.aws.credentials.AwsCredentials;
@@ -126,7 +125,7 @@ public static class S3FileOutput
126125

127126
private int taskIndex;
128127
private int fileIndex;
129-
private AmazonS3Client client;
128+
private AmazonS3 client;
130129
private OutputStream current;
131130
private Path tempFilePath;
132131
private String tempPath = null;
@@ -190,42 +189,6 @@ private ClientConfiguration getClientConfiguration(PluginTask task)
190189
return clientConfig;
191190
}
192191

193-
194-
195-
196-
// private static AmazonS3Client newS3Client(PluginTask task)
197-
// {
198-
// AmazonS3Client client;
199-
200-
// // TODO: Support more configurations.
201-
// ClientConfiguration config = new ClientConfiguration();
202-
203-
// if (task.getProxyHost().isPresent()) {
204-
// config.setProxyHost(task.getProxyHost().get());
205-
// }
206-
207-
// if (task.getProxyPort().isPresent()) {
208-
// config.setProxyPort(task.getProxyPort().get());
209-
// }
210-
211-
// if (task.getAccessKeyId().isPresent()) {
212-
// BasicAWSCredentials basicAWSCredentials = new BasicAWSCredentials(
213-
// task.getAccessKeyId().get(), task.getSecretAccessKey().get());
214-
215-
// client = new AmazonS3Client(basicAWSCredentials, config);
216-
// }
217-
// else {
218-
// // Use default credential provider chain.
219-
// client = new AmazonS3Client(config);
220-
// }
221-
222-
// if (task.getEndpoint().isPresent()) {
223-
// client.setEndpoint(task.getEndpoint().get());
224-
// }
225-
226-
// return client;
227-
// }
228-
229192
public S3FileOutput(PluginTask task, int taskIndex)
230193
{
231194
this.taskIndex = taskIndex;

0 commit comments

Comments
 (0)