KMSClient.delete_imported_key_material
rboto-kms==0.4.0 · Service index · Types
Model summary (excerpt): Deletes key material that was previously imported. This operation makes the specified KMS key temporarily unusable. To restore the usability of the KMS key, reimport the same key material. For more information about importing key material into KMS, see Importing Key Material in the Key Management Service Developer Guide . When the specified KMS key is in the PendingDeletion state, this...
Install and imports
Signature
async def delete_imported_key_material(
*,
key_id: str,
key_material_id: str | None = None,
) -> DeleteImportedKeyMaterialOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
key_id |
Yes | Identifies the KMS key from which you are deleting imported key material. The Origin of the KMS key must be EXTERNAL . Specify the key ID or key ARN of the KMS key. 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 KMS key, use ListKeys or DescribeKey . |
key_material_id |
No | Identifies the imported key material you are deleting. If no KeyMaterialId is specified, KMS deletes the current key material. To get the list of key material IDs associated with a KMS key, use ListKeyRotations . |
Output
DeleteImportedKeyMaterialOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
key_id |
str | None |
Always present | — |
key_material_id |
str | None |
Always present | — |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
DeleteImportedKeyMaterialOutput
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_kms.exceptions:
DependencyTimeoutError, InvalidArnError, KMSInternalError, KMSInvalidStateError, NotFoundError, UnsupportedOperationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.