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 #

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 #

Constructors

S3URL 

Fields

Instances

Show S3URL # 

Methods

showsPrec :: Int -> S3URL -> ShowS #

show :: S3URL -> String #

showList :: [S3URL] -> ShowS #

Generic S3URL # 

Associated Types

type Rep S3URL :: * -> * #

Methods

from :: S3URL -> Rep S3URL x #

to :: Rep S3URL x -> S3URL #

type Rep S3URL # 
type Rep S3URL = D1 (MetaData "S3URL" "Network.S3.Types" "s3-signer-0.3.0.0-pjcPoHpSgr4W1iUEjLILk" True) (C1 (MetaCons "S3URL" PrefixI True) (S1 (MetaSel (Just Symbol "signedRequest") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ByteString)))

data S3Keys #

Constructors

S3Keys 

Fields

Instances

Show S3Keys # 
Generic S3Keys # 

Associated Types

type Rep S3Keys :: * -> * #

Methods

from :: S3Keys -> Rep S3Keys x #

to :: Rep S3Keys x -> S3Keys #

type Rep S3Keys # 
type Rep S3Keys = D1 (MetaData "S3Keys" "Network.S3.Types" "s3-signer-0.3.0.0-pjcPoHpSgr4W1iUEjLILk" False) (C1 (MetaCons "S3Keys" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "publicKey") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ByteString)) (S1 (MetaSel (Just Symbol "secretKey") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ByteString))))

data S3Method #

Constructors

S3GET

GET Request

S3PUT

PUT Request

Instances

Show S3Method # 
Generic S3Method # 

Associated Types

type Rep S3Method :: * -> * #

Methods

from :: S3Method -> Rep S3Method x #

to :: Rep S3Method x -> S3Method #

type Rep S3Method # 
type Rep S3Method = D1 (MetaData "S3Method" "Network.S3.Types" "s3-signer-0.3.0.0-pjcPoHpSgr4W1iUEjLILk" False) ((:+:) (C1 (MetaCons "S3GET" PrefixI False) U1) (C1 (MetaCons "S3PUT" PrefixI False) U1))

data S3Request #

Constructors

S3Request 

Fields