Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Network.AWS.KMS.DeleteImportedKeyMaterial
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.
Creating a Request
deleteImportedKeyMaterial Source #
Arguments
:: Text | |
-> 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'sOrigin
must beEXTERNAL
. 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, useListKeys
orDescribeKey
.
data DeleteImportedKeyMaterial Source #
See: deleteImportedKeyMaterial
smart constructor.
Instances
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.