mismi-s3-0.0.3: AWS Library

Safe HaskellNone
LanguageHaskell98

Mismi.S3.Commands

Contents

Synopsis

Operations

Existence

headObject :: Address -> AWS (Maybe HeadObjectResponse) Source #

Retrieves the HeadObjectResponse. Handles any 404 response by converting to Maybe.

exists :: Address -> AWS Bool Source #

Checks for the existence of Address.

Size

getSize :: Address -> AWS (Maybe Int) Source #

Deprecated: Use Mismi.S3.Commands.size instead

Delete

delete :: Address -> AWS () Source #

Delete Address

Copy

Recursive copy

Move

Upload

Write

Read

read :: Address -> AWS (Maybe Text) Source #

Read contents of Address.

List

listObjects :: Address -> AWS ([Address], [Address]) Source #

Return a tuple of the prefixes and keys at the provided S3 Address.

Download

Multipart

Filter

filterOld :: UTCTime -> MultipartUpload -> Bool Source #

Filter parts older than 7 days.

Grant ACL

Utility

chunkFilesBySize :: Int -> Int64 -> [(FilePath, Int64)] -> [[(FilePath, Int64)]] Source #

Take a list of files and their sizes, and convert it to a list of tests where the total size of the files in the sub list is less than maxSize and the length of the sub lists is <= maxCount.