hwo to create aws s3 client connection java lambda 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()