libZSamazonka-s3-encryptionZSamazonka-s3-encryption
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityprovisional
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.S3.Encryption.Types

Description

 
Synopsis

Documentation

data EncryptionError Source #

An error thrown when performing encryption or decryption.

Constructors

CipherFailure CryptoError

Error initialising an AES cipher from a secret key.

PubKeyFailure Error

Failure performing asymmetric encryption/decryption.

IVInvalid ByteString

Failure creating an IV from some bytes.

EnvelopeMissing (CI Text)

Required envelope field missing.

EnvelopeInvalid (CI Text) String

Error parsing envelope.

PlaintextUnavailable

KMS error when retrieving decrypted plaintext.

class AsEncryptionError r where Source #

Minimal complete definition

_EncryptionError

data ContentAlgorithm Source #

Constructors

AES_CBC_PKCS5Padding

AESCBCPKCS5Padding

data WrappingAlgorithm Source #

Constructors

KMSWrap

Key Management Service.

data Location Source #

Constructors

Metadata 
Discard 

Instances

Instances details
Eq Location Source # 
Instance details

Defined in Amazonka.S3.Encryption.Types

newtype Ext Source #

An instructions file extension.

Constructors

Ext Text 

Instances

Instances details
Eq Ext Source # 
Instance details

Defined in Amazonka.S3.Encryption.Types

Methods

(==) :: Ext -> Ext -> Bool #

(/=) :: Ext -> Ext -> Bool #

Show Ext Source # 
Instance details

Defined in Amazonka.S3.Encryption.Types

Methods

showsPrec :: Int -> Ext -> ShowS #

show :: Ext -> String #

showList :: [Ext] -> ShowS #

IsString Ext Source # 
Instance details

Defined in Amazonka.S3.Encryption.Types

Methods

fromString :: String -> Ext #

defaultExtension :: Ext Source #

Defaults to .instruction

newtype Description Source #

A key material description. This is attached in plaintext to the metadata, and will be logged using CloudTrail. For KMS decryption any supplemental material description is merged with the description stored on the object during decryption.

Constructors

Description 

Instances

Instances details
Eq Description Source # 
Instance details

Defined in Amazonka.S3.Encryption.Types

Show Description Source # 
Instance details

Defined in Amazonka.S3.Encryption.Types

Semigroup Description Source # 
Instance details

Defined in Amazonka.S3.Encryption.Types

Monoid Description Source # 
Instance details

Defined in Amazonka.S3.Encryption.Types

ToJSON Description Source # 
Instance details

Defined in Amazonka.S3.Encryption.Types

FromJSON Description Source # 
Instance details

Defined in Amazonka.S3.Encryption.Types

ToByteString Description Source # 
Instance details

Defined in Amazonka.S3.Encryption.Types

FromText Description Source # 
Instance details

Defined in Amazonka.S3.Encryption.Types

data Key Source #

The key used for encryption and decryption.

description :: Lens' Key Description Source #

Modify the material description of a key.

See: Description.