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

Safe HaskellNone
LanguageHaskell2010

Network.AWS.KMS.CreateKey

Contents

Description

Creates a customer master key. Customer master keys can be used to encrypt small amounts of data (less than 4K) directly, but they are most commonly used to encrypt or envelope data keys that are then used to encrypt customer data. For more information about data keys, see GenerateDataKey and GenerateDataKeyWithoutPlaintext.

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

Synopsis

Request

data CreateKey Source

Instances

Eq CreateKey 
Read CreateKey 
Show CreateKey 
AWSRequest CreateKey 
ToQuery CreateKey 
ToPath CreateKey 
ToHeaders CreateKey 
ToJSON CreateKey 
type Sv CreateKey = KMS 
type Rs CreateKey = CreateKeyResponse 

Request constructor

createKey :: CreateKey Source

CreateKey constructor.

The fields accessible through corresponding lenses are:

Request lenses

ckDescription :: Lens' CreateKey (Maybe Text) Source

Description of the key. We recommend that you choose a description that helps your customer decide whether the key is appropriate for a task.

ckKeyUsage :: Lens' CreateKey (Maybe KeyUsageType) Source

Specifies the intended use of the key. Currently this defaults to ENCRYPT/DECRYPT, and only symmetric encryption and decryption are supported.

ckPolicy :: Lens' CreateKey (Maybe Text) Source

Policy to be attached to the key. This is required and delegates back to the account. The key is the root of trust.

Response

Response constructor

createKeyResponse :: CreateKeyResponse Source

CreateKeyResponse constructor.

The fields accessible through corresponding lenses are:

Response lenses

ckrKeyMetadata :: Lens' CreateKeyResponse (Maybe KeyMetadata) Source

Metadata associated with the key.