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 @@ -95,6 +95,12 @@ Map may also contain the configuration keys :conn-timeout,
[cred name]
(.doesBucketExist (s3-client cred) name))

(defn bucket-exists-in-account?
"Returns true if the supplied bucket name already exists in
your account".
[cred name]
(some #{name} (map :name (s3/list-buckets cred))))

(defn create-bucket
"Create a new S3 bucket with the supplied name."
[cred ^String name]
Expand Down