aws s3 jvm scenario 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()