amazonka-kms-1.6.1: 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 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 # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

Data DeleteImportedKeyMaterial Source # 
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 Source # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

Show DeleteImportedKeyMaterial Source # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

Generic DeleteImportedKeyMaterial Source # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

Associated Types

type Rep DeleteImportedKeyMaterial :: Type -> Type #

Hashable DeleteImportedKeyMaterial Source # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

ToJSON DeleteImportedKeyMaterial Source # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

AWSRequest DeleteImportedKeyMaterial Source # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

Associated Types

type Rs DeleteImportedKeyMaterial :: Type #

ToHeaders DeleteImportedKeyMaterial Source # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

ToPath DeleteImportedKeyMaterial Source # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

ToQuery DeleteImportedKeyMaterial Source # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

NFData DeleteImportedKeyMaterial Source # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

type Rep DeleteImportedKeyMaterial Source # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

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

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

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

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

Data DeleteImportedKeyMaterialResponse Source # 
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 Source # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

Show DeleteImportedKeyMaterialResponse Source # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

Generic DeleteImportedKeyMaterialResponse Source # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

Associated Types

type Rep DeleteImportedKeyMaterialResponse :: Type -> Type #

NFData DeleteImportedKeyMaterialResponse Source # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

type Rep DeleteImportedKeyMaterialResponse Source # 
Instance details

Defined in Network.AWS.KMS.DeleteImportedKeyMaterial

type Rep DeleteImportedKeyMaterialResponse = D1 (MetaData "DeleteImportedKeyMaterialResponse" "Network.AWS.KMS.DeleteImportedKeyMaterial" "amazonka-kms-1.6.1-1UDljZYfeha1jjHbbMax4v" False) (C1 (MetaCons "DeleteImportedKeyMaterialResponse'" PrefixI False) (U1 :: Type -> Type))