amazon s3 api java code example
Example: aws s3 compatible java
val cred = ...
val endpoint = "https://google.com" //whatever url you use
val client = AmazonS3ClientBuilder
.standard()
.withCredentials(cred)
.withPathStyleAccessEnabled(true)
.withEndpointConfiguration(
new EndpointConfiguration(
endpoint,
AwsHostNameUtils.parseRegion(endpoint, AmazonS3Client.S3_SERVICE_NAME)
)
)
.build()