Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | provisional |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- encrypted :: (MonadResource m, ToEncrypted a) => Key -> Env -> a -> m (Encrypted a, PutInstructions)
- encryptPart :: Encrypted CreateMultipartUpload -> UploadPart -> Encrypted UploadPart
- data Encrypted a = Encrypted {
- _encPayload :: a
- _encHeaders :: [Header]
- _encLocation :: Location
- _encEnvelope :: Envelope
- location :: Setter' (Encrypted a) Location
- envelope :: Encrypted a -> Envelope
- proxy :: forall a. Proxy (Encrypted a) -> Proxy a
- class AddInstructions a => ToEncrypted a where
- encryptWith :: a -> Location -> Envelope -> Encrypted a
Documentation
encrypted :: (MonadResource m, ToEncrypted a) => Key -> Env -> a -> m (Encrypted a, PutInstructions) Source #
Note about how it doesn't attach metadata by default. You can re-set the location and then discard the PutInstructions request.
Encrypted | |
|
Instances
AWSRequest a => AWSRequest (Encrypted a) Source # | |
Defined in Amazonka.S3.Encryption.Encrypt type AWSResponse (Encrypted a) # request :: Encrypted a -> Request (Encrypted a) # response :: MonadResource m => Logger -> Service -> Proxy (Encrypted a) -> ClientResponse ClientBody -> m (Either Error (ClientResponse (AWSResponse (Encrypted a)))) # | |
type AWSResponse (Encrypted a) Source # | |
Defined in Amazonka.S3.Encryption.Encrypt |
class AddInstructions a => ToEncrypted a where Source #
Instances
ToEncrypted UploadPart Source # | |
Defined in Amazonka.S3.Encryption.Encrypt encryptWith :: UploadPart -> Location -> Envelope -> Encrypted UploadPart Source # | |
ToEncrypted CreateMultipartUpload Source # | |
Defined in Amazonka.S3.Encryption.Encrypt | |
ToEncrypted PutObject Source # | |
Defined in Amazonka.S3.Encryption.Encrypt |