Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka.com> |
Stability | provisional |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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 :: (Service -> Service) -> Encrypted a -> Request (Encrypted a) # response :: MonadResource m => (ByteStringLazy -> IO ByteStringLazy) -> 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 CreateMultipartUpload Source # | |
Defined in Amazonka.S3.Encryption.Encrypt | |
ToEncrypted PutObject Source # | |
Defined in Amazonka.S3.Encryption.Encrypt | |
ToEncrypted UploadPart Source # | |
Defined in Amazonka.S3.Encryption.Encrypt encryptWith :: UploadPart -> Location -> Envelope -> Encrypted UploadPart Source # |