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

Copyright(c) 2013-2018 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 #

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 #

See: deleteImportedKeyMaterial smart constructor.

Instances
Eq DeleteImportedKeyMaterial # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

Data DeleteImportedKeyMaterial # 
Instance details

Defined in Network.AWS.KMS.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 # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

Show DeleteImportedKeyMaterial # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

Generic DeleteImportedKeyMaterial # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

Associated Types

type Rep DeleteImportedKeyMaterial :: * -> * #

Hashable DeleteImportedKeyMaterial # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

ToJSON DeleteImportedKeyMaterial # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

AWSRequest DeleteImportedKeyMaterial # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

Associated Types

type Rs DeleteImportedKeyMaterial :: * #

ToHeaders DeleteImportedKeyMaterial # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

ToPath DeleteImportedKeyMaterial # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

ToQuery DeleteImportedKeyMaterial # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

NFData DeleteImportedKeyMaterial # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

type Rep DeleteImportedKeyMaterial # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

type Rep DeleteImportedKeyMaterial = D1 (MetaData "DeleteImportedKeyMaterial" "Network.AWS.KMS.DeleteImportedKeyMaterial" "amazonka-kms-1.6.0-J0DpkKKCQ2By8yYSyE2w7" True) (C1 (MetaCons "DeleteImportedKeyMaterial'" PrefixI True) (S1 (MetaSel (Just "_dikmKeyId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs DeleteImportedKeyMaterial # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

Request Lenses

dikmKeyId :: Lens' DeleteImportedKeyMaterial Text #

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 #

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

data DeleteImportedKeyMaterialResponse #

See: deleteImportedKeyMaterialResponse smart constructor.

Instances
Eq DeleteImportedKeyMaterialResponse # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

Data DeleteImportedKeyMaterialResponse # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

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 # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

Show DeleteImportedKeyMaterialResponse # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

Generic DeleteImportedKeyMaterialResponse # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

Associated Types

type Rep DeleteImportedKeyMaterialResponse :: * -> * #

NFData DeleteImportedKeyMaterialResponse # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

type Rep DeleteImportedKeyMaterialResponse # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

type Rep DeleteImportedKeyMaterialResponse = D1 (MetaData "DeleteImportedKeyMaterialResponse" "Network.AWS.KMS.DeleteImportedKeyMaterial" "amazonka-kms-1.6.0-J0DpkKKCQ2By8yYSyE2w7" False) (C1 (MetaCons "DeleteImportedKeyMaterialResponse'" PrefixI False) (U1 :: * -> *))