
com.aol.micro.server.s3.S3Configuration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of micro-s3 Show documentation
Show all versions of micro-s3 Show documentation
Opinionated rest microservices
package com.aol.micro.server.s3;
import lombok.Getter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
@Component
@Getter
public class S3Configuration {
private final String accessKey;
private final String secretKey;
private final String sessionToken;
private final String region;
private final int uploadThreads;
private final String uploadThreadNamePrefix;
@Autowired
public S3Configuration(@Value("${s3.accessKey}") String accessKey, @Value("${s3.secretKey}") String secretKey,
@Value("${s3.sessionToken:#{null}}") String sessionToken, @Value("${s3.region:#{null}}") String region,
@Value("${s3.upload.threads:5}") int uploadThreads,
@Value("${s3.upload.thread.name.prefix:s3-transfer-manager-worker-}") String uploadThreadNamePrefix) {
this.accessKey = accessKey;
this.secretKey = secretKey;
this.sessionToken = sessionToken;
this.region = region;
this.uploadThreads = uploadThreads;
this.uploadThreadNamePrefix = uploadThreadNamePrefix;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy