hS3-0.5.1: Interface to Amazon's Simple Storage Service (S3)Source codeContentsIndex
Function Types
Data Types
Misc functions
Implements authentication and low-level communication with Amazon Web Services, such as S3, EC2, and others. API Version 2006-03-01 http://docs.amazonwebservices.com/AmazonS3/2006-03-01/
runAction :: S3Action -> IO (AWSResult (HTTPResponse ByteString))
isAmzHeader :: Header -> Bool
preSignedURI :: S3Action -> Integer -> URI
data S3Action = S3Action {
s3conn :: AWSConnection
s3bucket :: String
s3object :: String
s3query :: String
s3metadata :: [(String, String)]
s3body :: ByteString
s3operation :: RequestMethod
mimeEncodeQP :: String -> String
mimeDecode :: String -> String
Function Types
runAction :: S3Action -> IO (AWSResult (HTTPResponse ByteString))Source
Construct the request specified by an S3Action, send to Amazon, and return the response. Todo: add MD5 signature.
isAmzHeader :: Header -> BoolSource
Determine if a header belongs in the StringToSign
:: S3ActionAction with resource
-> IntegerExpiration time, in seconds since 00:00:00 UTC on January 1, 1970
-> URIURI of resource
Construct a pre-signed URI, but don't act on it. This is useful for when an expiration date has been set, and the URI needs to be passed on to a client.
Data Types
data S3Action Source
An action to be performed using S3.
s3conn :: AWSConnectionConnection and authentication information
s3bucket :: StringName of bucket to act on
s3object :: StringName of object to act on
s3query :: StringQuery parameters (requires a prefix of ?)
s3metadata :: [(String, String)]Additional header fields to send
s3body :: ByteStringBody of action, if sending data
s3operation :: RequestMethodType of action, PUT, GET, etc.
show/hide Instances
Misc functions
mimeEncodeQP :: String -> StringSource
mimeDecode :: String -> StringSource
Find children of Error entity, use their Code and Message entities to create an AWSError.
Produced by Haddock version 2.6.0