Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/aws/sdk/s3.clj
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
(:import com.amazonaws.auth.BasicAWSCredentials
com.amazonaws.auth.BasicSessionCredentials
com.amazonaws.services.s3.AmazonS3Client
com.amazonaws.services.s3.S3ClientOptions
com.amazonaws.AmazonServiceException
com.amazonaws.ClientConfiguration
com.amazonaws.HttpMethod
Expand Down Expand Up @@ -80,6 +81,11 @@
client (AmazonS3Client. aws-creds client-configuration)]
(when-let [endpoint (:endpoint cred)]
(.setEndpoint client endpoint))
(when (:path-style-access cred)
(.setS3ClientOptions
client
(doto (S3ClientOptions.)
(.withPathStyleAccess true))))
client)))

(def ^{:private true :tag AmazonS3Client}
Expand Down