Safe Haskell | None |
---|---|
Language | Haskell2010 |
Encrypts plaintext into ciphertext by using a customer master key.
http://docs.aws.amazon.com/kms/latest/APIReference/API_Encrypt.html
- data Encrypt
- encrypt :: Text -> Base64 -> Encrypt
- eEncryptionContext :: Lens' Encrypt (HashMap Text Text)
- eGrantTokens :: Lens' Encrypt [Text]
- eKeyId :: Lens' Encrypt Text
- ePlaintext :: Lens' Encrypt Base64
- data EncryptResponse
- encryptResponse :: EncryptResponse
- erCiphertextBlob :: Lens' EncryptResponse (Maybe Base64)
- erKeyId :: Lens' EncryptResponse (Maybe Text)
Request
Request constructor
Encrypt
constructor.
The fields accessible through corresponding lenses are:
eEncryptionContext
::
HashMap
Text
Text
eGrantTokens
::
[Text
]eKeyId
::
Text
ePlaintext
::
Base64
Request lenses
eEncryptionContext :: Lens' Encrypt (HashMap Text Text) Source
Name:value pair that specifies the encryption context to be used for authenticated encryption. For more information, see Authenticated Encryption.
eGrantTokens :: Lens' Encrypt [Text] Source
A list of grant tokens that represent grants which can be used to provide long term permissions to perform encryption.
eKeyId :: Lens' Encrypt Text Source
Unique identifier of the customer master. This can be an ARN, an alias, or the Key ID.
ePlaintext :: Lens' Encrypt Base64 Source
Data to be encrypted.
Response
Response constructor
encryptResponse :: EncryptResponse Source
EncryptResponse
constructor.
The fields accessible through corresponding lenses are:
Response lenses
erCiphertextBlob :: Lens' EncryptResponse (Maybe Base64) Source
The encrypted plaintext.