Sha256: 8ecd49bd8fc8546054b8b9752a3a9441cd355158c18f4eac43067716e3eef56c

Contents?: true

Size: 945 Bytes

Versions: 12

Compression:

Stored size: 945 Bytes

Contents

package org.embulk.input.s3;

import com.google.common.base.Optional;
import com.amazonaws.services.s3.AmazonS3Client;
import org.embulk.config.Config;
import org.embulk.config.ConfigDefault;
import org.embulk.input.s3.AbstractS3FileInputPlugin;

public class S3FileInputPlugin
        extends AbstractS3FileInputPlugin
{
    public interface S3PluginTask
            extends PluginTask
    {
        @Config("endpoint")
        @ConfigDefault("null")
        public Optional<String> getEndpoint();
    }

    @Override
    protected Class<? extends PluginTask> getTaskClass()
    {
        return S3PluginTask.class;
    }

    @Override
    protected AmazonS3Client newS3Client(PluginTask task)
    {
        S3PluginTask t = (S3PluginTask) task;

        AmazonS3Client client = super.newS3Client(t);

        if (t.getEndpoint().isPresent()) {
            client.setEndpoint(t.getEndpoint().get());
        }

        return client;
    }
}

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
embulk-input-s3-0.2.11 src/main/java/org/embulk/input/s3/S3FileInputPlugin.java
embulk-input-s3-0.2.10 src/main/java/org/embulk/input/s3/S3FileInputPlugin.java
embulk-input-s3-0.2.9 src/main/java/org/embulk/input/s3/S3FileInputPlugin.java
embulk-input-s3-0.2.8 src/main/java/org/embulk/input/s3/S3FileInputPlugin.java
embulk-input-s3-0.2.7 src/main/java/org/embulk/input/s3/S3FileInputPlugin.java
embulk-input-s3-0.2.6 src/main/java/org/embulk/input/s3/S3FileInputPlugin.java
embulk-input-s3-0.2.5 src/main/java/org/embulk/input/s3/S3FileInputPlugin.java
embulk-input-s3-0.2.4 src/main/java/org/embulk/input/s3/S3FileInputPlugin.java
embulk-input-s3-0.2.3 src/main/java/org/embulk/input/s3/S3FileInputPlugin.java
embulk-input-s3-0.2.2 src/main/java/org/embulk/input/s3/S3FileInputPlugin.java
embulk-input-s3-0.2.1 src/main/java/org/embulk/input/s3/S3FileInputPlugin.java
embulk-input-s3-0.2.0 src/main/java/org/embulk/input/s3/S3FileInputPlugin.java