amazonka-kms-1.4.5: 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.DeleteImportedKeyMaterial

Contents

Description

Deletes key material that you previously imported and makes the specified customer master key (CMK) unusable. For more information about importing key material into AWS KMS, see Importing Key Material in the AWS Key Management Service Developer Guide .

When the specified CMK is in the PendingDeletion state, this operation does not change the CMK's state. Otherwise, it changes the CMK's state to PendingImport .

After you delete key material, you can use ImportKeyMaterial to reimport the same key material into the CMK.

Synopsis

Creating a Request

deleteImportedKeyMaterial #

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

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

  • dikmKeyId - The identifier of the CMK whose key material to delete. The CMK's Origin must be EXTERNAL . A valid identifier is the unique key ID or the Amazon Resource Name (ARN) of the CMK. Examples: * Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab * Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

data DeleteImportedKeyMaterial #

See: deleteImportedKeyMaterial smart constructor.

Instances

Eq DeleteImportedKeyMaterial # 
Data DeleteImportedKeyMaterial # 

Methods

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

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

toConstr :: DeleteImportedKeyMaterial -> Constr #

dataTypeOf :: DeleteImportedKeyMaterial -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteImportedKeyMaterial # 
Show DeleteImportedKeyMaterial # 
Generic DeleteImportedKeyMaterial # 
Hashable DeleteImportedKeyMaterial # 
ToJSON DeleteImportedKeyMaterial # 
NFData DeleteImportedKeyMaterial # 
AWSRequest DeleteImportedKeyMaterial # 
ToQuery DeleteImportedKeyMaterial # 
ToPath DeleteImportedKeyMaterial # 
ToHeaders DeleteImportedKeyMaterial # 
type Rep DeleteImportedKeyMaterial # 
type Rep DeleteImportedKeyMaterial = D1 (MetaData "DeleteImportedKeyMaterial" "Network.AWS.KMS.DeleteImportedKeyMaterial" "amazonka-kms-1.4.5-5KQpvh5Ruw27D0B5DkiMna" True) (C1 (MetaCons "DeleteImportedKeyMaterial'" PrefixI True) (S1 (MetaSel (Just Symbol "_dikmKeyId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs DeleteImportedKeyMaterial # 

Request Lenses

dikmKeyId :: Lens' DeleteImportedKeyMaterial Text #

The identifier of the CMK whose key material to delete. The CMK's Origin must be EXTERNAL . A valid identifier is the unique key ID or the Amazon Resource Name (ARN) of the CMK. Examples: * Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab * Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

Destructuring the Response

deleteImportedKeyMaterialResponse :: DeleteImportedKeyMaterialResponse #

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

data DeleteImportedKeyMaterialResponse #

See: deleteImportedKeyMaterialResponse smart constructor.

Instances

Eq DeleteImportedKeyMaterialResponse # 
Data DeleteImportedKeyMaterialResponse # 

Methods

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

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

toConstr :: DeleteImportedKeyMaterialResponse -> Constr #

dataTypeOf :: DeleteImportedKeyMaterialResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteImportedKeyMaterialResponse # 
Show DeleteImportedKeyMaterialResponse # 
Generic DeleteImportedKeyMaterialResponse # 
NFData DeleteImportedKeyMaterialResponse # 
type Rep DeleteImportedKeyMaterialResponse # 
type Rep DeleteImportedKeyMaterialResponse = D1 (MetaData "DeleteImportedKeyMaterialResponse" "Network.AWS.KMS.DeleteImportedKeyMaterial" "amazonka-kms-1.4.5-5KQpvh5Ruw27D0B5DkiMna" False) (C1 (MetaCons "DeleteImportedKeyMaterialResponse'" PrefixI False) U1)