s3-signer-0.3.0.0: Pre-signed Amazon S3 URLs

Safe HaskellNone
LanguageHaskell2010

Network.S3

Contents

Synopsis

Create pre-signed AWS S3 URL

generateS3URL Source

Arguments

:: S3Keys

Amazon S3 Keys

-> S3Request

Amazon S3 Request information

-> IO S3URL

Generated URL

Generates a cryptographically secure URL that expires within a user defined period

See README for use cases and examples: https://github.com/dmjio/s3-signer/blob/master/README.md

Types

newtype S3URL Source

Constructors

S3URL 

Fields

signedRequest :: ByteString

Generated URL

Instances

data S3Keys Source

Constructors

S3Keys 

Fields

publicKey :: ByteString

AWS Public Key

secretKey :: ByteString

AWS Private Key

Instances

data S3Method Source

Constructors

S3GET

GET Request

S3PUT

PUT Request

data S3Request Source

Constructors

S3Request 

Fields

s3method :: S3Method

Type of HTTP Method

mimeType :: ByteString

MIME Type

bucketName :: ByteString

Name of Amazon S3 Bucket

objectName :: ByteString

Name of Amazon S3 File

secondsToExpire :: Integer

Number of seconds until expiration