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

Amazonka.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 Amazonka.Auth when only presigning and no other AWS actions are required.

Synopsis

Documentation

presignURL Source #

Arguments

:: (MonadIO m, 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, 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.

See: presignWith, presignWithHeaders

presignWith Source #

Arguments

:: (MonadIO m, AWSRequest a) 
=> (Service -> Service)

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 modifying the default Service definition used to configure the request.

See: presignWithHeaders

defaultHeaders :: [Header] -> [Header] Source #

Modification to the headers that is applied by default (in presignWith); removes the Expect header which is added to every PutObject.

presignWithHeaders Source #

Arguments

:: (MonadIO m, AWSRequest a) 
=> ([Header] -> [Header])

Modify the default headers.

-> (Service -> Service)

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 modifying the default Headers and the default Service definition used to configure the request.