amazonka-2.0: Comprehensive Amazon Web Services SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityprovisional
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Presign

Description

It is intended for use directly with Auth when only presigning and no other AWS actions are required. See withAuth to extract an AuthEnv from an Auth.

Synopsis

Documentation

presignURL Source #

Arguments

:: AWSRequest a 
=> AuthEnv 
-> Region 
-> UTCTime

Signing time.

-> Seconds

Expiry time.

-> a

Request to presign.

-> 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

:: AWSRequest a 
=> AuthEnv 
-> Region 
-> UTCTime

Signing time.

-> Seconds

Expiry time.

-> a

Request to presign.

-> 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

:: AWSRequest a 
=> (Service -> Service)

Modify the default service configuration.

-> AuthEnv 
-> Region 
-> UTCTime

Signing time.

-> Seconds

Expiry time.

-> a

Request to presign.

-> 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

:: forall a. AWSRequest a 
=> ([Header] -> [Header])

Modify the default headers.

-> (Service -> Service)

Modify the default service configuration.

-> AuthEnv 
-> Region 
-> UTCTime

Signing time.

-> Seconds

Expiry time.

-> a

Request to presign.

-> ClientRequest 

A variant of presign that allows modifying the default Headers and the default Service definition used to configure the request.