Created
April 9, 2024 03:16
-
-
Save eduardofcgo/bcf2d89be3eea8b9ac3c6398f1d4a80c to your computer and use it in GitHub Desktop.
aws s3 sdk v2 for s3 compatibles providers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn create-client [] | |
(-> (S3Client/builder) | |
(.credentialsProvider | |
(StaticCredentialsProvider/create | |
(AwsBasicCredentials/create access-key secret-key))) | |
(.region (Region/of region)) | |
(.endpointOverride (URI/create endpoint)) | |
(.build))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment