Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | provisional |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- presignURL :: AWSRequest a => AuthEnv -> Region -> UTCTime -> Seconds -> a -> ByteString
- presign :: AWSRequest a => AuthEnv -> Region -> UTCTime -> Seconds -> a -> ClientRequest
- presignWith :: AWSRequest a => (Service -> Service) -> AuthEnv -> Region -> UTCTime -> Seconds -> a -> ClientRequest
- defaultHeaders :: [Header] -> [Header]
- presignWithHeaders :: forall a. AWSRequest a => ([Header] -> [Header]) -> (Service -> Service) -> AuthEnv -> Region -> UTCTime -> Seconds -> a -> ClientRequest
Documentation
:: 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
:: 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.
:: 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
.
:: 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 |