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

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
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.

Synopsis

Creating a Request

createKey :: CreateKey Source #

Creates a value of CreateKey with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreateKey Source #

See: createKey smart constructor.

Instances

Eq CreateKey Source # 
Data CreateKey Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateKey -> c CreateKey #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateKey #

toConstr :: CreateKey -> Constr #

dataTypeOf :: CreateKey -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateKey) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateKey) #

gmapT :: (forall b. Data b => b -> b) -> CreateKey -> CreateKey #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateKey -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateKey -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateKey -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateKey -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateKey -> m CreateKey #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateKey -> m CreateKey #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateKey -> m CreateKey #

Read CreateKey Source # 
Show CreateKey Source # 
Generic CreateKey Source # 

Associated Types

type Rep CreateKey :: * -> * #

Hashable CreateKey Source # 
ToJSON CreateKey Source # 
NFData CreateKey Source # 

Methods

rnf :: CreateKey -> () #

AWSRequest CreateKey Source # 
ToQuery CreateKey Source # 
ToPath CreateKey Source # 
ToHeaders CreateKey Source # 

Methods

toHeaders :: CreateKey -> [Header] #

type Rep CreateKey Source # 
type Rep CreateKey = D1 (MetaData "CreateKey" "Network.AWS.KMS.CreateKey" "amazonka-kms-1.4.1-GF628EecSPSCenC7tCeKjK" False) (C1 (MetaCons "CreateKey'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ckKeyUsage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe KeyUsageType))) ((:*:) (S1 (MetaSel (Just Symbol "_ckPolicy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ckDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Rs CreateKey Source # 

Request Lenses

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 attach to the key. This is required and delegates back to the account. The key is the root of trust. The policy size limit is 32 KiB (32768 bytes).

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.

Destructuring the Response

createKeyResponse Source #

Creates a value of CreateKeyResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreateKeyResponse Source #

See: createKeyResponse smart constructor.

Instances

Eq CreateKeyResponse Source # 
Data CreateKeyResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateKeyResponse -> c CreateKeyResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateKeyResponse #

toConstr :: CreateKeyResponse -> Constr #

dataTypeOf :: CreateKeyResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateKeyResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateKeyResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateKeyResponse -> CreateKeyResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateKeyResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateKeyResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateKeyResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateKeyResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateKeyResponse -> m CreateKeyResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateKeyResponse -> m CreateKeyResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateKeyResponse -> m CreateKeyResponse #

Read CreateKeyResponse Source # 
Show CreateKeyResponse Source # 
Generic CreateKeyResponse Source # 
NFData CreateKeyResponse Source # 

Methods

rnf :: CreateKeyResponse -> () #

type Rep CreateKeyResponse Source # 
type Rep CreateKeyResponse = D1 (MetaData "CreateKeyResponse" "Network.AWS.KMS.CreateKey" "amazonka-kms-1.4.1-GF628EecSPSCenC7tCeKjK" False) (C1 (MetaCons "CreateKeyResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ckrsKeyMetadata") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe KeyMetadata))) (S1 (MetaSel (Just Symbol "_ckrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

ckrsKeyMetadata :: Lens' CreateKeyResponse (Maybe KeyMetadata) Source #

Metadata associated with the key.