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

Copyright(c) 2013-2017 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.KMS.DeleteImportedKeyMaterial

Contents

Description

Deletes key material that you previously imported. This operation 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 . You cannot perform this operation on a CMK in a different AWS account.

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 Source #

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 . Specify the key ID or the Amazon Resource Name (ARN) of the CMK. For example: * Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab * Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey .

data DeleteImportedKeyMaterial Source #

See: deleteImportedKeyMaterial smart constructor.

Instances

Eq DeleteImportedKeyMaterial Source # 
Data DeleteImportedKeyMaterial Source # 

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 Source # 
Show DeleteImportedKeyMaterial Source # 
Generic DeleteImportedKeyMaterial Source # 
Hashable DeleteImportedKeyMaterial Source # 
ToJSON DeleteImportedKeyMaterial Source # 
NFData DeleteImportedKeyMaterial Source # 
AWSRequest DeleteImportedKeyMaterial Source # 
ToQuery DeleteImportedKeyMaterial Source # 
ToPath DeleteImportedKeyMaterial Source # 
ToHeaders DeleteImportedKeyMaterial Source # 
type Rep DeleteImportedKeyMaterial Source # 
type Rep DeleteImportedKeyMaterial = D1 (MetaData "DeleteImportedKeyMaterial" "Network.AWS.KMS.DeleteImportedKeyMaterial" "amazonka-kms-1.5.0-1ul8bs34gET2EfYsh0ppOn" True) (C1 (MetaCons "DeleteImportedKeyMaterial'" PrefixI True) (S1 (MetaSel (Just Symbol "_dikmKeyId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs DeleteImportedKeyMaterial Source # 

Request Lenses

dikmKeyId :: Lens' DeleteImportedKeyMaterial Text Source #

The identifier of the CMK whose key material to delete. The CMK's Origin must be EXTERNAL . Specify the key ID or the Amazon Resource Name (ARN) of the CMK. For example: * Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab * Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey .

Destructuring the Response

deleteImportedKeyMaterialResponse :: DeleteImportedKeyMaterialResponse Source #

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

data DeleteImportedKeyMaterialResponse Source #

See: deleteImportedKeyMaterialResponse smart constructor.

Instances

Eq DeleteImportedKeyMaterialResponse Source # 
Data DeleteImportedKeyMaterialResponse Source # 

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 Source # 
Show DeleteImportedKeyMaterialResponse Source # 
Generic DeleteImportedKeyMaterialResponse Source # 
NFData DeleteImportedKeyMaterialResponse Source # 
type Rep DeleteImportedKeyMaterialResponse Source # 
type Rep DeleteImportedKeyMaterialResponse = D1 (MetaData "DeleteImportedKeyMaterialResponse" "Network.AWS.KMS.DeleteImportedKeyMaterial" "amazonka-kms-1.5.0-1ul8bs34gET2EfYsh0ppOn" False) (C1 (MetaCons "DeleteImportedKeyMaterialResponse'" PrefixI False) U1)