| 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 |
Amazonka.S3.Encryption.Encrypt
Description
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.
Constructors
| Encrypted | |
Fields
| |
Instances
| AWSRequest a => AWSRequest (Encrypted a) Source # | |
Defined in Amazonka.S3.Encryption.Encrypt Associated Types type AWSResponse (Encrypted a) # Methods 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 #
Methods
encryptWith :: a -> Location -> Envelope -> Encrypted a Source #
Create an encryption context.
Instances
| ToEncrypted CreateMultipartUpload Source # | |
Defined in Amazonka.S3.Encryption.Encrypt Methods encryptWith :: CreateMultipartUpload -> Location -> Envelope -> Encrypted CreateMultipartUpload Source # | |
| ToEncrypted PutObject Source # | |
Defined in Amazonka.S3.Encryption.Encrypt | |
| ToEncrypted UploadPart Source # | |
Defined in Amazonka.S3.Encryption.Encrypt Methods encryptWith :: UploadPart -> Location -> Envelope -> Encrypted UploadPart Source # | |