amazonka-1.0.1: Comprehensive Amazon Web Services SDK

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityprovisional
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.Presign

Description

This module contains functions for presigning requests using MonadIO and not one of the AWS specific transformers.

It is intended for use directly with Network.AWS.Auth when only presigning and no other AWS actions are required. If you wish to presign requests and are using either the AWS or AWST monads, then prefer one of the relevant presigning functions available there, as the functions in this module do not use the underlying MonadFree Command DSL.

Synopsis

Documentation

presignURL Source

Arguments

:: (MonadIO m, AWSPresigner (Sg (Sv a)), AWSRequest a) 
=> Auth 
-> Region 
-> UTCTime

Signing time.

-> Seconds

Expiry time.

-> a

Request to presign.

-> m ByteString 

Presign an URL that is valid from the specified time until the number of seconds expiry has elapsed.

See: presign, presignWith

presign Source

Arguments

:: (MonadIO m, AWSPresigner (Sg (Sv a)), AWSRequest a) 
=> Auth 
-> Region 
-> UTCTime

Signing time.

-> Seconds

Expiry time.

-> a

Request to presign.

-> m ClientRequest 

Presign an HTTP request that is valid from the specified time until the number of seconds expiry has elapsed.

This requires the Service signer to be an instance of AWSPresigner. Not all signing algorithms support this.

See: presignWith

presignWith Source

Arguments

:: (MonadIO m, AWSPresigner (Sg s), AWSRequest a) 
=> (Service (Sv a) -> Service s)

Modify the default service configuration.

-> Auth 
-> Region 
-> UTCTime

Signing time.

-> Seconds

Expiry time.

-> a

Request to presign.

-> m ClientRequest 

A variant of presign that allows specifying the Service definition used to configure the request.