amazonka-kms-0.1.0: Amazon Key Management Service SDK.

Safe HaskellNone
LanguageHaskell2010

Network.AWS.KMS.Encrypt

Contents

Description

Encrypts plaintext into ciphertext by using a customer master key.

http://docs.aws.amazon.com/kms/latest/APIReference/API_Encrypt.html

Synopsis

Request

Request constructor

encrypt Source

Encrypt constructor.

The fields accessible through corresponding lenses are:

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

erKeyId :: Lens' EncryptResponse (Maybe Text) Source

The ID of the key used during encryption.